Link error, do dmd have a switch to emit eagerly templated code in .o ?

deadalnix deadalnix at gmail.com
Sun Mar 10 05:52:40 PDT 2013


Templates code often fail to link because it isn't emitted in .o 
files.

GDC propose a dirty fix to solve this : -femit-templates . 
Templates are emitted as private symbol 100% of the time.

Can the same be done with dmd ? Not being able to link valid code 
is pretty bad IMO, and I'd use any solution, even a one with 
major drawback.


More information about the Digitalmars-d mailing list