PR c++/68206 - Fix constexpr diagnostics with loops.
authorJason Merrill <jason@redhat.com>
Tue, 19 Apr 2016 18:49:54 +0000 (14:49 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 19 Apr 2016 18:49:54 +0000 (14:49 -0400)
commitf937929e9b6273bf9e9ec3168b8615fc180f5e1f
tree964059415e120010e9641eff256f12b9121bd000
parent29ca91f72e23c34d0fd856825bda4d88e174fc5b
PR c++/68206 - Fix constexpr diagnostics with loops.

PR c++/68530
* constexpr.c (potential_constant_expression_1): Handle LOOP_EXPR
and GOTO_EXPR.

From-SVN: r235217
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-loop5.C [new file with mode: 0644]