Add a debug counter for late-combine
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename3.C
blob6d145590721ce30bf3ee7abd5dee81e70a7f7551
1 // { dg-do assemble  }
2 // { dg-options "-Wno-deprecated" }
4 template <class T>
5 struct A
7   typedef T A_Type;
8 };
11 template <class U>
12 struct B : public A<U>
14   A_Type Func(); // { dg-error "does not name a type" "err" } implicit typename
15   // { dg-message "note" "note" { target *-*-* } .-1 }
19 template <class U>
20 B<U>::A_Type B<U>::Func() { // { dg-error "typename" } implicit typename