1 // PR c++/46466 2 // { dg-options "-std=c++0x -fno-elide-constructors" } 3 4 struct S { bool b; }; f()5 constexpr S f() { return S{true}; } 6 static_assert(f().b, ""); 7