Bug 13673 – ICE(backend/cod2.d 5114)

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-11-03T01:15:00Z
Last change time
2015-02-18T03:39:17Z
Keywords
ice
Assigned to
nobody
Creator
sinkuupump

Comments

Comment #0 by sinkuupump — 2014-11-03T01:15:09Z
The code below causes ICE(Internal error: backend/cod2.c 5114). Introduced in DMD pull #4078: https://github.com/D-Programming-Language/dmd/pull/4078 ``` struct File { string _name; ~this() {} } string name; void test(T)() { File(name); File(name); } void main() { test!int(); } ```
Comment #1 by sinkuupump — 2014-11-03T02:23:51Z
Please ignore my comment #0. It wasn't reduced well, template is unrelated. ``` struct File { string _name; ~this() {} } string name; void test() { File(name); File(name); } void main() { test(); } ```
Comment #2 by sinkuupump — 2014-11-03T02:25:22Z
Please ignore my comment #0. It wasn't reduced well, template is unrelated. ``` struct File { string _name; ~this() {} } string name; void test() { File(name); File(name); } void main() { test(); } ```
Comment #3 by bugzilla — 2014-11-03T03:41:23Z
Comment #4 by bugzilla — 2014-11-04T23:03:40Z
Comment #5 by github-bugzilla — 2014-11-07T03:49:48Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/52c53940dca6a88c64d41fb4f2d2895786d748c3 fix Issue 13673 - ICE(backend/cod2.d 5114) https://github.com/D-Programming-Language/dmd/commit/10451418ec52adb4bb6235fa7e56ae81e94d817a Merge pull request #4113 from WalterBright/fix13673 fix Issue 13673 - ICE(backend/cod2.d 5114)
Comment #6 by github-bugzilla — 2015-02-18T03:39:17Z