Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ice6.C
blob30e0a643bcb135c4f33d4f8a501df4683ca28276
1 // PR c++/51327
2 // { dg-do compile { target c++11 } }
4 struct A
6   A(int);
7 };
9 struct B : A {};                   // { dg-error "no matching" }
11 constexpr int foo(B) { return 0; } // { dg-error "invalid type" }