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/27233] incorrect xor result on arrays



------- Comment #2 from raphael dot ribas at gmail dot com  2006-04-21 01:01 -------
int main() {
    int a,b;
    a=5;
    b=7;
    a^=b^=a^=b;
    printf("%d %d\n",a,b);
    return 0;
}

than why this one produces expected answer?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27233


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