> 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

Attachment: t.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to