Commit d33a8058 by Paolo Carlini Committed by Paolo Carlini

re PR c++/46466 ([C++0X] ICE when using constexpr with -fno-elide-constructors)

2011-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/46466
	* g++.dg/cpp0x/constexpr-ctor8.C: New.

From-SVN: r170538
parent 1d8ca2c7
2011-02-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/46466
* g++.dg/cpp0x/constexpr-ctor8.C: New.
2011-02-27 Jakub Jelinek <jakub@redhat.com>
PR fortran/47886
......
// 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, "");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment