Commit 734e01f0 by Paolo Carlini Committed by Paolo Carlini

re PR c++/26747 (bad break/continue is not detected until the gimplifier)

2011-09-26  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/26747
	* cp-gimplify.c (get_bc_label): Remove obsolete diagnostics.

From-SVN: r179198
parent f8a7df45
2011-09-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/26747
* cp-gimplify.c (get_bc_label): Remove obsolete diagnostics.
2011-09-25 Jason Merrill <jason@redhat.com>
* parser.c (inject_this_parameter): Split out from
......
......@@ -86,16 +86,6 @@ get_bc_label (enum bc_t bc)
{
tree label = bc_label[bc];
if (label == NULL_TREE)
{
if (bc == bc_break)
error ("break statement not within loop or switch");
else
error ("continue statement not within loop or switch");
return NULL_TREE;
}
/* Mark the label used for finish_bc_block. */
TREE_USED (label) = 1;
return label;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment