http://d.puremagic.com/issues/show_bug.cgi?id=7642
Summary: opDispatch with AA crashes dmd
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from SHOO <[email protected]> 2012-03-03 23:10:24 PST ---
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;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------