From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 40FAB3858C52; Tue, 17 Oct 2023 15:12:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40FAB3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697555545; bh=kGzjwzq0Kmw9Ic0hUACYs29ZUKfFHNpNeA1ZaZNnXII=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jgXskisArzdltN8NM8gAWDRuo4ukZs+1Oj3H39kjhAAnYS3V+UiAIJyBdjk6GdXsU oH6+SRIGRhYy4bQdKc13JkxTJ/tFuqHL/kWpLy59+/1OQfLMj9GasJUCzFzSCtAr2Q 8JyqjerlfvX3SFAaC/tI5vHoFJkzYG6zKOgQFaeo= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111840] =delete("can have a reason")? Date: Tue, 17 Oct 2023 15:12:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111840 Marek Polacek 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 --- cp_parser_simple_declaration fails to give an error in: /* Anything else is an error. */ else=20=20 { /* If we have already issued an error message we don't need to issue another one. */ if ((decl !=3D error_mark_node && DECL_INITIAL (decl) !=3D 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;=