[PATCH] PR17337 - Retain previous linkage of friend function declarations
Richard Smith
richard at metafoo.co.uk
Tue Sep 24 06:43:07 PDT 2013
On Tue, Sep 24, 2013 at 3:00 AM, Alp Toker <alp at nuanti.com> wrote:
> The previous language linkage needs to be retained as described in
> [class.friend]p3 otherwise valid friend redeclarations differing only in
> lexical linkage are rejected.
>
[class.friend]p3 says the previous linkage (internal/external/no linkage)
is retained, not the previous language linkage. Our current behavior
appears to be correct here.
> Fixes PR17337.
>
> --
> http://www.nuanti.com
> the browser experts
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130924/527a559e/attachment.html>
More information about the cfe-commits
mailing list