Lines Matching refs:mutable
1309 // DR1405: don't allow reading mutable members in constant expressions.
1312 mutable int n; // expected-note 3{{declared here}}
1314 constexpr int mmn = mm.n; // expected-error {{constant expression}} expected-note {{read of mutable member 'n' is not allowed in a constant expression}}
1316 constexpr int mmn2 = mm.n; // expected-error {{constant expression}} expected-note {{read of mutable member 'n' is not allowed in a constant expression}}
1323 return Id<m.n>().k; // expected-error {{not a constant expression}} expected-note {{read of mutable member 'n' is not allowed in a constant expression}}
1327 struct B { mutable A a; }; // expected-note {{here}}
1330 constexpr int k = c[1].b.a.n; // expected-error {{constant expression}} expected-note {{mutable}}
1332 struct D { int x; mutable int y; }; // expected-note {{here}}
1335 constexpr D d2 = d1; // expected-error {{constant}} expected-note {{mutable}} expected-note {{in call}}
1340 mutable int b; // expected-note {{here}}
1344 constexpr E e2 = e1; // expected-error {{constant}} expected-note {{mutable}} expected-note {{in call}}
1348 mutable U u;
1350 mutable X x;
1352 mutable Y y;
1355 // This is OK; we don't actually read any mutable state here.
1362 mutable U u; // expected-note {{here}}
1365 constexpr G g2 = g1; // expected-error {{constant}} expected-note {{mutable}} expected-note {{in call}}
1370 mutable G::X gx; // expected-note {{here}}
1373 constexpr H h2 = h1; // expected-error {{constant}} expected-note {{mutable}} expected-note {{in call}}