Improve constexpr handling of other loop forms.
authorJason Merrill <jason@redhat.com>
Tue, 19 Apr 2016 18:50:01 +0000 (14:50 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 19 Apr 2016 18:50:01 +0000 (14:50 -0400)
commit06ec22b7f627bf36fefeb643fa62313bce410b10
tree1336ed93e5a4de77dfaa2b17b0c13904ac27463e
parentf937929e9b6273bf9e9ec3168b8615fc180f5e1f
Improve constexpr handling of other loop forms.

* constexpr.c (breaks): Handle EXIT_EXPR.
(cxx_eval_loop_expr): Handle COMPOUND_EXPR body.
(cxx_eval_constant_expression): Handle EXIT_EXPR, improve handling
of COMPOUND_EXPR.

From-SVN: r235218
gcc/cp/ChangeLog
gcc/cp/constexpr.c