Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Template parameter numbering


  • To: Daveed Vandevoorde <daveed@xxxxxxx>
  • Subject: Re: Template parameter numbering
  • From: Jason Merrill <jason@xxxxxxxxxx>
  • Date: 31 Aug 2000 00:59:40 -0700

>>>>> Daveed Vandevoorde <daveed@xxxxxxx> 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