Thread overview | |||||
---|---|---|---|---|---|
|
April 04, 2013 [Issue 9875] New: opDispatch is wrongly set to safe | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9875 Summary: opDispatch is wrongly set to safe Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-04-04 07:17:16 PDT --- import std.string; mixin template Mixin() { auto test()() // must be template to reproduce { static struct Dispatch // move outside of 'test' and it works { void opDispatch(string name, Args...)(Args args) { assert(0, format("%s", "")); } } return Dispatch(); } } mixin Mixin!(); void main() { test().foo(); } Error: safe function 'test.Mixin!().test!().test.Dispatch.opDispatch!("foo", ).opDispatch' cannot call system function 'std.string.format!(char, string).format' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 04, 2013 [Issue 9875] opDispatch is wrongly set to safe | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9875 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-04-04 07:19:08 PDT --- Oh and I'm using 2.063 git-head. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 18, 2013 [Issue 9875] opDispatch is wrongly set to safe | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9875 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-09-18 05:12:41 PDT --- Works in 2.063.2. -- 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