D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 14330 - Wrong DWARF type of dynamic array variable
Summary: Wrong DWARF type of dynamic array variable
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P1 minor
Assignee: No Owner
URL:
Keywords: DebugInfo, pull
Depends on:
Blocks:
 
Reported: 2015-03-25 00:50 UTC by Martin Krejcirik
Modified: 2015-06-17 21:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Krejcirik 2015-03-25 00:50:04 UTC
__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
Comment 1 Martin Krejcirik 2015-03-29 01:50:51 UTC
https://github.com/D-Programming-Language/dmd/pull/4526
Comment 2 github-bugzilla 2015-03-30 06:14:37 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/614c756180296550be45e4f3f81223f16ede8eb1
Fix Issue 14330 - Wrong DWARF type of dynamic array variable

https://github.com/D-Programming-Language/dmd/commit/afd746b8623fd5d9322f89af7b5c40d11758607c
Merge pull request #4526 from tramker/bug14330

Fix Issue 14330 - Wrong DWARF type of dynamic array variable
Comment 3 github-bugzilla 2015-06-17 21:03:20 UTC
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/614c756180296550be45e4f3f81223f16ede8eb1
Fix Issue 14330 - Wrong DWARF type of dynamic array variable

https://github.com/D-Programming-Language/dmd/commit/afd746b8623fd5d9322f89af7b5c40d11758607c
Merge pull request #4526 from tramker/bug14330