[Issue 22751] DMD as a library hang with fatal() on parseModule
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 8 23:40:33 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22751
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@ljmf00 updated dlang/dmd pull request #13625 "frontend: propagate error as
null instead of exit(1)" fixing this issue:
- 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