[Issue 22427] betterC: casting an array causes linker error in string comparison.
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed May 25 01:26:39 UTC 2022
    
    
  
https://issues.dlang.org/show_bug.cgi?id=22427
--- Comment #4 from dave287091 at gmail.com ---
The -allinst/--allinst flag will resolve the link error, but that is a
counter-intuitive requirement as there is no explicit template in the program -
just one injected by the compiler. The fact that array equality is implemented
as a template is an implementation detail and shouldn’t require the user to
work around it.
It’s also weird that the cast somehow changes whether the template is emitted.
--
    
    
More information about the Digitalmars-d-bugs
mailing list