[Issue 14257] ICE(backend/go.c) with large static foreach

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Mar 9 17:20:05 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14257

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

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

--- Comment #1 from Ketmar Dark <ketmar at 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.

--


More information about the Digitalmars-d-bugs mailing list