[Bug tree-optimization/97830] [11 Regression] ICE in expressions_equal_p at gcc/tree-ssa-sccvn.c:5631 since r11-4982-g4d6b8d4213376e8a

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 16 09:27:28 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97830

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:aaccdb9cec423ef4de9d541dbe0a95fa3346f430

commit r11-5047-gaaccdb9cec423ef4de9d541dbe0a95fa3346f430
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Nov 16 08:40:47 2020 +0100

    tree-optimization/97830 - fix compare of incomplete type size in VN

    This avoids passing NULL to expressions_equal_p.

    2020-11-16  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/97830
            * tree-ssa-sccvn.c (vn_reference_eq): Check for incomplete
            types before comparing TYPE_SIZE.

            * gcc.dg/pr97830.c: New testcase.


More information about the Gcc-bugs mailing list