This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52703] -Wsign-conversion warns for unsigned short promoted to int and assigned to unsigned
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 24 Mar 2012 19:27:54 +0000
- Subject: [Bug c++/52703] -Wsign-conversion warns for unsigned short promoted to int and assigned to unsigned
- Auto-submitted: auto-generated
- References: <bug-52703-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52703
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |manu at gcc dot gnu.org
Resolution| |DUPLICATE
--- Comment #1 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-03-24 19:27:54 UTC ---
Strangely, I cannot reproduce this with g++ 4.7.0, but I can with gcc. In any
case, the warning code does not look into the operands of operators. I did a
patch to do this, and it was rejected. Feel free to take it and improve it and
get it accepted.
*** This bug has been marked as a duplicate of bug 40752 ***