https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50462
--- Comment #7 from Jonathan Wakely ---
Oh, it's the overloaded function thjat makes the difference between saying
"invalid use of non-static member function" and trying to do overload
resolution with an .
Reduced example that actually reproduc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50462
--- Comment #6 from Jonathan Wakely ---
(In reply to Jonathan Wakely from comment #5)
> Since GCC 4.9 we don't perform overload resolution, so I think this is fixed:
Huh, that's true for the reduced example in comment 4, but the original one
fro
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50462
--- Comment #5 from Jonathan Wakely ---
Since GCC 4.9 we don't perform overload resolution, so I think this is fixed:
50462.C: In function 'void print(V)':
50462.C:13:13: error: invalid use of non-static member function 'int V::size()'
13 | {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50462
--- Comment #4 from Jonathan Wakely ---
I think the original example in this bug is the same as PR 77711 comment 2. It
can be reduced to:
struct ostream { };
void operator<<(ostream, int) { }
void operator<<(ostream, void*) { }
void operator<<(
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50462
Jonathan Wakely changed:
What|Removed |Added
See Also||https://gcc.gnu.org/bugzill
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50462
Paolo Carlini changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50462
--- Comment #1 from Manuel López-Ibáñez 2011-09-20
13:59:47 UTC ---
Clang does only marginally better because of its selective typedef unwrapping
and avoiding printing back expressions, but then it goes and prints all
candidates:
/tmp/webcompile