Thread overview
[Issue 4817] New: CodeView: Enum members should have simple names
Sep 05, 2010
Aldo Nunez
Apr 28, 2011
Aldo Nunez
Apr 28, 2011
Walter Bright
September 05, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4817

           Summary: CodeView: Enum members should have simple names
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: aldonunez1@gmail.com


--- Comment #0 from Aldo Nunez <aldonunez1@gmail.com> 2010-09-05 00:51:40 PDT ---
In the CodeView info for a program, members of enums have their names stored fully qualified, even though the enum members themselves are stored in the scope of their enum type, whose name is already fully qualified.

Instead of storing:

LF_ENUM "mod.E"
- LF_ENUMERATE "mod.E.Alpha"
- LF_ENUMERATE "mod.E.Beta"

This should be stored:

LF_ENUM "mod.E"
- LF_ENUMERATE "Alpha"
- LF_ENUMERATE "Beta"

This is helpful for debugging.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 28, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4817



--- Comment #1 from Aldo Nunez <aldonunez1@gmail.com> 2011-04-28 01:18:42 PDT ---
Created an attachment (id=954)
Use toChars instead of toPrettyChars.

We can fix this by using toChars instead of toPrettyChars when writing LF_ENUMERATE records in cv4_Denum.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 28, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4817


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-04-28 11:28:20 PDT ---
https://github.com/D-Programming-Language/dmd/commit/a98c332a2ea6ad9b4b29926d8af4258e9e8b60c5

https://github.com/D-Programming-Language/dmd/commit/08c5424d5911f7161477786cfc41bb3e93097a16

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