From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E812E385773C; Mon, 8 May 2023 21:35:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E812E385773C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683581710; bh=5phefhyRENzeEdnYn3gyv0j463U8a3o9qVZ6/+lN+sE=; h=From:To:Subject:Date:From; b=hLpqEmmXF//StnAM//3s/wQFxuYxYtfihM/bxWoyp9DA6qrifmbi44h62fhSe2452 qvFXAP/6SeYWSKDY4bXX86vQUAx8oi9ghgj/vGLNxnQaJ+q4T7fuy2l8exm1GuLocV ld36Hu0nRHNqNAvOz/r3vgKNgHkmVDPo4Tp2ArBs= From: "eric.niebler at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109781] New: erroneous error "lambda-expression in template parameter type" for tparam lambda returning a lambda Date: Mon, 08 May 2023 21:35:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eric.niebler at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D109781 Bug ID: 109781 Summary: erroneous error "lambda-expression in template parameter type" for tparam lambda returning a lambda Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eric.niebler at gmail dot com Target Milestone: --- template struct C {}; ... on trunk with `-std=3Dc++20` results in: : In lambda function: :1:31: error: lambda-expression in template parameter type 1 | template | ^ Compiler returned: 1 I don't know of a reason why this code should be rejected.=