From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 628B7383F86C; Tue, 2 Jun 2020 01:38:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 628B7383F86C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591061907; bh=/178GYaLLBu54pxW0uWYGRWJT1O+VZssaIfOgIMQHIY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=naNkJjjbAoYnsrQXoTHVKiI+B+Zlmt03+3hteVCTiYPMc+5BeeJh4EL98UJRnF1+X MXuodv6tUtVj0tqBEbzNFhvSFLFbYO+/lYooQTTFbbSn1r+c5/eRSmO2V8URNucwK8 3kEJrYrD8TiL/rFoOKHobPxf9gLNQWHtWBx1qsps= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/92838] ICE (internal compiler error) calling lambda object with requires clause (in in dependent_type_p) Date: Tue, 02 Jun 2020 01:38:27 +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: 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: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: Tue, 02 Jun 2020 01:38:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92838 --- Comment #3 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:c2449995ca36ea955e3c6d4ee7f0d401b512c897 commit r11-779-gc2449995ca36ea955e3c6d4ee7f0d401b512c897 Author: Patrick Palka Date: Mon Jun 1 21:37:04 2020 -0400 c++: constrained lambda inside template [PR92633] When regenerating a constrained lambda during instantiation of an enclosing template, we are forgetting to substitute into the lambda's constraints. Fix this by substituting through the constraints during tsubst_lambda_expr. gcc/cp/ChangeLog: PR c++/92633 PR c++/92838 * pt.c (tsubst_function_decl): Don't do set_constraints when regenerating a lambda. (tsubst_lambda_expr): Substitute into the lambda's constraints and do set_constraints here. gcc/testsuite/ChangeLog: PR c++/92633 PR c++/92838 * g++.dg/cpp2a/concepts-lambda11.C: New test. * g++.dg/cpp2a/concepts-lambda12.C: New test.=