Bug 38516 - Binary operator ^= doesn't work well for class members
Summary: Binary operator ^= doesn't work well for class members
Status: RESOLVED DUPLICATE of bug 11751
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.2.4
: P3 major
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
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 ***