Bug 1708 – CodeView: parent-scope not set for nested functions

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-12-02T07:38:10Z
Last change time
2024-12-13T17:48:06Z
Keywords
DebugInfo
Assigned to
No Owner
Creator
Jascha Wetzel
Moved to GitHub: dmd#17659 →

Comments

Comment #0 by jascha — 2007-12-02T07:38:10Z
par should point to the entry of main.func ----------------------------------------------------------------------- S_GPROC32 par=x00000000 end=x00000000 next=x00000000 len=x001f debsta=x0007 debend=x001b off=x0000 seg=x0000 proctyp=x1004 near _D4main4funcFkZk6nestedMFkZv segidx = 5 offset = 00a1, lcfd = ec12, fd = 1, td = 2, targdisp = x0000 ----------------------------------------------------------------------- import std.stdio; import std.string; uint func(uint outer_param) { uint outer_var = 56789+outer_param; void nested(uint nested_param) { int nested_var = 1234+nested_param; outer_var += nested_var; } nested(outer_param*123); return outer_var; } void main(string[] args) { writefln("%d", func(atoi(args[1]))); }
Comment #1 by robert.schadek — 2024-12-13T17:48:06Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17659 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB