re PR c++/71728 (ICE with goto in statement-expression inside a condition)
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Jul 2016 18:22:32 +0000 (20:22 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Jul 2016 18:22:32 +0000 (20:22 +0200)
commitab3af181e659954846e9d6678b04b2670f2da703
treed000ebcc5df973311f7d43bf526147286ac81f1b
parent1c4b8a04494fbd90ac41fd07158ab88410865b88
re PR c++/71728 (ICE with goto in statement-expression inside a condition)

PR c++/71728
* constexpr.c (potential_constant_expression_1) <case GOTO_EXPR>:
Replace assert with test, return false if the goto isn't break
or continue.  Formatting fix.

* g++.dg/other/pr71728.C: New test.

From-SVN: r238601
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr71728.C [new file with mode: 0644]