digitalmars.D.bugs - [Issue 21158] New: DWARF: function arguments are represented in
- d-bugmail puremagic.com (52/52) Aug 13 2020 https://issues.dlang.org/show_bug.cgi?id=21158
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: nobody puremagic.com Reporter: lucien.perregaux gmail.com 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=...)". --
Aug 13 2020