Bug 13504 – ICE(backend/cgelem.c 2418) with "-O -cov"

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-09-20T11:18:00Z
Last change time
2015-02-18T03:38:06Z
Keywords
ice, ice-on-valid-code, pull
Assigned to
nobody
Creator
sinkuupump

Comments

Comment #0 by sinkuupump — 2014-09-20T11:18:39Z
bool func(T)() { return true; } void main() { assert(func!int() || int.sizeof); } This code produces an ICE when compiled with -O and -cov. $ dmd -O -cov -c ice.d Internal error: backend/cgelem.c 2418
Comment #1 by dlang-bugzilla — 2014-09-21T01:02:22Z
Comment #2 by code — 2014-10-07T00:38:52Z
Comment #3 by github-bugzilla — 2014-10-08T07:31:08Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/faa0877127cd5052d44b5fd311d2488893e041d0 fix Issue 13504 - ICE(backend/cgelem.c 2418) with "-O -cov" - assert failed because goal wasn't properly passed down https://github.com/D-Programming-Language/dmd/commit/1ea5d5973ac61b55d005af26e8a39aeb52e08a53 Merge pull request #4047 from MartinNowak/fix13504 fix Issue 13504 - ICE(backend/cgelem.c 2418) with "-O -cov"
Comment #4 by github-bugzilla — 2014-10-11T20:38:20Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3005775b9c3562562128f3e54eff5a389d648124 Merge pull request #4047 from MartinNowak/fix13504 fix Issue 13504 - ICE(backend/cgelem.c 2418) with "-O -cov"
Comment #5 by github-bugzilla — 2015-02-18T03:38:06Z