D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22906 - DMD as a library hangs on semantic analysis of non regular D files
Summary: DMD as a library hangs on semantic analysis of non regular D files
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2022-03-20 17:07 UTC by Luís Ferreira
Modified: 2022-03-20 20:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Luís Ferreira 2022-03-20 17:07:21 UTC
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 Dlang Bot 2022-03-20 17:10:19 UTC
@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 <contact@lsferreira.net>

https://github.com/dlang/dmd/pull/13847
Comment 2 Dlang Bot 2022-03-20 20:43:59 UTC
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 <contact@lsferreira.net>

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