PR c++/71728
commitd40a1eacf887a4803ab6064309635a392e0af7c7
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Jul 2016 18:22:32 +0000 (21 18:22 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Jul 2016 18:22:32 +0000 (21 18:22 +0000)
treed000ebcc5df973311f7d43bf526147286ac81f1b
parent8904fe1a7359c93b399d8b35580e60a16c532ca2
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.

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