[Issue 22367] The __ModuleInfo member spuriously linked for modules compiler with -betterC
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Nov 30 08:14:07 UTC 2022
    
    
  
https://issues.dlang.org/show_bug.cgi?id=22367
--- Comment #8 from Walter Bright <bugzilla at digitalmars.com> ---
A module generates a ModuleInfo if at least one of these is true:
1. it imports a module that generates ModuleInfo
2. it has a static constructor
3. it has a static destructor
4. it has a unit test declaration
but is disabled if -betterC is on. This particular bug report is the result of
having a static constructor.
--
    
    
More information about the Digitalmars-d-bugs
mailing list