Fix c++/67371 (issues with throw in constexpr)
As PR67371 shows gcc currently rejects all throw statements in constant-expressions, even when they are never executed. PR c++/67371 * constexpr.c (potential_constant_expression_1): Remove IF_STMT case. Move label to COND_EXPR case. Remove checking of SWITCH_STMT_BODY. From-SVN: r227323
Showing
gcc/testsuite/g++.dg/cpp1y/constexpr-new.C
0 → 100644
gcc/testsuite/g++.dg/cpp1y/constexpr-throw.C
0 → 100644
Please
register
or
sign in
to comment