re PR c++/84192 (ICE with statement expression)
authorMarek Polacek <polacek@redhat.com>
Fri, 16 Feb 2018 22:38:53 +0000 (22:38 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Feb 2018 22:38:53 +0000 (23:38 +0100)
commit019e0ae8e00068d14aeee7c3b9e54ec14d2a5dd9
treee01cabda6769ee6d8617e5d59dd99ae383d599ed
parent28f247e6e089dde46ed0effdd19eb5634b5520cc
re PR c++/84192 (ICE with statement expression)

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.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r257770
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-84192.C [new file with mode: 0644]