[patch] Cleanup linkage computation for static locals

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Jun 6 14:42:18 PDT 2013


> Hmm.  I think you should use the linkage of the enclosing function
> instead of linkonce_odr;  in particular, if the enclosing function is an
> explicit template instantiation, the static local should have weak_odr
> linkage.

Good catch. I have fixed it and include a testcase.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 1993 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130606/f27b43ce/attachment.obj>


More information about the cfe-commits mailing list