[LLVMbugs] [Bug 17950] Friend template class not found outside of namespace
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Nov 15 17:36:58 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=17950
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
7.3.1.2/3:
"If the name in a friend declaration is neither qualified nor a template-id and
the declaration is a function or an elaborated-type-specifier, the lookup to
determine whether the entity has been previously declared shall not consider
any scopes outside the innermost enclosing namespace."
Therefore a (not-yet-declared) 'template<typename V> class B::Class1;' is
befriended, not the global Class1.
=> This is a GCC bug, not a Clang bug.
--
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/20131116/4e42312d/attachment.html>
More information about the llvm-bugs
mailing list