This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/66439] Diagnostic on failed function template lookup is missing a line


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66439

--- Comment #1 from Phil Miller <unmobile at gmail dot com> ---
Note that clang (from at least 3.5, possibly earlier) gets this right:

> $ clang++-3.5 -c  adltest.cpp 
> adltest.cpp:11:3: error: no matching function for call to 'f'
>   C::f<3>(b); //ill-formed; argument dependent lookup
>   ^~~~~~~
> adltest.cpp:6:26: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'T'
>   template<class T> void f(T t);
>                          ^


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]