[Issue 12920] ICE: Internal error: backend/symbol.c 1035

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Apr 21 08:20:28 PDT 2015


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

Martin Krejcirik <mk at krej.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mk at krej.cz
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #4 from Martin Krejcirik <mk at krej.cz> ---
(In reply to Marc Schütz from comment #3)
> Is it really a duplicate? The code in the other bug is clearly invalid, but
> this one should work IMO.

In this example 'v' is a runtime variable and as such it cannot be a case
variable.

If a,b,c were enums, it would compile. 

But I don't understand why uint a,b,c gives error message
Error: variable v cannot be read at compile time

but int a,b,c does not. So maybe it's a different bug.

--


More information about the Digitalmars-d-bugs mailing list