]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/65202
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Feb 2015 15:03:23 +0000 (15:03 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Feb 2015 15:03:23 +0000 (15:03 +0000)
commit10fb495c3be1b73134ae3e3f6d60acc8ea81eaed
tree20c60114b5a64e884884b07d01545a630fd00ba4
parent1070a611faadca638a0d4833d5bda580660bcf29
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221015 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr65202.C [new file with mode: 0644]