2 // { dg-do compile { target c++14 } }
6 constexpr A() : n(1) { n = 2; }
13 const_cast<A &>(a).n = 3; // { dg-error "modifying a const object" }
18 static_assert(b.a.n == 2, "");
20 constexpr B b2(true); // { dg-message "in .constexpr. expansion of " }
21 // { dg-message "originally declared" "" { target *-*-* } .-1 }
22 static_assert((b2.a.n, 1), "");