Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ice5.C
blob: e934421c2f4880b82ce1bb90da3e97293c0954d6 [
file
] [
log
] [
blame
]
// PR c++/51621
// { dg-do compile { target c++11 } }
struct
A
{
A
()
{}
};
struct
B
{
A a
[
1
];
constexpr
B
()
:
a
()
{}
// { dg-error "non-constant|non-.constexpr." "" { target { ! implicit_constexpr } } }
};