From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1816B3857C4A; Thu, 2 Dec 2021 12:46:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1816B3857C4A From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102881] gcc totally broken when trailing return type combine with decltype lambda Date: Thu, 02 Dec 2021 12:46:10 +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: 12.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2021 12:46:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102881 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |ppalka at gcc dot gnu.org --- Comment #5 from Jakub Jelinek --- Seems foo gets silently (because of tentative parser in cp_parser_late_return_type_opt -> cp_parser_trailing_type_id -> cp_parser_type_id_1 -> cp_parser_type_specifier_seq -> cp_parser_type_speci= fier -> cp_parser_simple_type_specifier 19684 /* Don't gobble tokens or issue error messages if this is an 19685 optional type-specifier. */ 19686 if (flags & CP_PARSER_FLAGS_OPTIONAL) 19687 cp_parser_parse_tentatively (parser); ) late_return of error_mark_node, and that then causes pushdecl not to happ= en and so it isn't found. But getting lost in why the type specifier parsing failed...=