Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-ice6.C

raw
1 // PR c++/51327
2 // { dg-do compile { target c++11 } }
3
4 struct A
5 {
6 A(int);
7 };
8
9 struct B : A {}; // { dg-message "" "" { target c++20_down } }
10
11 constexpr int foo(B) { return 0; } // { dg-error "invalid type" "" { target c++20_down } }