From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF9E63858D3C; Tue, 4 Jul 2023 15:03:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF9E63858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688483026; bh=FhnO5UBwTmkuAEwiweXO9etsIrfl5hhD83XRzhRDXgE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yApKqrJx5cdGWx9aQ3P154rS+47aeeq9BU1pHgfQdmlCRc2fsYl4kGeV2FVe8Ppbx 539pT+9GuTHbydhymncNNhwaf2pLL1LiWCuPtorUylTYLlIb7OPfkCQkGLBZkLlLT8 cOqXrkZIubgw8HKlaothQem8X2m2f4Ch5RpUxJXI= From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107437] nested generic lambdas fail requiring unneded captures Date: Tue, 04 Jul 2023 15:03: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: 12.2.0 X-Bugzilla-Keywords: c++-lambda, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jason 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: cc attachments.created 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=3D107437 Jason Merrill changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #7 from Jason Merrill --- Created attachment 55466 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55466&action=3Dedit failed experiment I wondered if keeping function-local typedefs would be a simple fix, but a number of modules tests regress with this patch. I guess that's because of problems with entries in the specialization hash tables referring to function-local typedefs that we can't then reconnect when loading the modul= e.=20 Really such entries (if we do add them) shouldn't persist after we're done compiling the function.=