[Issue 7639] New: Undefined enum AA key crashes compiler
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 3 18:00:31 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7639
Summary: Undefined enum AA key crashes compiler
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: ice
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-03-03 18:00:30 PST ---
// enum str = ""; // comment out to avoid crash
void main()
{
enum foo =
[
str : "functions",
];
}
When 'auto' is used it doesn't crash the compiler but gives a nice error
message:
Error: undefined identifier str
--
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