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

Dlang Bot <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <[email protected]> ---
@Geod24 created dlang/dmd pull request #10722 "Fix issue 20460: Stack traces
involving extern(C++) can show wrong file/line" fixing this issue:

- Fix issue 20460: Stack traces involving extern(C++) can show wrong file/line

  The comment mentions writing the 'function prologue',
  but this seems to be a long-gone heritage (perhaps from DM exceptions?)
  Before this change, some functions would have their 'end' address
  set at the end of the next file's last function,
  which in practice would mean that the last function in the module
  would 'eat' the whole file, and all the stack traces would point
  to the same line.
  This was witnessed with extern(C++) and the _Dmain function.

https://github.com/dlang/dmd/pull/10722

--

Reply via email to