[cfe-commits] [patch] Fix assert with explicit template specialization instantiation declarations followed by their definitions if the non-specialized template isn't defined

Enea Zaffanella zaffanella at cs.unipr.it
Fri Dec 16 16:16:22 PST 2011


Il 17/12/2011 00:57, Nico Weber ha scritto:
> Hi,
> 
> the attached patch fixes http://llvm.org/pr11558
> 
> Ok?
> 
> Nico

I am not sure that setting a valid POI is really wanted when the
explicit instantiation comes after an explicit specialization.
Since the template is specialized, it is not instantiated.
Hence, the late explicit instantiation(s) should have no effect.
If this is correct, then the patch attached here is maybe worth a try
(it passes all tests and seems to fix pr11558).

Enea.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug11558.patch
Type: text/x-patch
Size: 917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111217/b328842b/attachment.bin>


More information about the cfe-commits mailing list