* parser.c (cp_parser_skip_to_end_of_statement): Add missing break.
authorJason Merrill <jason@redhat.com>
Wed, 5 Oct 2016 19:59:28 +0000 (15:59 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 5 Oct 2016 19:59:28 +0000 (15:59 -0400)
From-SVN: r240809

gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cxx-pretty-print.c
gcc/cp/parser.c

index 40cbb97a6c287cda4e86a2eb29e218d22707c709..e95faf65e92168fbb0922d5c63c9a1454092888b 100644 (file)
@@ -1,5 +1,7 @@
 2016-10-05  Jason Merrill  <jason@redhat.com>
 
+       * parser.c (cp_parser_skip_to_end_of_statement): Add missing break.
+
        * semantics.c (finish_compound_literal): Handle class placeholder.
 
 2016-10-05  Marek Polacek  <polacek@redhat.com>
index 8c5cb20eccbac1a9e8b181cf492d21bc075d162e..0914ae2a0f36f5a8fc3596e66af0b37019bb396f 100644 (file)
@@ -2544,7 +2544,6 @@ add_builtin_candidate (struct z_candidate **candidates, enum tree_code code,
          type2 = ptrdiff_type_node;
          break;
        }
-      /* XXX Really fallthru?  */
       /* FALLTHRU */
     case MULT_EXPR:
     case TRUNC_DIV_EXPR:
index f4d2a2eef2307293e54a9843d3f965b267bd3eb6..a290c87a9dd01e8a70446c5db584f24ef0d21e9b 100644 (file)
@@ -142,7 +142,6 @@ pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t)
 
     case OVERLOAD:
       t = OVL_CURRENT (t);
-      /* XXX Really fallthru?  */
       /* FALLTHRU */
     case VAR_DECL:
     case PARM_DECL:
index f3dc3591c7d63d16ca3f4f826eddeb25b8992a52..60bbf49883c0f0dd04be667720dd6414e5d0f2cc 100644 (file)
@@ -3495,8 +3495,7 @@ cp_parser_skip_to_end_of_statement (cp_parser* parser)
              cp_lexer_consume_token (parser->lexer);
              return;
            }
-         /* XXX Really fallthru?  */
-         /* FALLTHRU */
+         break;
 
        case CPP_OPEN_BRACE:
          ++nesting_depth;
@@ -27932,7 +27931,6 @@ cp_parser_cache_defarg (cp_parser *parser, bool nsdmi)
              parser->in_template_argument_list_p = saved_italp;
              break;
            }
-         /* XXX Really fallthru?  */
          /* FALLTHRU */
        case CPP_CLOSE_PAREN:
        case CPP_ELLIPSIS: