[llvm-bugs] [Bug 40519] clang++ fails to compile SFINAE member function overloaded with using-imported fallback function from base class

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 30 12:07:04 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40519

Richard Smith <richard-llvm at metafoo.co.uk> changed:

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

--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
See http://eel.is/c++draft/namespace.udecl#15:

"When a using-declarator brings declarations from a base class into a derived
class, 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, cv-qualification, and ref-qualifier (if any) in
a base class (rather than conflicting). Such hidden or overridden declarations
are excluded from the set of declarations introduced by the using-declarator."

The base class function template is hidden by the derived class one despite
having a different return type and despite the use of a using declaration.

GCC doesn't implement that rule as-written; there's a chance the language will
be changed to do something more like what GCC does, but for now this is a GCC
bug and the other compilers are correct.

-- 
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/20190130/d423b446/attachment.html>


More information about the llvm-bugs mailing list