http://d.puremagic.com/issues/show_bug.cgi?id=8159
Summary: ICE: Slicing r-value static array Product: D Version: D2 Platform: x86_64 OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: peter.alexander...@gmail.com --- Comment #0 from Peter Alexander <peter.alexander...@gmail.com> 2012-05-29 11:00:58 PDT --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------