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
This commit is contained in:
Paolo Carlini 2011-09-26 13:51:52 +00:00 committed by Paolo Carlini
parent f8a7df4594
commit 734e01f0a3
2 changed files with 5 additions and 10 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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;