[Bug c++/83993] [7/8 Regression] ICE: constant not recomputed when ADDR_EXPR changed

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 24 14:33:00 GMT 2018


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.


More information about the Gcc-bugs mailing list