Bug 38516 - Binary operator ^= doesn't work well for class members
Binary operator ^= doesn't work well for class members
Status: RESOLVED DUPLICATE of bug 11751
Product: gcc
Classification: Unclassified
Component: c++
: P3 major
: ---
Assigned To: Not yet assigned to anyone
Depends on:
  Show dependency treegraph
Reported: 2008-12-13 14:53 UTC by Felipe Calliari Ribas
Modified: 2008-12-13 18:26 UTC (History)
58 users (show)

See Also:
Known to work: 3.3.6
Known to fail:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Felipe Calliari Ribas 2008-12-13 14:53:01 UTC
*** working on gcc version 3.3.6 

A swap operation between two integers doesn't works for class members.

i ^= j ^= i ^= j;

after the operation above, "i" will value 0 (zero), if i and j are class members.
Comment 1 Andreas Schwab 2008-12-13 18:26:07 UTC

*** This bug has been marked as a duplicate of 11751 ***