https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111840

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot 
gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
cp_parser_simple_declaration fails to give an error in:

      /* Anything else is an error.  */
      else  
        {
          /* If we have already issued an error message we don't need
             to issue another one.  */
          if ((decl != error_mark_node
               && DECL_INITIAL (decl) != error_mark_node)
              || cp_parser_uncommitted_to_tentative_parse_p (parser))
            cp_parser_error (parser, "expected %<,%> or %<;%>");
          /* Skip tokens until we reach the end of the statement.  */
          cp_parser_skip_to_end_of_statement (parser);
          /* If the next token is now a `;', consume it.  */
          if (cp_lexer_next_token_is (parser->lexer, CPP_SEMICOLON))
            cp_lexer_consume_token (parser->lexer);
          goto done;

Reply via email to