[Issue 13221] [ICE] '0' on line 318 in file 'interpret.c'
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jul 29 02:26:51 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13221
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice
Severity|major |regression
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Johannes Blume from comment #0)
> On v2.066.0-b6 this results in:
>
> main.d(9): Error: variable r cannot be read at compile time
> main.d(10): Error: CTFE internal error: ErrorExp in main.d(10)
>
> Assertion failure: '0' on line 318 in file 'interpret.c'
The ICE occurs from 2.064.
With 2.062 -> no ICE
$ dmd -o- test
test.d(9): Error: variable r cannot be read at compile time
test.d(10): Error: Integer constant expression expected instead of cast(int)r
With 2.063 -> no ICE
$ dmd -o- test
test.d(9): Error: variable r cannot be read at compile time
C:\dmd2.063\src\phobos\std\range.d(611): Error: static assert "Cannot put a
char[] into a Appender!(string)"
C:\dmd2.063\src\phobos\std\format.d(1433): instantiated from here:
put!(Appender!(string), char[])
C:\dmd2.063\src\phobos\std\format.d(1335): instantiated from here:
formatUnsigned!(Appender!(string), char)
C:\dmd2.063\src\phobos\std\format.d(1309): instantiated from here:
formatIntegral!(Appender!(string), ulong, char)
C:\dmd2.063\src\phobos\std\format.d(2950): ... (3 instantiations, -v to
show) ...
C:\dmd2.063\src\phobos\std\typecons.d(326): instantiated from here:
format!(char, uint, uint)
test.d(10): instantiated from here: Tuple!(bool)
With 2.064, and 2.065 -> ICE
--
More information about the Digitalmars-d-bugs
mailing list