[Issue 9619] New: Failed struct field typeof in inner function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 28 19:48:51 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9619
Summary: Failed struct field typeof in inner function
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-02-28 19:48:50 PST ---
struct Foo { int x; }
void main() {
void bar() {
typeof(Foo.x) y;
}
}
DMD 2.063alpha gives:
test.d(4): Error: this is not in a class or struct scope
test.d(4): Error: 'this' is only defined in non-static member functions, not
bar
--
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