This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16070] Bad error message
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jun 2004 19:33:39 -0000
- Subject: [Bug c++/16070] Bad error message
- References: <20040618234408.16070.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-06-19 19:33 -------
Actually, the error message explains in very clear and plain terms
what is going on: std::endl is an overloaded function, so when you
want to pass its address to something else, you have to pick on
of these. This isn't possible based on the conversion to type
'int'. The compiler knows that the template can't match, so it
has to match against the only other candidate available.
In my view, this error message is close to perfect. If someone feels
similarly, feel free to close this bug.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16070