https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98282
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:9bb84bd30dcfcdc12f69b148d4dcf8f2e3fe8046 commit r9-9289-g9bb84bd30dcfcdc12f69b148d4dcf8f2e3fe8046 Author: Richard Biener <rguent...@suse.de> Date: Mon Jan 4 11:40:40 2021 +0100 tree-optimization/98282 - classify V_C_E<constant> as nary This avoids running into memory reference code in compute_avail by properly classifying unfolded reference trees on constants. 2021-01-04 Richard Biener <rguent...@suse.de> PR tree-optimization/98282 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on invariants as VN_NARY. * g++.dg/opt/pr98282.C: New testcase. (cherry picked from commit edb7dbc25de455300ce066a2ebe728256ea46e3a)