[Issue 8863] struct passed to template: cannot access frame pointer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 14 01:13:29 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8863
--- Comment #7 from Walter Bright <bugzilla at digitalmars.com> 2012-11-14 01:13:28 PST ---
I agree that the original code silently generated wrong code. So this isn't
really a regression.
But I think we can fix it. There is no way to make your example work, because
it is returning a reference to a local. But the original one can work, and
there are many examples of local structs being used as parameters to global
templates, and they work because of the isnested logic.
--
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