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

           Summary: type of enumerator values reduced to base type in
                    debug info
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: r.sagita...@gmx.de


--- Comment #0 from Rainer Schuetze <r.sagita...@gmx.de> 2010-06-23 00:12:00 
PDT ---
Variables with enumerator type show up in the debugger as their base types.
Even though the enumerator type itself is written to the object file (at least
for CodeView debug info), it is not referred to by the variables type.

compiling:

module test;
enum E { kEnum1, kEnum2 }
E e = E.kEnum1;

with "dmd -c -g test.d" and running the object file through obj2asm produces 

----8<-----
...
S_GDATA32    off = x0000, seg = x0000, typ = x0074 _D4test1eE4test1E
segidx = 5 offset = 004e, lcfd = ec10, fd = 1, td = 8, targdisp = x0000
...
---->8-----

mapping test.e to type 74h (int).

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

Reply via email to