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

2018-11-05 Thread David Blaikie via cfe-users
Ah, good point - I didn't think to simplify the template argument list/types too! On Mon, Nov 5, 2018 at 10:18 AM Jan Korous wrote: > I minimized the reproducer. Seems like base class template methods are not > included in derived object method name resolution. > > Knowing whether it violates th

Re: [cfe-users] [clang-format] Trailing return type

2018-11-05 Thread Mateusz Loskot via cfe-users
On Fri, 2 Nov 2018 at 06:11, Owen Pan wrote: > > I think that was a bug fix as the latest clang-format will convert the > "Before" code to "After" even in the absence of the .clang-format > configuration file. Thanks for the hint. I upgraded from 6.0 to 7.0 and it does handle the trailing retur

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

2018-11-05 Thread Jan Korous via cfe-users
I minimized the reproducer. Seems like base class template methods are not included in derived object method name resolution. Knowing whether it violates the standard or not is beyond my knowledge though. type params https://godbolt.org/z/WpET78 nontype params https://godbolt.org/z/PZIaDn Jan

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

2018-11-05 Thread David Blaikie via cfe-users
Yeah, looks like a bug in Clang to me - CC'ing Richard Smith in case this is quick/easy/obvious to him. Here's my slightly modified test case comparing Clang and GCC's behavior, and adding a non-member overload situation to demonstrate that that works on both compilers: https://godbolt.org/z/cTq06R

Re: [cfe-users] dynmaic_cast in uninstantiated function templates

2018-11-05 Thread via cfe-users
Thanks for the clarification. So a solution could be a template make_dependent template struct make_dependent { typedef X type; }; template void fn(A* a, T& x) { dynamic_cast::type>(a); } The standard doesn't supply any similar, does it? Best Olaf -Ursprüngliche Nachricht- Von: M