Thread overview
[Issue 13221] [ICE] '0' on line 318 in file 'interpret.c'
Jul 29, 2014
Kenji Hara
Jul 29, 2014
Kenji Hara
July 29, 2014
https://issues.dlang.org/show_bug.cgi?id=13221

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
           Severity|major                       |regression

--- Comment #1 from Kenji Hara <k.hara.pg@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

--
July 29, 2014
https://issues.dlang.org/show_bug.cgi?id=13221

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/3824

--
July 29, 2014
https://issues.dlang.org/show_bug.cgi?id=13221

--- Comment #3 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b16f80834e4f9fa9bd62320f132f77fb22fc65b6 fix Issue 13221 - [ICE] '0' on line 318 in file 'interpret.c'

https://github.com/D-Programming-Language/dmd/commit/02c6399f67af4c80c8aef17f723879d7f0012a80 Merge pull request #3824 from 9rnsr/fix13221

[REG2.064] Issue 13221 - [ICE] '0' on line 318 in file 'interpret.c'

--
July 31, 2014
https://issues.dlang.org/show_bug.cgi?id=13221

--- Comment #4 from github-bugzilla@puremagic.com ---
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/4c104a0f77228affd41fd0a37b5191031676a9c0 Merge pull request #3824 from 9rnsr/fix13221

[REG2.064] Issue 13221 - [ICE] '0' on line 318 in file 'interpret.c'

--
August 22, 2014
https://issues.dlang.org/show_bug.cgi?id=13221

--- Comment #5 from github-bugzilla@puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/4c104a0f77228affd41fd0a37b5191031676a9c0 Merge pull request #3824 from 9rnsr/fix13221

--