https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125621
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Alex Coplan <[email protected]>: https://gcc.gnu.org/g:f71036431eeeeb115ecb68fd5c57c324561dd550 commit r13-10371-gf71036431eeeeb115ecb68fd5c57c324561dd550 Author: Alex Coplan <[email protected]> Date: Fri Jun 5 16:51:47 2026 +0100 expmed: Fix up CONST_POLY_INT case of make_tree [PR125621] The PR showed us ICEing in build_poly_int_cst because we have type set to a non-type tree node (a var_decl). A closer look shows this is because we pass the wrong variable to wide_int_to_tree in expmed.cc:make_tree: we pass t instead of type, where t is uninitialized at the point of the call. Fixed thusly. I also took the opportunity to move the CONST_POLY_INT case out of the default: section into its own case of the switch. gcc/ChangeLog: PR middle-end/125621 * expmed.cc (make_tree): Fix CONST_POLY_INT case to pass type instead of t, move it to its own switch case. gcc/testsuite/ChangeLog: PR middle-end/125621 * gcc.target/aarch64/torture/pr125621.c: New test. (cherry picked from commit 06193eabd2b787bd3815d99b08b1c8b18ca800ea)
