https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83993
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 43232 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43232&action=edit gcc8-pr83993.patch Untested patch for the 1) part. With this the testcase doesn't ICE anymore, but modified testcase like: extern const int a[]; const int *const b = &a[1]; int foo () { return b[0]; } still ICEs, so 2) needs to be resolved too.