Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-mutable2.C
blob: c449c3aabc0d8185054910d382667fbf3dad3f79 [
file
] [
log
] [
blame
]
// PR c++/58102
// { dg-do compile { target c++11 } }
struct
S
{
mutable
int
n
;
constexpr
S
()
:
n
()
{}
};
constexpr
S s
=
{};
constexpr
S s2
=
s
;
// { dg-error "mutable" }