Template parameter numbering

Jason Merrill jason at redhat.com
Thu Aug 31 07:59:40 UTC 2000


>>>>> Daveed Vandevoorde <daveed at edg.com> writes:

 >> Daveed:  you commented once that your export template scheme required
 >> some mangling adjustments.  Is that an issue for what we have
 >> specified?

 > I don't anticipate it to conflict with what is there now, though we are
 > still working on this.  

 > The basic problem is that an exported template specialization can refer to 
 > entities  with internal linkage coming from different translation units.  
 > That means that one of these entities will need to be promoted to have 
 > external linkage, and a mangling trick will need to ensure that there are 
 > no collisions.

You could just use a weak alias to promote them.  That way, collisions will
be resolved arbitrarily by the linker.

Jason




More information about the cxx-abi-dev mailing list