https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105597
Bug ID: 105597
Summary: ice in type, at value-range.h:223
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 52972
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52972&action=edit
C source code
For the attached C code, recent gcc trunk with flag -O2 does this:
during GIMPLE pass: vrp
mgpswindows.c: In function 'mgps_initpsdevice':
mgpswindows.c:48:5: internal compiler error: in type, at value-range.h:223
48 | int mgps_initpsdevice()
| ^~~~~~~~~~~~~~~~~
0x1c9b178 irange::type() const
../../trunk.git/gcc/value-range.h:223
0x1c9b178 operator_minus::lhs_op1_relation(irange const&, irange const&, irange
const&, tree_code) const
/home/dcb/gcc/working/gcc/../../trunk.git/gcc/range-op.cc:1349
I will have my usual go at reducing the code and finding a range of git
hashes where the problem starts.