[LLVMbugs] [Bug 8055] using declaration not adding template candidates?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 12 00:29:10 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8055

Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2010-09-12 02:29:09 CDT ---
Clang is behaving correctly per C++ [namespace.udecl]p15:

  When a using-declaration brings names from a base class into a derived class
scope, member functions and member function templates in the derived class
override and/or hide member functions and member function templates with the
same name, parameter-type-list (8.3.5), cv-qualification, and ref-qualifier (if
any) in a base class (rather than conflicting).

Note that Foo in the derived class has the same name and parameter-type-list as
Foo in the base class, so the derived Foo hides the base Foo. The template
parameters are not considered.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list