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



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



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



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