www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22751] New: DMD as a library hang with fatal() on parseModule

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

          Issue ID: 22751
           Summary: DMD as a library hang with fatal() on parseModule
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: contact lsferreira.net

If Module.parseModule() is used on a file with, e.g. invalid BOM sequence, the
function instead of returning an invalidated AST node, it hangs the program
with exit code 1.

--
Feb 08 2022