[Bug c/77617] Miscompilation n &= 0x1F ? x+n : x;
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 16 11:39:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77617
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |trippels at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
The &= operator has the same precedence as the ternary operator.
So you have to use parentheses in this case.
More information about the Gcc-bugs
mailing list