[LLVMbugs] [Bug 16818] friend from different namespace doesn't work when return type is provided indirectly
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 9 15:54:55 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16818
Eli Friedman <sharparrow1 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution|--- |INVALID
--- Comment #2 from Eli Friedman <sharparrow1 at yahoo.com> ---
This is how the language works: according to the grammar, if "type" refers to a
typedef, "type::" is nested-name-specifier, whether or not the typedef refers
to a class. You can write something like "friend type (::n::f)(A);" instead to
get the meaning you want.
--
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/20130809/067fec23/attachment.html>
More information about the llvm-bugs
mailing list