Bug 6795 – ICE(cgcs.c): Incrementing an enum array item

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-10-08T19:10:00Z
Last change time
2013-04-10T22:03:42Z
Keywords
ice
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-10-08T19:10:07Z
void main() { enum int[] array = [0]; array[0]++; } DMD 2.056head: Internal error: backend\cgcs.c 526
Comment #1 by yebblies — 2013-01-16T07:02:27Z
Still exists with 2.062 head
Comment #2 by bugzilla — 2013-04-07T14:27:17Z
Comment #3 by github-bugzilla — 2013-04-10T19:58:07Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/011d2e992919a4663ea8ce5259f534ffb544aea4 fix Issue 6795 - ICE(cgcs.c): Incrementing an enum array item https://github.com/D-Programming-Language/dmd/commit/ad6e53715cd20e52e4d3fb9559b3c023a1edd236 Merge pull request #1863 from WalterBright/fix6795 fix Issue 6795 - ICE(cgcs.c): Incrementing an enum array item
Comment #4 by github-bugzilla — 2013-04-10T22:03:42Z