From: Paolo Carlini Date: Thu, 22 Nov 2012 10:23:03 +0000 (+0000) Subject: re PR c++/55432 (Too much constexpr makes the compiler crash) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b51aa2e56e96b27ea06f75c8982b9a37633abac9;p=gcc.git re PR c++/55432 (Too much constexpr makes the compiler crash) 2012-11-22 Paolo Carlini PR c++/55432 * g++.dg/cpp0x/constexpr-55432.C: New. From-SVN: r193723 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cb52cdc5afe..382affd8d12 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-11-22 Paolo Carlini + + PR c++/55432 + * g++.dg/cpp0x/constexpr-55432.C: New. + 2012-11-21 Janus Weil PR fortran/55352 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-55432.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-55432.C new file mode 100644 index 00000000000..56b09bda017 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-55432.C @@ -0,0 +1,22 @@ +// 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);