[cfe-users] problem with `candidate template ignored: invalid explicitly-specified argument'

Richard Smith via cfe-users cfe-users at lists.llvm.org
Wed Nov 7 10:19:07 PST 2018


The rule for determining when a base class function declaration introduced
by a using-declaartion is hidden by a derived class function declaration
does not take the template parameter list into account:
http://eel.is/c++draft/namespace.udecl#15.sentence-1

So clang's behaviour is conforming and gcc's behaviour is not. At the very
least, though, we should issue a warning for the using declaration, because
this is a surprising rule.

On Wed, 7 Nov 2018, 08:28 Werner LEMBERG <wl at gnu.org wrote:

>
> > Sure, that'd be great - http://bugs.llvm.org
>
> Done:
>
>   https://bugs.llvm.org/show_bug.cgi?id=39581
>
>
>     Werner
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20181107/8cda9a1f/attachment.html>


More information about the cfe-users mailing list