summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/derived1.C
blob: aebb3d59a96283cbafaf047f7cc12fb2cdaea94e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-do assemble  }

class A
{
public:
  typedef int Info;
};

template <class T>
class B : public A
{
public:
  typedef struct{
    int a; 
    int b;
  } Info;
};

void f()
{
  B<A>::Info ie;
  ie.a=1;
  ie.b=2;
}