[Issue 5941] Using inner struct which references nested function in a no-attribute or auto-return member function causes "nested function cannot be accessed" error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 4 09:20:31 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5941
Maksim Zholudev <maximzms at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maximzms at gmail.com
--- Comment #5 from Maksim Zholudev <maximzms at gmail.com> 2013-03-04 09:20:24 PST ---
Linux, 64-bit
DMD from Git head
https://github.com/D-Programming-Language/dmd/commit/13b3bdbf3819fec810ebfb077957510612dfa815
0.
Compiling code from the description
(http://d.puremagic.com/issues/show_bug.cgi?id=5941#c0):
--------------------
test.d(11): Error: cannot access frame pointer of test.f.S
--------------------
1.
Compiling code from comment 1
(http://d.puremagic.com/issues/show_bug.cgi?id=5941#c1):
--------------------
test.d(11): Error: cannot access frame pointer of test.f!(function void()
{
}
).f.S
--------------------
2.
Compiling code from comment 2
(http://d.puremagic.com/issues/show_bug.cgi?id=5941#c1):
--------------------
test.d(9): Error: cannot access frame pointer of test.fx.S
--------------------
Is this behavior correct?
--
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