Commit b51aa2e5 by Paolo Carlini Committed by Paolo Carlini

re PR c++/55432 (Too much constexpr makes the compiler crash)

2012-11-22  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r193723
parent 925e30ff
2012-11-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55432
* g++.dg/cpp0x/constexpr-55432.C: New.
2012-11-21 Janus Weil <janus@gcc.gnu.org>
PR fortran/55352
......
// PR c++/55432
// { dg-do compile { target c++11 } }
struct tag_t{} tag{};
constexpr tag_t const& pass(tag_t & t)
{
return t;
}
struct S
{
constexpr S(tag_t) {};
};
struct T
{
S mem;
T( tag_t & args ) : mem(pass(args)) {}
};
T t(tag);
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