[Issue 4256] New: Inner template mathods can't access this pointer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 31 05:52:21 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4256
Summary: Inner template mathods can't access this pointer
Product: D
Version: unspecified
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: simen.kjaras at gmail.com
--- Comment #0 from Simen Kjaeraas <simen.kjaras at gmail.com> 2010-05-31 05:52:19 PDT ---
struct bar {
int n;
void baz( ) {
void qux(T)() {
n = 3;
}
qux!int();
}
}
The above code barfs on 'n = 3;': "Error: need 'this' to access member n".
--
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