[Issue 7642] New: opDispatch with AA crashes dmd
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 3 23:10:25 PST 2012
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: nobody at puremagic.com
ReportedBy: zan77137 at nifty.com
--- Comment #0 from SHOO <zan77137 at nifty.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list