https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93255
Bug ID: 93255
Summary: internal compiler error: in sign_mask, at
wide-int.h:855
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: raj.khem at gmail dot com
Target Milestone: ---
Attached testcase crashes gcc
mips-yoe-linux-g++ a.cpp -S
a.cpp: In function 'bool isEmpty()':
a.cpp:10:36: internal compiler error: in sign_mask, at wide-int.h:855
10 | return (fFields.fLengthAndFlags>>kLengthShift) == 0;
| ^~~~~~~~~~~~
a.cpp
=====
enum {
kLengthShift=5,
};
struct {
short int fLengthAndFlags;
} fFields;
bool isEmpty() {
return (fFields.fLengthAndFlags>>kLengthShift) == 0;