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++/45437] Loses reference during update


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]


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