Thread overview
[Issue 14257] ICE(backend/go.c) with large static foreach
Mar 10, 2015
Ketmar Dark
Mar 10, 2015
Ketmar Dark
Dec 17, 2022
Iain Buclaw
Dec 17, 2022
Iain Buclaw
Dec 17, 2022
Iain Buclaw
Mar 07, 2023
RazvanN
March 10, 2015
https://issues.dlang.org/show_bug.cgi?id=14257

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--- Comment #1 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
Created attachment 1490
  --> https://issues.dlang.org/attachment.cgi?id=1490&action=edit
workaround

this is caused by the same bug that causes Issue #14214: too many "code comma expressions".

i'm almost sure that both bugs triggered by the same code path, as i did a quick workaround for #14214 (not failing on processing too many OPcomma blocks), and it fixes this bug too.

yet i'm not familiar with codegen, so i will not mark this as duplicate, as this need further investigation from a person with codegen/optimizer knowledge.

i attached the workaround for those who want to dive into optimizer. it degrades optimizing quality in such pathological cases, but it at least allows optimizer to process other code.

--
March 10, 2015
https://issues.dlang.org/show_bug.cgi?id=14257

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #2 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
ah, and changed the hardware, as this is general arch-independent optimizer bug.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14257

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14257

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
           Severity|normal                      |critical

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14257

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice

--
March 07, 2023
https://issues.dlang.org/show_bug.cgi?id=14257

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
I cannot reproduce this. The code compiles successfully now.

--