[Issue 12920] ICE: Internal error: backend/symbol.c 1035
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Apr 22 10:37:24 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=12920
--- Comment #7 from Marc Schütz <schuetzm at gmx.net> ---
(In reply to Martin Krejcirik from comment #6)
> (In reply to Marc Schütz from comment #5)
> > No, the foreach iterates over `values`, which is a tuple. It should
> > therefore get unrolled, and `v` should become a constant.
>
> It cannot become a constant if a,b,c are not constants. It could still work
> if foreach is unrolled at compile-time, but that would be an enhancement
> request, I think.
foreach over a tuple _is_ unrolled, that's already implemented behaviour. But
you're right that `values` could indeed refer to global or even local vars,
didn't think of that.
--
More information about the Digitalmars-d-bugs
mailing list