www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14330] New: Global variable causes wrong DWARF type of local

https://issues.dlang.org/show_bug.cgi?id=14330

          Issue ID: 14330
           Summary: Global variable causes wrong DWARF type of local
                    variable
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: mk krej.cz

__gshared ulong globvar; //ulong triggers bug

void main()
{
        string str = "something";
        int i;
        i++;
}

Breakpoint 1, D main () at dwarfbug.d:8
8       }
(gdb) info locals
str = 578532781965967369
i = 1
(gdb) ptype str
type = unsigned long long

dmd 2.066 and master, x86

--
Mar 24 2015