[Bug middle-end/59037] [4.8/4.9 Regression] ICE when accessing invalid element (nelts + 1) of vector

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 7 20:08:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59037

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Matthew Leach from comment #1)
> Having a quick dig around the code, I think fold-const.c:16718 looks
> suspicious:
> 
> if (offset/part_widthi <= TYPE_VECTOR_SUBPARTS (op00type))
> 
> Likewise in cp/semantics.c:9122 and gimple-fold.c:3407.
> 
> Should this "<=" be a "<"?

Looks similar to something I had found suspicious in PR 53101 (comment 5),
though apparently that was in gimplify.c.



More information about the Gcc-bugs mailing list