This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11492] Unsigned char promoted to signed int in for loop test for gpp but not gcc
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2003 20:41:18 -0000
- Subject: [Bug c++/11492] Unsigned char promoted to signed int in for loop test for gpp but not gcc
- References: <20030710192814.11492.afonso@contronics.com.br>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11492
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From bangerth at dealii dot org 2003-07-10 20:41 -------
"1000" is a signed integer constant, so b*1000 is a signed integer too. I
guess the warning is ok, then.
Now, with 3.2.2 and present mainline, I get the warning for both g++ and gcc,
but they want different options: for g++, you need -Wall, for gcc you need
-W. That's odd, but already fixed in mainline where g++ warns with both
-W and -Wall.
W.