https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126814
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <[email protected]>: https://gcc.gnu.org/g:836cb4ed48c987a4a9027cb14e6b6e1edeebcaf3 commit r17-3298-g836cb4ed48c987a4a9027cb14e6b6e1edeebcaf3 Author: Andrew MacLeod <[email protected]> Date: Wed Aug 12 17:03:21 2026 -0400 fold_using_range should set the current query. PR tree-optimization/126814 gcc/ * gimple-range-fold.cc (fold_using_range::fold_stmt): Temporarily replace the current range query with the specified one. gcc/testsuite/ * gcc.dg/pr126814.c: New.
