OSDN Git Service

2011-09-26 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2011 13:51:52 +0000 (13:51 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2011 13:51:52 +0000 (13:51 +0000)
PR c++/26747
* cp-gimplify.c (get_bc_label): Remove obsolete diagnostics.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179198 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c

index cd30904..eb870c7 100644 (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
index 6aeae75..af45f59 100644 (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;