[Bug c++/34235] short variable cast to unsigned int fails to right shift as unsigned
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 10 18:53:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34235
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jan 10 18:53:17 2020
New Revision: 280128
URL: https://gcc.gnu.org/viewcvs?rev=280128&root=gcc&view=rev
Log:
Shorten right-shift again in C++.
Back in SVN r131862 richi removed this code to fix PR 34235, but didn't
remove the parallel code from the C front-end because the bug had previously
been fixed in r44080. This patch copies the code from C again.
* typeck.c (cp_build_binary_op): Restore short_shift code.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
More information about the Gcc-bugs
mailing list