https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86231
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Jun 22 21:33:07 2018 New Revision: 261969 URL: https://gcc.gnu.org/viewcvs?rev=261969&root=gcc&view=rev Log: Backported from mainline 2018-06-20 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/86231 * tree-vrp.c (union_ranges): For ( [ ) ] or ( )[ ] range and anti-range don't overwrite *vr0min before using it to compute *vr0max. * gcc.dg/tree-ssa/vrp119.c: New test. * gcc.c-torture/execute/pr86231.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/execute/pr86231.c branches/gcc-7-branch/gcc/testsuite/gcc.dg/tree-ssa/vrp119.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/tree-vrp.c