c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash108.C
blob3ffadc14c256cac39733a9a59c607e026bd69d23
1 // PR c++/50861
3 template<class T> struct A {A(int b=k(0));}; // { dg-error "not declared" }
4  // { dg-error "that depend on a template parameter" "" { target *-*-* } .-1 }
5 void f(int k){A<int> a;}