www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11516] New: Wrong symbol in debug watch due to name collision

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11516

           Summary: Wrong symbol in debug watch due to name collision
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: VisualD
        AssignedTo: nobody puremagic.com
        ReportedBy: ehysta gmail.com


--- Comment #0 from pravic <ehysta gmail.com> 2013-11-14 10:26:16 PST ---
Example:

    if(0) {
        byte key = 12;
        key -= 2;
        log.trace(key);
    }
    else {
        byte key = 0;
        key++;
        log.trace(key);
    }

In watch we can see only an uninitialized first variable (e.g -1) even code
path evaluated to lines below.

Mago debugger, latest VisualD version.

(cv2pdb isn't work)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 14 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11516


Rainer Schuetze <r.sagitario gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario gmx.de


--- Comment #1 from Rainer Schuetze <r.sagitario gmx.de> 2013-11-16 00:59:47
PST ---
The problem here is that dmd does not emit information about the life time of a
variable, they are all considered valid for the whole function (see also issue
3657).

The locals window shows both variables.

 (cv2pdb isn't work)
Is this because you are using VS2013 (not yet supported)? Or is this a separate issue? -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 16 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11516


pravic <ehysta gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #2 from pravic <ehysta gmail.com> 2013-11-18 00:25:01 PST ---
*** This issue has been marked as a duplicate of issue 3657 ***

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