repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-decl.C
blob
2c88fe689ea3bb93cbf2bdd7143ba5cdb2787594
1
// PR c++/46930
2
// { dg-do compile { target c++11 } }
3
4
struct S {
5
static constexpr int size; // { dg-error "must have an initializer" "must have" }
6
};
7
8
const int limit = 2 * S::size;
9
constexpr int S::size = 256;