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