[Issue 22751] DMD as a library crashes with fatal() on parseModule

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 17 23:46:10 UTC 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13625 "frontend: propagate error as null instead of
exit(1)" was merged into master:

- ffd3994fd3ee9c8cf7e78236fb4c224525000f34 by Luís Ferreira:
  frontend: propagate error as null instead of exit(1)

  This patch propagates null when Module AST node can't be constructed
correctly
  instead of doing fatal(), which terminates the program. This is useful if
users
  use DMD frontend as a library. This patch also increases coverage on the
  affected lines.

  Fixes issue 22751.

  Signed-off-by: Luís Ferreira <contact at lsferreira.net>

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

--


More information about the Digitalmars-d-bugs mailing list