https://issues.dlang.org/show_bug.cgi?id=21158
Issue ID: 21158
Summary: DWARF: function arguments are represented in reverse
order
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: trivial
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
program:
---
module bar;
void main()
{
foo(2, "hi");
}
void foo(int i, string s)
{
}
---
DMD:
---
(gdb) b _Dmain
Breakpoint 1 at 0x3f6a4: file src/main.d, line 5.
(gdb) r
Starting program: main
Breakpoint 1, D main () at src/main.d:5
5 foo(2, "hi");
(gdb) s
bar.foo(int, immutable(char)[]) (s=..., i=2) at src/main.d:11
11 }
---
LDC:
---
(gdb) b _Dmain
Breakpoint 1 at 0x744: file main.d, line 5.
(gdb) r
Starting program: main
Breakpoint 1, D main () at main.d:5
5 foo(2, "hi");
(gdb) s
bar.foo(int, immutable(char)[]) (i=0, s=...) at main.d:8
8 void foo(int i, string s)
(gdb)
---
DMD says "(s=..., i=2)" instead of "(i=2, s=...)".
--