← Back to index
|
Original Bugzilla link
Bug 8159 – ICE(cgcs.c): Slicing r-value static array
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2012-05-29T11:00:00Z
Last change time
2012-12-26T05:39:58Z
Keywords
ice
Assigned to
nobody
Creator
peter.alexander.au
Comments
Comment #0
by peter.alexander.au — 2012-05-29T11:00:58Z
Code: ubyte[4] bytes() { ubyte[4] x; return x; } void main() { auto x = bytes()[0..4]; } Result: % dmd test.d Internal error: ../ztc/cgcs.c 341 Tested using DMD v2.059 on OSX 10.6.
Comment #1
by dmitry.olsh — 2012-05-29T11:11:25Z
Confirmed on win7 x64 with dmd from git head.
Comment #2
by ibisbasenji — 2012-06-08T22:37:28Z
Confirmed on Linux.
Comment #3
by yebblies — 2012-12-26T05:39:58Z
*** This issue has been marked as a duplicate of issue 4414 ***