https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110043
Bug ID: 110043
Summary: ice in size_remaining, at pointer-query.cc:875
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
For this C source code:
__int128 g_116_1;
char g_521[][8];
func_24() {
for (; g_116_1 >= 0;)
g_521[g_116_1][g_116_1] &= 0;
}
compiled by recent gcc, does this:
$ ~/gcc/results/bin/gcc -c -w -O1 bug927.c
during GIMPLE pass: waccess
bug927.c: In function ‘func_24’:
bug927.c:3:1: internal compiler error: in size_remaining, at
pointer-query.cc:875
3 | func_24() {
| ^~~~~~~
0xd1823d
access_ref::size_remaining(generic_wide_int<fixed_wide_int_storage<128>
>*) const
../../trunk.year/gcc/pointer-query.cc:875
The bug seems to exist since sometime before 20220515.