From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 326413887024; Wed, 8 Apr 2020 05:12:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 326413887024 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586322739; bh=dY1tlNAFP0RY3j5/g6YpxSbqg9cZZDk5Uvg7QBgTvvQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=njJF4XKeLy37bXfRY3yRnOeE3C6fTw++htFOP61D3B6Ez2EnyVJdeKJ92o9ZMgzpn 49NwcTncLHXBr0aaJ8tuzOALJoB2GgPG4SIaPdBWeUETmeT2c6CZSWPQKpnPsnJ6i9 6QoKoiw8qH3lGmqLcYid3trnK7fMUWDvCyivsEKw= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94480] [10 Regression] ICE in cp_parser_abort_tentative_parse, at cp/parser.c:31858 Date: Wed, 08 Apr 2020 05:12:18 +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: 10.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Wed, 08 Apr 2020 05:12:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94480 --- Comment #3 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:845d451e1f73d8a9a84382c3c6d4fca9c8220403 commit r10-7612-g845d451e1f73d8a9a84382c3c6d4fca9c8220403 Author: Jason Merrill Date: Tue Apr 7 00:45:26 2020 -0400 c++: requires-expression and tentative parse [PR94480] The problem here was that cp_parser_requires_expression committing to a tentative parse confused cp_parser_decltype_expr, which needs to still = be tentative. The only reason to commit here is to get syntax errors with= in the requires-expression, which we can still do when the commit is firewalled from the enclosing context. gcc/cp/ChangeLog 2020-04-07 Jason Merrill PR c++/94480 * parser.c (cp_parser_requires_expression): Use tentative_firew= all.=