Bug 6468 – alias this doesn't complain about Identifier not denoting an aggregate member

Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-08-11T08:52:00Z
Last change time
2011-08-29T22:36:10Z
Keywords
accepts-invalid, diagnostic
Assigned to
nobody
Creator
hoganmeier

Comments

Comment #0 by hoganmeier — 2011-08-11T08:52:00Z
struct G { long d; } struct F { alias G this; }
Comment #1 by yebblies — 2011-08-12T06:27:24Z
It's actually much worse. struct S { alias G this; } void main() {} compiles without error.
Comment #2 by yebblies — 2011-08-29T22:36:10Z
*** This issue has been marked as a duplicate of issue 6561 ***