2 // Origin: Peter Kolloch <pkolloch@gmx.ne>
5 template <typename T> struct A
7 template <typename U> struct B
13 template <typename T> void foo()
15 typedef typename A<T>::B<T>::X Y; // { dg-error "non-template" "non" }
16 // { dg-error "not declare" "decl" { target *-*-* } .-1 }
17 // { dg-message "note" "note" { target *-*-* } .-2 }