This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / g++.dg / template / non-type-template-argument-1.C
blob9d400d5b10433319a7f6182fed3f74e55426168e
1 struct A { static const bool b=false; };
3 struct B { typedef A X; };
5 template <bool> struct C {};
7 template <typename T> struct D
9    C<T::X> c;                   // { dg-error "parsed as a non-type|if a type is meant" }
12 D<B> d;                         // { dg-error "instantiated from here" }