[Issue 5192] Pure function cannot access static __dollar
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 9 04:25:02 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5192
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #1 from bearophile_hugs at eml.cc 2010-11-09 04:23:58 PST ---
It compiles with DMD 2.050 if you remove "static":
void f() pure {
immutable int[3] a = [1,2,3];
auto i = a[$-1];
}
void main() {}
--
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