[Issue 5985] New: string enum fails with debugging enabled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 11 15:18:48 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5985

           Summary: string enum fails with debugging enabled
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: Jesse.K.Phillips+D at gmail.com
                CC: Jesse.K.Phillips+D at gmail.com


--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2011-05-11 15:14:48 PDT ---
Compilation will fail if -g or -gc is used:

break.d(2): Error: Integer constant expression expected instead of "one"
break.d(2): Error: Integer constant expression expected instead of "one"

enum Test : string {
    one = "one"
}
void main() {
}

-- 
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