mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-19 06:20:27 +08:00
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:
parent
f8a7df4594
commit
734e01f0a3
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user