Bug 22906 – DMD as a library hangs on semantic analysis of non regular D files
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-20T17:07:21Z
Last change time
2022-03-20T20:43:59Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira
Comments
Comment #0 by contact — 2022-03-20T17:07:21Z
Given a Ddoc file, the module.fullSemantic() segfaults on null members list.
---
You can feed the lexer with a file as simple as "Ddoc".
Comment #1 by dlang-bot — 2022-03-20T17:10:19Z
@ljmf00 created dlang/dmd pull request #13847 "Fix issue 22906: DMDLIB hangs on semantic analysis of non regular D files" fixing this issue:
- Fix issue 22906: DMDLIB hangs on semantic analysis of non regular D files
Signed-off-by: Luís Ferreira <[email protected]>
https://github.com/dlang/dmd/pull/13847
Comment #2 by dlang-bot — 2022-03-20T20:43:59Z
dlang/dmd pull request #13847 "Fix issue 22906: DMDLIB hangs on semantic analysis of non regular D files" was merged into master:
- c7b3bf6665c01ae0cc4bf3e463dbbd15d9792bda by Luís Ferreira:
Fix issue 22906: DMDLIB hangs on semantic analysis of non regular D files
Signed-off-by: Luís Ferreira <[email protected]>
https://github.com/dlang/dmd/pull/13847