2015-06-19 Jason Merrill <jason@redhat.com>
+ PR c++/65973
+ * constexpr.c (build_constexpr_constructor_member_initializers):
+ Handle an empty STATEMENT_LIST.
+
PR c++/65843
* pt.c (tsubst_copy_and_build): Register a capture proxy in
local_specializations.
body = TREE_OPERAND (body, 0);
if (TREE_CODE (body) == STATEMENT_LIST)
{
- tree_stmt_iterator i = tsi_start (body);
- while (true)
+ for (tree_stmt_iterator i = tsi_start (body);
+ !tsi_end_p (i); tsi_next (&i))
{
body = tsi_stmt (i);
if (TREE_CODE (body) == BIND_EXPR)
break;
- tsi_next (&i);
}
}
- body = BIND_EXPR_BODY (body);
+ if (TREE_CODE (body) == BIND_EXPR)
+ body = BIND_EXPR_BODY (body);
if (TREE_CODE (body) == CLEANUP_POINT_EXPR)
{
body = TREE_OPERAND (body, 0);