From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1D7533858C35; Fri, 9 Feb 2024 02:50:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D7533858C35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707447003; bh=qdgy88xeA3IhI6K0ULjOvk1RLUpwAHzuk9JRZQntuoA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NgEXDdtEbhJ5dmsPbHI2IND+wWht5QEsGilmqI9mjoY3WJxXg/nYA7S3GTkquXPOZ SYjp0WQuMZBEN4KPlMi0bvdl4F4fTdpcoHFIBB1YhSxZNpYGGsDgphuAwXAIFvWgHR 8dna0O2hYCfGSe2F2W81UN/eLpme+vfOv/MzoPwU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113834] internal compiler error: in tree_to_shwi, at tree.cc:6461 Date: Fri, 09 Feb 2024 02:49:59 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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=3D113834 --- Comment #3 from Andrew Pinski --- Reduced testcase: ``` template class tuple{}; template __type_pack_element<__i, _Elements...> &get(tuple<_Elements...> &__t) noexc= ept; tuple data; template unsigned take_impl(unsigned idx) { if constexpr (Level !=3D -1){ return take_impl(get(data)); } return 0; } int main() { take_impl<2>(0); } ``` Note I think this is invalid code ...=