[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash97.C
blob7d2161f54f3e07c1c11ad7028cf9233313be8491
1 // PR c++/34272
3 template<typename> struct A {};
5 template<typename> struct A<int> // { dg-error "not deducible|template\\-parameter" }
7   template<int> void foo();
8 };
10 void bar()
12   A<int> a; // { dg-error "incomplete type" }
13   a.foo<0>(); // { dg-error "expected" }