Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-diag4.C
blob: c603bdd1a00a5c18c3f97a1a571b2c1d8d79d297 [
file
] [
log
] [
blame
]
// Origin: PR c++/51633
// { dg-do compile { target c++11 } }
struct
A
{
~
A
();
};
struct
B
{
A a
;
constexpr
B
()
{}
};
struct
A1
{
int
a
;
~
A1
();
};
struct
B1
{
A1 a1
;
constexpr
B1
()
{}
// { dg-error "B1::a1" "" { target c++17_down } }
};