re PR c++/70344 (ICE on invalid code at -O1 and above on x86_64-linux-gnu in record_r...
authorJason Merrill <jason@redhat.com>
Wed, 23 Mar 2016 18:23:04 +0000 (14:23 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 23 Mar 2016 18:23:04 +0000 (14:23 -0400)
commit96a4ef9d6a40af1df81b3a2ec1574c31bdba2213
tree84e28f8b34041b9790f900f67ee25377a1a2a6e1
parentfbdb6bafe2be0f4e12b85dcb92641bb55078bf72
re PR c++/70344 (ICE on invalid code at -O1 and above on x86_64-linux-gnu in record_reference, at cgraphbuild.c:64)

PR c++/70344

* constexpr.c (cxx_eval_call_expression): Catch invalid recursion.

From-SVN: r234434
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-recursion2.C [new file with mode: 0644]