Rebase.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename6.C
blob734781202f160ec63cb65d59a7adcedbafd9a931
1 // { dg-do assemble  }
3 template <class T>
4 struct A
6   typedef T A_Type;
7 };
10 template <class U>
11 struct B : public A<U>
13   A_Type Func();                // { dg-error "does not name a type" "err" }
14   // { dg-message "note" "note" { target *-*-* } 13 }
17 template <class U>
18 A<U>::A_Type B<U>::Func()       // { dg-error "typename" } function
19 {