digitalmars.D.bugs - [Issue 6943] New: Internal error: e2ir.c 4728 when doing get() on AA literal
- d-bugmail puremagic.com (36/36) Nov 13 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6943
- d-bugmail puremagic.com (12/12) Dec 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6943
http://d.puremagic.com/issues/show_bug.cgi?id=6943 Summary: Internal error: e2ir.c 4728 when doing get() on AA literal Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: xtzgzorex gmail.com --- Comment #0 from Alex Rønne Petersen <xtzgzorex gmail.com> 2011-11-13 04:55:54 PST --- Consider the following code: enum MyEnum { foo, bar, baz, } void main() { auto foo = [MyEnum.foo : 'o', MyEnum.bar : 'r', MyEnum.baz : 'z']; auto val = foo.get(MyEnum.bar, 'r'); // Works fine. auto val2 = [MyEnum.foo : 'o', MyEnum.bar : 'r', MyEnum.baz : 'z'].get(MyEnum.baz, 'z'); // Breaks. } For some reason, the compiler seems to explode when doing get() directly on an AA literal. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 13 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6943 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |DUPLICATE --- Comment #1 from yebblies <yebblies gmail.com> 2011-12-13 17:16:38 EST --- *** This issue has been marked as a duplicate of issue 5675 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 12 2011