+2019-01-23 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/88984
+ * cp-gimplify.c (genericize_switch_stmt): Move cond genericization
+ before the begin_bc_block call.
+
2019-01-21 Jason Merrill <jason@redhat.com>
PR c++/87893 - constexpr ctor ICE on ARM.
tree break_block, body, cond, type;
location_t stmt_locus = EXPR_LOCATION (stmt);
- break_block = begin_bc_block (bc_break, stmt_locus);
-
body = SWITCH_STMT_BODY (stmt);
if (!body)
body = build_empty_stmt (stmt_locus);
cond = SWITCH_STMT_COND (stmt);
type = SWITCH_STMT_TYPE (stmt);
- cp_walk_tree (&body, cp_genericize_r, data, NULL);
cp_walk_tree (&cond, cp_genericize_r, data, NULL);
+
+ break_block = begin_bc_block (bc_break, stmt_locus);
+
+ cp_walk_tree (&body, cp_genericize_r, data, NULL);
cp_walk_tree (&type, cp_genericize_r, data, NULL);
*walk_subtrees = 0;
+2019-01-23 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/88984
+ * c-c++-common/pr88984.c: New test.
+
2019-01-23 Richard Biener <rguenther@suse.de>
PR tree-optimization/89008