[Issue 5192] New: Pure function cannot access static __dollar
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 9 03:33:29 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5192
Summary: Pure function cannot access static __dollar
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bugzilla at kyllingen.net
--- Comment #0 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2010-11-09 03:32:24 PST ---
Test case:
void f() pure
{
static immutable int[3] a = [1,2,3];
auto i = a[$-1];
}
test.d(4): Error: pure function 'f' cannot access mutable static data
'__dollar'
--
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