Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-mutable1.C
blob: 832a16197d5b1bc9d31e66a926209738de550778 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
A
{
int
i
;
mutable
int
j
;
};
constexpr
A a
=
{
0
,
1
};
constexpr
A b
=
a
;
// { dg-error "mutable" }
constexpr
int
i
=
a
.
i
;
constexpr
int
j
=
a
.
j
;
// { dg-error "mutable" }