http://d.puremagic.com/issues/show_bug.cgi?id=7785
Summary: [CTFE] ICE when slicing pointer to variable
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2012-03-26 20:02:09 PDT ---
cat > bug.d << CODE
bool foo()
{
int val;
auto p = &val;
auto ary = p[0 .. 1];
return true;
}
enum res = foo();
CODE
dmd -c bug
--------
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------