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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-13 14:53 UTC by Felipe Calliari Ribas
Modified: 2008-12-13 18:26 UTC (History)
58 users (show)

See Also:
Host:
Target:
Build:
Known to work: 3.3.6
Known to fail:
Last reconfirmed:


Attachments

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 ***