From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 73FB53858425; Sat, 28 Oct 2023 15:01:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73FB53858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698505280; bh=/zpkN5UanQQtROAXs215zsE7JZn2mGTYZ4x3NyZQiAw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C73SMqd7PMl9Smx5+XS7sE8XXui5SFImeyGG6CEkq4FgcLXJtw2ARDcFNO5GQPdo0 TSD4Tack1nRC2ziuazWxHM6TOvn2mCDrIneSJ+dvwxMN7w0+WWFSyiyUE/KfRF0Nnp YFqwWSY5SX9InLTtg7YyQrTtrOlLQKl1+skMR2yI= From: "johelegp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109781] [11/12/13/14 Regression] erroneous error "lambda-expression in template parameter type" for tparam lambda returning a lambda Date: Sat, 28 Oct 2023 15:01:20 +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: 14.0 X-Bugzilla-Keywords: c++-lambda, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: johelegp at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D109781 --- Comment #5 from Johel Ernesto Guerrero Pe=C3=B1a --- Add `+` to convert it to a pointer, and it's still rejected (): ```C++ template struct C {}; ``` ```output : In lambda function: :1:32: error: lambda-expression in template parameter type 1 | template | ^ Compiler returned: 1 ```=