Message ID | 4D6A4FEA.6040304@oracle.com |
---|---|
State | New |
Headers | show |
Index: g++.dg/cpp0x/constexpr-ctor8.C =================================================================== --- g++.dg/cpp0x/constexpr-ctor8.C (revision 0) +++ g++.dg/cpp0x/constexpr-ctor8.C (revision 0) @@ -0,0 +1,6 @@ +// PR c++/46466 +// { dg-options "-std=c++0x -fno-elide-constructors" } + +struct S { bool b; }; +constexpr S f() { return S{true}; } +static_assert(f().b, "");