[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash108.C
blob9bcabc6009bb4f4ff489f8f5046f93240564344a
1 // PR c++/50861
3 template<class T> struct A {A(int b=k(0));}; // { dg-error "parameter|argument" }
4 void f(int k){A<int> a;} // // { dg-message "declared" }
5 // { dg-message "note" "note" { target *-*-* } 3 }