[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / non-type-template-argument-1.C
blob99b00ccb8e508ec9ef58c938da91f54a699389ae
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-message "required from here" }