This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52703] -Wsign-conversion warns for unsigned short promoted to int and assigned to unsigned


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 ***


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]