www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23893] New: DMD linking errors with -betterC

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

          Issue ID: 23893
           Summary: DMD linking errors with -betterC
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: jlourenco5691 gmail.com

This code fails to compile with DMD but compiles with LDC:

```d
interface Foo {} // same with class

extern(C) void main {}
```

--
May 05 2023