constexpr.c (cxx_eval_statement_list): Handle statement-expressions.
authorJason Merrill <jason@redhat.com>
Wed, 19 Nov 2014 03:03:39 +0000 (22:03 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 19 Nov 2014 03:03:39 +0000 (22:03 -0500)
commit58611fb6fa0c1bab4ea0f77df43df67e9a9d19b0
treecd8ae560dce79dc74b40373f9f077326735f1a2f
parent5a80468364379cac7ba08f369bb7556ba5f7a5f8
constexpr.c (cxx_eval_statement_list): Handle statement-expressions.

* constexpr.c (cxx_eval_statement_list): Handle statement-expressions.
(potential_constant_expression_1): Handle STMT_EXPR.

From-SVN: r217748
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-stmtexpr2.C [new file with mode: 0644]