← Back to index
|
Original Bugzilla link
Bug 7661 – ICE(cgcs.c) With return of one fixed size array item
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-03-07T10:53:00Z
Last change time
2013-10-04T14:41:40Z
Keywords
ice, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2012-03-07T10:53:15Z
Is this a regression? int[1] foo() { return [1]; } int main() { return foo()[0]; } DMD 2.059head gives: Internal error: backend\cgcs.c 354
Comment #1
by bugzilla — 2013-10-04T12:31:33Z
Does not happen with 2.064 head.
Comment #2
by bearophile_hugs — 2013-10-04T14:41:40Z
(In reply to comment #1) > Does not happen with 2.064 head. I suggest to add a unittest that makes sure this bug keeps being fixed.