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-mutable1.C
blob
832a16197d5b1bc9d31e66a926209738de550778
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
int i;
6
mutable int j;
7
};
8
9
constexpr A a = { 0, 1 };
10
constexpr A b = a; // { dg-error "mutable" }
11
constexpr int i = a.i;
12
constexpr int j = a.j; // { dg-error "mutable" }