[Issue 13028] [ICE] CTFE internal error: cannot evaluate at compile time

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Dec 9 20:51:11 PST 2014


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

--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Kenji Hara from comment #3)
> https://github.com/D-Programming-Language/dmd/pull/4208

It will improve the diagnosic messages:

test.d(3): Error: variable dg cannot be read at compile time
test.d(10): Error: variable a cannot be read at compile time
test.d(16): Error: CTFE failed because of previous errors in foo
test.d(16):        while evaluating: static assert(foo(() => 1) == 1)
test.d(17): Error: CTFE failed because of previous errors in bar
test.d(17):        while evaluating: static assert(bar(delegate int() => 1) ==
1)

--


More information about the Digitalmars-d-bugs mailing list