PR c++/84192
commit2c572f5f91e9750f6d14beb41c08bd80573d5a1f
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Feb 2018 22:38:53 +0000 (16 22:38 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Feb 2018 22:38:53 +0000 (16 22:38 +0000)
treee01cabda6769ee6d8617e5d59dd99ae383d599ed
parent717ae8b8aa24ed614a79e3226402e8ad47aa3713
PR c++/84192
* constexpr.c (cxx_eval_constant_expression) <case RETURN_EXPR>: Don't
set *jump_target to anything if jump_target is NULL.

* g++.dg/cpp1y/constexpr-84192.C: New test.

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