[LLVMbugs] [Bug 17337] Rejects friend function due to language linkage
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Sep 24 06:35:37 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17337
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #3)
> (In reply to comment #2)
> > I'm not clear on what you're saying is broken here. We correctly reject both
> > ill-formed cases in comment#0, and clearly explain why they're ill-formed.
>
> [class.friend]p3:
>
> 3 A function first declared in a friend declaration has external linkage
> (_basic.link_). Otherwise, the function retains its previous linkage
> (_dcl.stc_).
Linkage, not language linkage.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130924/04fc9fc6/attachment.html>
More information about the llvm-bugs
mailing list