[Issue 6943] New: Internal error: e2ir.c 4728 when doing get() on AA literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 13 04:56:36 PST 2011
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 at puremagic.com
ReportedBy: xtzgzorex at gmail.com
--- Comment #0 from Alex Rønne Petersen <xtzgzorex at 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: -------
More information about the Digitalmars-d-bugs
mailing list