www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21487] New: ModuleInfo not found when compiling with -lib and

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

          Issue ID: 21487
           Summary: ModuleInfo not found when compiling with -lib and
                    -betterC
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: betterC, rejects-valid
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: maxsamukha gmail.com

object.d:
---
module object;

// struct ModuleInfo; // (1)

unittest {
}
---

dmd -lib -betterC -unittest object.d

Error: ModuleInfo not found. object.d may be incorrectly installed or corrupt


ModuleInfo should not be required. Uncomment (1) to work around.

--
Dec 18 2020