From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6555D38555A1; Fri, 7 Jul 2023 08:02:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6555D38555A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688716959; bh=Tt5a5WyaeyjQVsezTGRYdCl1hpCkfdtt3EeWb/0vzkM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BDv8zw8p4EMihACJbpJNexYC6Q2XtEGRAwMPi02TjzUODCSkiZvzzNKyzWaokb8iS ChsdQXKC/sWAw4kjcI9u5B6JRH78gM8xajoHExoH6b+p+Bz053IGq67jKUmT9MO5xj W0z4fvbYaFfAtWm3XXL2OdroS/3zr9NQKAATAxp8= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86355] [10 Regression] Internal compiler error with pack expansion and fold expression Date: Fri, 07 Jul 2023 08:02:31 +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: 8.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution target_milestone cf_known_to_fail cf_known_to_work 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=3D86355 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Target Milestone|10.5 |10.4 Known to fail| |10.3.0 Known to work| |10.4.0 Status|ASSIGNED |RESOLVED --- Comment #13 from Richard Biener --- The comment#5 testcase was fixed in GCC 10.4 but the original testcase is s= till rejected everywhere: t.C: In substitution of 'template using check2 =3D mp_all, std::integral_constant(std::is_copy_constructible::value) ... && static_cast(std::integral_constant(std::is_copy_assignable::value) && ...)>::value))> > [with V =3D void; T =3D {int, float}]': t.C:10:52: required from here t.C:6:77: error: invalid use of pack expansion expression 6 | ass... T> using mp_all =3D mp_bool<(static_cast(T::value) && = ...)>; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~= ~~ t.C:10:62: error: template argument 1 is invalid 10 | tatic_assert( std::is_same, mp_true>::valu= e ); | ^ we seem to track the ICE here, so fixed.=