[Bug c++/38522] g++ -Wconversion warnings
oleg dot smolsky at riverbed dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 3 19:41:00 GMT 2009
------- Comment #3 from oleg dot smolsky at riverbed dot com 2009-03-03 19:40 -------
I've just built gcc from the official SVN and it looks like this bug is not
fully fixed. The following code generates a warning when compiled with
-Wconversion:
#include <cstdlib>
#define M1 0xC0u
#define M2 0x20u
unsigned char test(unsigned char a1, unsigned char a2)
{
unsigned char local = (a1 & M1) | (a2 & M2); // warn
return local;
}
Could someone re-open the bug please?
--
oleg dot smolsky at riverbed dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gcc at gaul dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38522
More information about the Gcc-bugs
mailing list