[Issue 3651] New: mangleof broken for enums

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 26 11:32:08 PST 2009


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

           Summary: mangleof broken for enums
           Product: D
           Version: 1.051
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: nfxjfg at gmail.com


--- Comment #0 from nfxjfg at gmail.com 2009-12-26 11:32:07 PST ---
First off, this bug report is for dmd 1.053, not 1.051; but bugzilla let's me
only select up to 1.051.

.mangleof is broken for enums:

enum foo {
    item,
}

//should output a mangled name with "foo" in it, but outputs "i"
pragma(msg, foo.mangleof);

void main() {}

I apologize if this is a duplicate bug; there were quite a lot of enum bugs
which look slightly similar (the compiler seems to reduce enums to ints
prematurely in a lot of cases).

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