www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12362] New: dmd hangs when attempting to use undefined enum

https://d.puremagic.com/issues/show_bug.cgi?id=12362

           Summary: dmd hangs when attempting to use undefined enum
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: michaelpm394 gmail.com


--- Comment #0 from michaelpm394 gmail.com 2014-03-14 02:20:04 PDT ---
I think it should give an error.

enum foo;
void main()
{
    enum bar = foo;
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 14 2014