Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;