From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F646385842C; Tue, 14 Mar 2023 15:19:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F646385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678807184; bh=40wxUH4VBCdY+NQTNCMg9OxRIUn+fIIkGymoHo0Nr6g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=A5/BLs7dNiINCii7/fJEQ1Uh7/Gr8mLTjbKnPhqPBsOLoILG1cRGSdiPLxn6gZAkR HM3J2IZpbWSg+3TGXMHI96MUB1zgvhLYtXMBWaFwT4EFQu5fwCIjlDCCxb57NydZFB gdLoOLofj0TFS304R89iS2Xr5xS4kFuU+0cL19p4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108972] [13 Regression] ICE: tree check: expected tree that contains 'decl common' structure, have 'error_mark' in compare_lambda_template_head, at cp/lambda.cc:1551 since r13-3601-g2b0e81d5cc2f7e1d Date: Tue, 14 Mar 2023 15:19:44 +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: 13.0 X-Bugzilla-Keywords: c++-lambda, error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108972 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:7f22d1c83e74c41116300bebac2e4c492c90b03d commit r13-6664-g7f22d1c83e74c41116300bebac2e4c492c90b03d Author: Jakub Jelinek Date: Tue Mar 14 16:18:47 2023 +0100 testsuite: Fix up g++.dg/cpp2a/concepts-lambda3.C [PR108972] On Fri, Mar 10, 2023 at 01:49:38PM -0500, Jason Merrill via Gcc-patches wrote: > gcc/testsuite/ChangeLog: > > * g++.dg/cpp2a/concepts-lambda3.C: Run at lower std levels, > but expect errors. I'm seeing +UNRESOLVED: g++.dg/cpp2a/concepts-lambda3.C -std=3Dc++11 compilation = failed to produce executable +UNRESOLVED: g++.dg/cpp2a/concepts-lambda3.C -std=3Dc++14 compilation = failed to produce executable +UNRESOLVED: g++.dg/cpp2a/concepts-lambda3.C -std=3Dc++17 compilation = failed to produce executable +UNRESOLVED: g++.dg/cpp2a/concepts-lambda3.C -std=3Dc++98 compilation = failed to produce executable with this change, and if I test with GXX_TESTSUITE_STDS=3D98,11,14,17,20,2b make check-g++ -k RUNTESTFLAGS=3D"--target_board=3Dunix\{-m32,-m64,-m64/-fconcepts\} dg.exp=3Dconcepts-lambda3.C" I see even FAILs for the -fconcepts case, so apparently even -std=3Dc++= 17 -fconcepts isn't enough to make it compile without errors. The following patch will expect errors for all of c++17_down and will make the test dg-do compile for that case too, such that the UNRESOLVED stuff is gone. 2023-03-14 Jakub Jelinek PR c++/108972 PR testsuite/109129 * g++.dg/cpp2a/concepts-lambda3.C: Use dg-do run only for c++20, for c++17_down dg-do compile. Expect dg-excess-errors for c++17_down rather than ! concepts.=