This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/84526] [8 Regression] ICE in generic_overlap at gcc/gimple-ssa-warn-restrict.c:927 since r257860
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Feb 2018 16:27:02 +0000
- Subject: [Bug tree-optimization/84526] [8 Regression] ICE in generic_overlap at gcc/gimple-ssa-warn-restrict.c:927 since r257860
- Auto-submitted: auto-generated
- References: <bug-84526-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84526
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
The affected bit of code assumes dstref->base is an array and doesn't check to
see if it's something else. In both of these cases it's a VAR_DECL so
TREE_TYPE (TREE_TYPE (dstref->base)) returns null.