From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3FB333858D35; Sun, 10 Sep 2023 03:52:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FB333858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694317959; bh=PbOrRk+MSCbSnEzo/EYlrIoGMtfyLevWxZ3xiEApBPM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=d3u/7fywdpbR951Ksrs/hHrDpNtt3HnC8nbUpIwgLI23Fs9oEK8AkEpqgqWLwyRCp 62zGTGtJRQ1oLBj2m3atBZlSK1zGIb0PNsC1AibS8x3zPYh/OA5S9QaUznwYKAP3Hc a7gM+l7QIMqxMLNvBOX1tm0ykji8RHmzvJDtxJMU= 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 in noexcept context Date: Sun, 10 Sep 2023 03:52:38 +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: NEW 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: cf_reconfirmed_on everconfirmed bug_status 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 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-09-10 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #2 from Andrew Pinski --- Reduced slightly: ``` #include using std::integer_sequence; using std::make_integer_sequence; template void g(integer_sequence) {} template struct c1 { static constexpr int value =3D 1; constexpr operator int() { return value; }=20 }; template struct R { using S =3D make_integer_sequence{}>; R() noexcept(noexcept(g(S()))) {} }; int main() { R(); } ``` The obvious workaround in this case (and the tuple_size case) is to use `::value` (or tuple_size_v ).=