Summary: No lexical scope for local variables in debug info
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from Rainer Schuetze <> 2009-12-29 02:47:59 
PST ---

import std.stdio;

void main()
   for(int i = 0; i < 10; i++)
      writefln("1 - %d", i);

   for(int i = 0; i < 10; i++)
      writefln("2 - %d", i);

This declares two different variables "i", but the debugger only shows the
value of the first variable, even while stepping through the second loop. (The
list of local variables does show two variables "i".)

This is caused by DMD not emitting any life time info of local variables.

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

Reply via email to