2 // { dg-options "-Wno-deprecated" }
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 }
20 B<U>::A_Type B<U>::Func() { // { dg-error "typename" } implicit typename