https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108390
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:5a1717fbdfd1242a5beb3ac8300766a3534d3f88 commit r13-6813-g5a1717fbdfd1242a5beb3ac8300766a3534d3f88 Author: Jason Merrill <ja...@redhat.com> Date: Wed Mar 22 11:12:57 2023 -0400 c++: array bound partial ordering [PR108390] fold_convert doesn't work with a dependent argument, and problematically differed from the corresponding fold+build_nop further down in the function. So change it to match. PR c++/108390 gcc/cp/ChangeLog: * pt.cc (unify): Use fold of build_nop instead of fold_convert. gcc/testsuite/ChangeLog: * g++.dg/template/partial-order3.C: New test.