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

--- Comment #0 from Rainer Schuetze <> 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.


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

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

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

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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to