[patch] Cleanup linkage computation for static locals

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jun 17 07:18:53 PDT 2013


ping

On 6 June 2013 17:42, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
>> 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




More information about the cfe-commits mailing list