re PR c++/65202 (ICE segfault with constexpr/noexcept)
authorMarek Polacek <polacek@redhat.com>
Thu, 26 Feb 2015 15:03:23 +0000 (15:03 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 26 Feb 2015 15:03:23 +0000 (15:03 +0000)
commit75e0295b00aeeddbd4efb2e55ef3ed946f886a86
tree20c60114b5a64e884884b07d01545a630fd00ba4
parent491080f4c1c24586c5e59cd7dc178e8d22fffb3c
re PR c++/65202 (ICE segfault with constexpr/noexcept)

PR c++/65202
* constexpr.c (cxx_eval_constant_expression): Don't evaluate
a RETURN_EXPR if its operand is null.

* g++.dg/cpp1y/pr65202.C: New test.

From-SVN: r221015
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr65202.C [new file with mode: 0644]