summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/lookup20.C
blob: ff23521590ae27a8114a48a39bb8828c4926bb4f (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Bug: typename_sub2 returned the type, so we tried to look up "A" in B.

struct A { struct A1 { }; };

struct B {
  typedef A Q;
};

struct C: public B::Q::A1 { };