This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13517] confusing error message for reference on a constant
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2003 18:02:04 -0000
- Subject: [Bug c++/13517] confusing error message for reference on a constant
- References: <20031230123449.13517.debian-gcc@lists.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From falk at debian dot org 2003-12-30 18:02 -------
String literals are in fact a sspecial case in the C++ standard, since
there is an implicit conversion to (non-const) char*. It is deprecated though,
and g++ should probably warn about it.
Aso for the error message, I can't find it that bad; it says there's no
matching method, and that's exactly what the problem is. I don't think
g++ should list for every candidate why it doesn't match, these error messages
tend to be long enough as they are.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13517