blob: 51499fac520184a931f054dc5b2aed624523c788 [file] [log] [blame]
// PR c++/92505
// { dg-do compile { target c++11 } }
struct A { mutable int m; };
constexpr int f(A a) { return a.m; }
static_assert(f({42}) == 42, "");
// { dg-error "non-constant|mutable" "" { target c++11_only } .-1 }