PR c++/93238 - short right-shift with enum.
authorJason Merrill <jason@redhat.com>
Sun, 12 Jan 2020 20:09:22 +0000 (15:09 -0500)
committerJason Merrill <jason@redhat.com>
Mon, 13 Jan 2020 17:50:12 +0000 (12:50 -0500)
commitf1acad4e43908e90ca2b5155a878639cbea4c4e1
treeb52d55f016950df1910681d29276aefb356f7195
parent33742a0a02581e518ea238e3136d96c7eda12ccc
PR c++/93238 - short right-shift with enum.

My earlier patch to reintroduce short_shift failed to adjust for the C++
front end use of const_op1 rather than op1.

* typeck.c (cp_build_binary_op): Use folded op1 for short_shift.
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.dg/expr/rshift1.C [new file with mode: 0644]