This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45437] Loses reference during update
- From: "phorgan1 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 23 Mar 2011 07:03:26 +0000
- Subject: [Bug c++/45437] Loses reference during update
- Auto-submitted: auto-generated
- References: <bug-45437-4@http.gcc.gnu.org/bugzilla/>
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]