D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7642 - opDispatch with AA crashes dmd
Summary: opDispatch with AA crashes dmd
Status: RESOLVED DUPLICATE of issue 7578
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-03 23:10 UTC by SHOO
Modified: 2012-03-04 00:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description SHOO 2012-03-03 23:10:24 UTC
This code crashes dmd:

struct Foo
{
	int[int] foo;
}

struct Bar
{
	Foo xxx;

	template opDispatch(string name)
	{
		@property auto ref opDispatch(this X, V)(auto ref V v) { return mixin("xxx."~name~" = v"); }
	}
}

void main()
{
	Bar bar;
	
	bar.foo[0] = 0;
}
Comment 1 Kenji Hara 2012-03-04 00:37:32 UTC

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