From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 04FF43858D33; Sun, 10 Sep 2023 03:33:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04FF43858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694316810; bh=hx8OnN9Dn9A5EywBoXiOuBh6xTcPze6xP7eNF8qJdHw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x2CMlgZwsNoy9/GnqGw6p7kYnK3GfNcD/I0mGtRpXoGQ7d7v9ucOfsqMYD90inMhF eSaEoqf8Q9wvvS16v7cWYh8l5M4f9RU7Xo/LJL/R/f0waU8syQm8WT3ZCoC609/xd1 rLTw2mueQ6NWqvLTI1aXFFMLN9gC8a0Mo8oocfSw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111357] __integer_pack fails to work with values of dependent type convertible to integers Date: Sun, 10 Sep 2023 03:33:29 +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: 13.2.0 X-Bugzilla-Keywords: rejects-valid 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=3D111357 --- Comment #1 from Andrew Pinski --- The front-end does: hi =3D instantiate_non_dependent_expr (hi, complain); hi =3D cxx_constant_value (hi, complain); int len =3D valid_constant_size_p (hi) ? tree_to_shwi (hi) : -1;=