https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89664
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Mar 12 16:15:47 2019 New Revision: 269618 URL: https://gcc.gnu.org/viewcvs?rev=269618&root=gcc&view=rev Log: 2019-03-12 Richard Biener <rguent...@suse.de> PR tree-optimization/89664 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly free the occurance tree after the early out. * gfortran.dg/pr89664.f90: New testcase. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr89664.f90 Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/tree-ssa-math-opts.c