This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22107] Type checking seems to break with string operator=
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2005 21:29:37 -0000
- Subject: [Bug c++/22107] Type checking seems to break with string operator=
- References: <20050617201123.22107.weage98@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-17 21:29 -------
(In reply to comment #2)
> Aparently the compiler is doing automatic type conversion from long to char;
> however, it does not warn about this with the following options enabled: -Wall
> -pedantic -W -Wconversion
Yes which is what the C++ standard requires.
> Is there a warning option that I am missing here? Has this warning been
> included in newer releases?
The warning is filed under PR 18821, I had forgot to mention that.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22107