From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 954F93858D39; Thu, 21 Sep 2023 22:00:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 954F93858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695333615; bh=j+DZzkNg4hgmB4JxgW6URnpFyPozx3UIN+ju4s3ZVJA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AyLnhTNN3i2VIXEaFUI/DQtx1XbQ0rPHztU5xQ1hMqnIl0qAxEeRp5ml/RABEdMB2 /8GkQL1LqZZV1n2xy2TI5WH4mvfMpbaLNue5suNF87rQCPLVPcgrX1G9VAZmzGhw+K wEaqLggHTuhl4HrkACS70zwrUcsGoRgWfJQrKCd4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111529] [11/12/13/14 Regression] ICE on bool conversion in an unrolled loop condition inside template lambda nested in another template scope Date: Thu, 21 Sep 2023 22:00:15 +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: c++-lambda, ice-on-valid-code 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: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_known_to_fail cf_known_to_work cf_reconfirmed_on everconfirmed target_milestone short_desc 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=3D111529 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to fail| |11.1.0 Known to work| |10.1.0 Last reconfirmed| |2023-09-21 Ever confirmed|0 |1 Target Milestone|--- |11.5 Summary|ICE on bool conversion in |[11/12/13/14 Regression] |an unrolled loop condition |ICE on bool conversion in |inside template lambda |an unrolled loop condition |nested in another template |inside template lambda |scope |nested in another template | |scope --- Comment #1 from Andrew Pinski --- Slightly more reduced: ``` template void f() { []() { #pragma GCC unroll 9 for (int i =3D 1; i; --i) { } }; } int main() { f<0>(); } ```=