https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102476
Bug ID: 102476 Summary: d: Options -fmain and -fno-druntime do not work together Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gdcproject dot org Target Milestone: --- The option `-fmain' reads in a __main.di module from D runtime that defines an extern(D) main function. This causes link-time errors when building without D runtime.