[Issue 11849] New: Recursive enum causes segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 30 15:34:31 PST 2013


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

           Summary: Recursive enum causes segfault
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: doob at me.com


--- Comment #0 from Jacob Carlborg <doob at me.com> 2013-12-30 15:34:26 PST ---
The following code causes a segmentation fault when compiled with DMD git HEAD:

alias DWORD = uint;

enum : DWORD
{
    REG_DWORD = 4
}

enum RegValueType : DWORD
{
    Unknown = DWORD.max,
    DWORD = REG_DWORD
}

Seems to be an infinite loop. I don't know if it's the same problem but this
code causes a segmentation fault as well:

enum : DWORD
{
    DWORD = REG_DWORD
}

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


More information about the Digitalmars-d-bugs mailing list