https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109750
--- Comment #5 from jim.gray at atos dot net ---
I don't know if it makes any difference, but I ran with an older version of the
Intel C++ compiler on Linux, with the results below:
Good output when compiling with the Intel C++ compiler
on Cent
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109750
--- Comment #3 from jim.gray at atos dot net ---
The "correct" answer is also provided by the Intel C++ compiler,
so apparently GCC is the odd one out.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109750
Bug ID: 109750
Summary: Incorrect code generated for shifted bit field
Product: gcc
Version: 9.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: