https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104825
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:dc46350d44c2949ec38deb028960f8040f8e8e5d commit r12-7531-gdc46350d44c2949ec38deb028960f8040f8e8e5d Author: Richard Biener <rguent...@suse.de> Date: Tue Mar 8 08:42:58 2022 +0100 tree-optimization/104825 - guard modref query The following makes sure to guard the modref query in VN on a pointer typed argument. 2022-03-08 Richard Biener <rguent...@suse.de> PR tree-optimization/104825 * tree-ssa-sccvn.cc (visit_reference_op_call): Properly guard modref get_ao_ref on a pointer typed argument. * gcc.dg/torture/pr104825.c: New testcase.