From: Paolo Carlini Date: Mon, 26 Sep 2011 13:51:52 +0000 (+0000) Subject: re PR c++/26747 (bad break/continue is not detected until the gimplifier) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=734e01f0a3078bd798c1f32a62632916c9929f64;p=gcc.git re PR c++/26747 (bad break/continue is not detected until the gimplifier) 2011-09-26 Paolo Carlini PR c++/26747 * cp-gimplify.c (get_bc_label): Remove obsolete diagnostics. From-SVN: r179198 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index cd309042f87..eb870c7bd71 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2011-09-26 Paolo Carlini + + PR c++/26747 + * cp-gimplify.c (get_bc_label): Remove obsolete diagnostics. + 2011-09-25 Jason Merrill * parser.c (inject_this_parameter): Split out from diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index 6aeae75b063..af45f591846 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -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;