libstdc++: Fix test FAILs due to -Wreturn-local-addr
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash106.C
blob35cedb55b0bf9d7578cbd23b63130abfe5620f7f
1 // PR c++/47974
3 typedef double T;
5 struct A
7   template<T> void foo(); // { dg-error "type" "" { target c++17_down } }
8 };
10 template<T N = 0.0, void (A::*)() = &A::foo<N> > struct B {}; // { dg-error "type|declared|could not convert" "" { target c++17_down } }
12 B<> b; // { dg-message "" "" { target c++17_down } }