Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-mutable2.C

raw
1 // PR c++/58102
2 // { dg-do compile { target c++11 } }
3
4 struct S {
5 mutable int n;
6 constexpr S() : n() {}
7 };
8
9 constexpr S s = {};
10 constexpr S s2 = s; // { dg-error "mutable" }