[Bug c++/71728] [5/6/7 Regression] ICE with goto in statement-expression inside a condition
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 21 18:25:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71728
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jul 21 18:24:48 2016
New Revision: 238602
URL: https://gcc.gnu.org/viewcvs?rev=238602&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/other/pr71728.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/constexpr.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list