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
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
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
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
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
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<
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499
Jonathan Wakely changed:
What|Removed |Added
Keywords||diagnostic
Status|UNCONFIR
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67499
Markus Trippelsdorf changed:
What|Removed |Added
CC||trippels at gcc dot gnu.org
--- Co
11 matches
Mail list logo