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++/39089] -Wconversion is buggy with bitwise operators



------- Comment #2 from gcc at gaul dot org  2009-02-03 18:40 -------
Original description is not quite accurate, the or operator does not cause a
spurious warning while the and operator does.  Here is a more minimal test
case:

void func(char a, char b, char c)
{
    c = a | b;
    c = a & b;
    c = a | 0x20;
    c = a & 0x20;   // warn
}

I do not get the spurious warning in SVN from 20090109.


-- 

gcc at gaul dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc at gaul dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39089


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