D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6468 - alias this doesn't complain about Identifier not denoting an aggregate member
Summary: alias this doesn't complain about Identifier not denoting an aggregate member
Status: RESOLVED DUPLICATE of issue 6561
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 minor
Assignee: No Owner
URL:
Keywords: accepts-invalid, diagnostic
Depends on:
Blocks:
 
Reported: 2011-08-11 08:52 UTC by Trass3r
Modified: 2011-08-29 22:36 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Trass3r 2011-08-11 08:52:00 UTC
struct G
{
	long d;
}

struct F
{
	alias G this;
}
Comment 1 yebblies 2011-08-12 06:27:24 UTC
It's actually much worse.

struct S
{
    alias G this;
}

void main() {}

compiles without error.
Comment 2 yebblies 2011-08-29 22:36:10 UTC

*** This issue has been marked as a duplicate of issue 6561 ***