[Bug c++/13517] confusing error message for reference on a constant

2003-12-31 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-01 02:47 --- This is a dup of bug 2112. *** This bug has been marked as a duplicate of 2112 *** -- What|Removed |Added ---

[Bug c++/13517] confusing error message for reference on a constant

2003-12-30 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-30 19:22 --- The conversion between strings and char* is another for another PR which is already filed as PR 8586. -- What|Removed |Added ---

[Bug c++/13517] confusing error message for reference on a constant

2003-12-30 Thread falk at debian 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

[Bug c++/13517] confusing error message for reference on a constant

2003-12-30 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-30 17:17 --- It is not a special case in the C++ standard at all, the problem is that you are trying to a constant and make it a reference which is wrong. Yes the error message is confussing, I thought I saw a bug l