[Bug c++/67499] c++ template/overload diagnostic compression

2021-08-23 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 --- Comment #11 from Manuel López-Ibáñez --- And Clang output: :5:13: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream') and 'foo') std::cout << bar; ~ ^ ~~~ /opt/compiler-explorer/gcc-snapshot/lib/gc

[Bug c++/67499] c++ template/overload diagnostic compression

2021-08-23 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 --- Comment #10 from Manuel López-Ibáñez --- This is the current GCC output: ``` : In function 'int main()': :5:13: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream'} and 'foo') 5 | std::cout << b

[Bug c++/67499] c++ template/overload diagnostic compression

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2015-09-08 00:00:00 |2021-8-22 --- Comment #9 from Andrew Pin

[Bug c++/67499] c++ template/overload diagnostic compression

2015-09-09 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 --- Comment #8 from Manuel López-Ibáñez --- > If we were outputting html, it would be much easier, we could print the > error message and have javascript so that clicking in appropriate places > displays the candidates, the reason for substitutio

[Bug c++/67499] c++ template/overload diagnostic compression

2015-09-09 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 --- Comment #7 from Manuel López-Ibáñez --- (In reply to Marc Glisse from comment #6) > In the example above, you dropped the > information that it is 'bar' (the second argument) that cannot be converted, > which, for a function with more argumen

[Bug c++/67499] c++ template/overload diagnostic compression

2015-09-09 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 --- Comment #6 from Marc Glisse --- (In reply to Manuel López-Ibáñez from comment #5) > /usr/include/c++/4.8/ostream:548:5: note: template > std::basic_ostream& std::operator<<(std::basic_ostream _Traits>&, const unsigned char*) > operator<

[Bug c++/67499] c++ template/overload diagnostic compression

2015-09-08 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Commen

[Bug c++/67499] c++ template/overload diagnostic compression

2015-09-08 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 --- Comment #4 from Markus Trippelsdorf --- Well, clang isn't much better by default: markus@x4 tmp % clang++ -stdlib=libc++ -c foo.cxx 2>&1 | wc -l 97 markus@x4 tmp % clang++ -c foo.cxx 2>&1 | wc -l 88

[Bug c++/67499] c++ template/overload diagnostic compression

2015-09-08 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 --- Comment #3 from David Malcolm --- (we were chatting on IRC, I suggested Frank file this) It might be worth looking at Clang for inspiration; see e.g.: http://clang.llvm.org/diagnostics.html ("Template Type Diffing") though that's not quit

[Bug c++/67499] c++ template/overload diagnostic compression

2015-09-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIR

[Bug c++/67499] c++ template/overload diagnostic compression

2015-09-08 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499 Markus Trippelsdorf changed: What|Removed |Added CC||trippels at gcc dot gnu.org --- Co