[Bug c++/62243] Non-typename template argument behaviour in loop (unsigned int)
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Aug 24 08:28:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62243
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
i <= w if I and w are int then the compare is done in int but if w is unsigned
int, then it is done in unsigned int so (unsigned int)-3 is always greater than
3.
More information about the Gcc-bugs
mailing list