From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E25333856969; Tue, 15 Aug 2023 17:54:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E25333856969 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692122097; bh=DJZj87NQtbchT4XH7L3qzF7XQOZEBOS5ElPEj+jZMGo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FGZhvFXQOL/fJSPsE/UR9FpZwgLy+gV8RICp/i8Lo6jFD2UrxHfEScm7cW1neMmnf hWpSsIOTQdfd2UipVhOLurcZXVmfz574FsyiJKmtqmcxyT242vq3jWBIItgN7QeteP m8lGWYvKA9bw9CSxHetZk/IUUmaeOp0hytpjAF7A= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105644] ICE in a fold expression with a requires expression: in iterative_hash_template_arg, at cp/pt.cc:1805 Date: Tue, 15 Aug 2023 17:54:56 +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.1.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords 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=3D105644 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-reduction | --- Comment #3 from Patrick Palka --- Thanks for the reduction. Fixing this GCC bug(s) proved to be tricky, but o= ne should be able to reliably work around it by avoiding using a requires-expr directly inside a pack expansion or fold expression and use it indirectly instead, e.g. template concept foo =3D requires(T t) { { (I, t) } -> C; }; template constexpr bool check() { return (foo && ...); }=