<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED LATER - clang++ fails to compile SFINAE member function overloaded with using-imported fallback function from base class"
href="https://bugs.llvm.org/show_bug.cgi?id=40519">bug 40519</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>LATER
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED LATER - clang++ fails to compile SFINAE member function overloaded with using-imported fallback function from base class"
href="https://bugs.llvm.org/show_bug.cgi?id=40519#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED LATER - clang++ fails to compile SFINAE member function overloaded with using-imported fallback function from base class"
href="https://bugs.llvm.org/show_bug.cgi?id=40519">bug 40519</a>
from <span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span></b>
<pre>See <a href="http://eel.is/c++draft/namespace.udecl#15">http://eel.is/c++draft/namespace.udecl#15</a>:
"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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>