Bug 11618 – Internal Compiler Error

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-27T07:53:00Z
Last change time
2013-11-29T10:27:00Z
Keywords
ice, pull
Assigned to
nobody
Creator
bioinfornatics

Comments

Comment #0 by bioinfornatics — 2013-11-27T07:53:28Z
Hi, this code raise an Internal Compiler Error. -> http://www.dpaste.dzfl.pl/985a2f42 After talking about this issue into d.learn -> http://forum.dlang.org/thread/[email protected] It seem that is maybe a bug
Comment #1 by bearophile_hugs — 2013-11-27T07:59:15Z
(In reply to comment #0) > Hi, > > this code raise an Internal Compiler Error. > > -> http://www.dpaste.dzfl.pl/985a2f42 > > > After talking about this issue into d.learn > > -> http://forum.dlang.org/thread/[email protected] > > It seem that is maybe a bug Please paste the code here or attach it here. But please try to minimize it first.
Comment #2 by hsteoh — 2013-11-27T20:36:42Z
It would help to include the exact compiler error message too.
Comment #3 by bioinfornatics — 2013-11-28T15:20:50Z
Always when discussing into initial d.learn thread > -> http://forum.dlang.org/thread/[email protected] it appear they are at least 2 compiler issue 1/ https://d.puremagic.com/issues/show_bug.cgi?id=11627 2/ https://d.puremagic.com/issues/show_bug.cgi?id=11629 CTFE is a nice feature but it is not ready yet
Comment #4 by k.hara.pg — 2013-11-29T00:45:17Z
Reduced test case: struct Tuple(T...) { T field; alias field this; } static assert({ Tuple!(immutable dchar) result = void; auto addr = cast(dchar*) &result[0]; *addr = dchar.init; return true; }());
Comment #5 by k.hara.pg — 2013-11-29T02:38:19Z
Comment #6 by github-bugzilla — 2013-11-29T10:26:47Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f4bd1b1786d4bdc8c075ebcdcc8076200ce00d80 fix Issue 11618 - Internal Compiler Error https://github.com/D-Programming-Language/dmd/commit/534fedec3b522ff86732c0e00c2dcea4cbc471e7 Merge pull request #2901 from 9rnsr/fix11618 Issue 11618 - Internal Compiler Error