[LLVMbugs] [Bug 12737] Compile time error inheriting member function template
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 4 10:10:49 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12737
Douglas Gregor <dgregor at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2012-05-04 12:10:49 CDT ---
Clang is behaving correctly here. C++ [namespace.udecl]p15 says that only the
name, parameter-type-list, cv-qualification, and ref-qualifier are used to
determine whether we're hiding or not. In particular, the return type is *not*
considered, so Clang is correct to make the 'get' in the current instantiation
of other_variant hide the 'get' that comes from the base class. GCC should not
accept this code, either.
--
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