[Issue 20802] [REG2.088.0] Link failure with writefln

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 18 12:21:24 UTC 2024


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

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

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
@tim-dlang created dlang/dmd pull request #16200 "Fix Bugzilla 20802 - Link
failure with writefln" fixing this issue:

- Fix Bugzilla 20802 - Link failure with writefln

  The issue is caused by compiling druntime/phobos and the application
  with different flags. The template instance for __switch_errorT is not
  included in the build of druntime/phobos, because they are compiled
  with -release. DMD will also not include it in an application compiled
  without -release, because it assumes, that it is already in druntime.
  See comment https://issues.dlang.org/show_bug.cgi?id=20802#c3 by Spoov.

  As a workaround the template instance for __switch_errorT is now always
  instantiated in druntime.

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

--


More information about the Digitalmars-d-bugs mailing list