Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-decl.C
blob: 2c88fe689ea3bb93cbf2bdd7143ba5cdb2787594 [
file
] [
log
] [
blame
]
// PR c++/46930
// { dg-do compile { target c++11 } }
struct
S
{
static
constexpr
int
size
;
// { dg-error "must have an initializer" "must have" }
};
const
int
limit
=
2
*
S
::
size
;
constexpr
int
S
::
size
=
256
;