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
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
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
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
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