[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
Wed Dec 21 14:35:42 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5941
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2011-12-21 14:35:39 PST ---
Reduced test case suggests it's related to typeof():
auto fx() {
struct S {
void get() {}
}
return S.init;
}
void main() {
//auto w = fx(); // OK
typeof(fx()) z; // fails!
}
Again, adding any attributes to get() removes the bug -- even though get() is
never used.
--
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