Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / parse / missing-template1.C
blobe5e03146dbb223f42efc9d89a710595539365b62
1 // PR c++/8736
2 // Origin: Peter Kolloch <pkolloch@gmx.ne>
3 // { dg-do compile }
5 template <typename T> struct A
7     template <typename U> struct B
8     {
9         typedef int X;
10     };
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 *-*-* } 15 }
17     // { dg-message "note" "note" { target *-*-* } 15 }
20 void bar()
22     foo<int>();