https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71728
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jul 21 18:22:32 2016 New Revision: 238601 URL: https://gcc.gnu.org/viewcvs?rev=238601&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: trunk/gcc/testsuite/g++.dg/other/pr71728.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/constexpr.c trunk/gcc/testsuite/ChangeLog