December 01, 2010 [Issue 5304] New: Cannot access __dollar in pure function | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5304 Summary: Cannot access __dollar in pure function Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2010-12-01 12:52:21 PST --- pure void foo(T...)(T args) { auto x = args[1 .. $]; } void main() { foo(1, 2); } DMD 2.050 shows: test.d(2): Error: pure function 'foo' cannot access mutable static data '__dollar' test.d(5): Error: template instance test.foo!(int,int) error instantiating If I remove "pure" the error vanishes. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 26, 2012 [Issue 5304] Cannot access __dollar in pure function | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5304 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform|x86 |All Resolution| |WORKSFORME --- Comment #1 from kennytm@gmail.com 2012-02-26 08:41:37 PST --- Apparently fixed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation