[Issue 8159] New: ICE: Slicing r-value static array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 29 10:59:10 PDT 2012
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: nobody at puremagic.com
ReportedBy: peter.alexander.au at gmail.com
--- Comment #0 from Peter Alexander <peter.alexander.au at 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: -------
More information about the Digitalmars-d-bugs
mailing list