[Issue 9540] Compiler crash on delegate context frame assignment
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 23 02:19:01 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9540
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Kenji Hara <k.hara.pg at gmail.com> 2013-04-23 02:18:57 PDT ---
Now the reduced code reports following errors.
test.d(26): Error: function test.A.test.AddFront!(this, f).AddFront.dg (int
_param_0) is not callable using argument types ()
test.d(17): Error: template instance test.A.test.AddFront!(this, f) error
instantiating
auto dg (Args dgArgs) {
return fun (dgArgs);
}
dg.ptr = ctx; // <-- line 26
dg is not a delegate, it is a nested function. So it does not have `ptr`
property.
--
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