From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D3CF03858D32; Mon, 16 Jan 2023 07:00:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3CF03858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673852414; bh=B/dCSwUkEzYkKqnmT2CiJ9Gksiu5FElZI3WkXjEvyhU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N28wTVnl2XYcoYhf7CjVZGUIEXilFxf5TpcNxtjeAzgvltEkKpLlOyI1RvvAOSBm1 dl8sfVYt5f6kpsQBeoNPltyUQ0HsT4rmSL/kxHqMf5e5LAdLXXq6SZhRpSaAtukXrV mfJn0iFPTv8eKq+YAUOCLJ7uhgLT4l+rlWiAZ/cw= From: "amewo22370 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108414] template meta programming Date: Mon, 16 Jan 2023 07:00:13 +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: amewo22370 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: 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=3D108414 --- Comment #2 from =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9B=D0=B8= =D1=81=D0=B8=D1=86=D1=8B=D0=BD --- (In reply to Andrew Pinski from comment #1) > > using nth_element_t =3D typename decltype([](const indexed<= I, T>&){return std::type_identity{};}(make_indexer()))::type; >=20 > There are some known issue with lambda inside a decltype which seems like > might be causing issues here ... interesting that 'typedef' and 'using' have different behavior=