[Bug c++/12433] Finds wrong overload of std::operator<<
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Sep 28 17:32:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12433
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-28 16:59 -------
You cannot convert a function pointer to a "void" pointer without a cast so this is invalid still.
Basically it comes down to:
int Bar() { return 0; }
void f(void const *);
void f(bool);
int main() {
f(*Bar);
return 0; }
And void f(bool) is the closest match.
More information about the Gcc-bugs
mailing list