Created attachment 1308740 [details] preprocessed source # gcc -xc - <<EOF #include <stdio.h> int z[] = {}; int main(int argc, char *argv[]) { printf("%d\n", *(z + 1)); } EOF > <stdin>: In function ‘main’: > <stdin>:3:36: internal compiler error: in size_binop_loc, at fold-const.c:1767 > Please submit a full bug report, > with preprocessed source if appropriate # rpm -q gcc > gcc-7.1.1-6.fc27.x86_64
Confirmed with trunk. Started with r172261. Will take this upstream.
I've committed a fix to GCC mainline, but not sure if I'll backport this to 7.
I think not.