Sign in
gnu
/
gcc
/
refs/heads/devel/gfortran-caf
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ice19.C
blob: f62a0d995c2cd54b1ac01a56bd4dc6647e4f6f28 [
file
] [
log
] [
blame
]
// PR c++/81054
// { dg-do compile { target c++11 } }
struct
A
{
volatile
int
i
;
constexpr
A
()
:
i
()
{}
};
struct
B
{
static
constexpr
A a
{};
// { dg-error "not literal|in-class initialization" }
};