[Bug c++/45437] Loses reference during update

phorgan1 at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 23 08:47:00 GMT 2011


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

Patrick Horgan <phorgan1 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |phorgan1 at gmail dot com

--- Comment #16 from Patrick Horgan <phorgan1 at gmail dot com> 2011-03-23 07:03:09 UTC ---
Confirming that this is still occurring in gcc (GCC) 4.6.0 20110113
(experimental) where this code:

int
main()
{
    bool b1, b2, b3;
    b1 = b2 = b3 = true;
    b1 |= b2 |= b1 |=b3;
}

results in the error message:

testit.cpp:10:24: warning: operation on ‘b1’ may be undefined
[-Wsequence-point]



More information about the Gcc-bugs mailing list