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++/11492] Unsigned char promoted to signed int in for loop test for gpp but not gcc


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.


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