c++: array bound partial ordering [PR108390]
authorJason Merrill <jason@redhat.com>
Wed, 22 Mar 2023 15:12:57 +0000 (11:12 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 22 Mar 2023 19:29:59 +0000 (15:29 -0400)
commit5a1717fbdfd1242a5beb3ac8300766a3534d3f88
treefc4cba2400a29a036578e930925d1ced3aed4bd5
parent3e791f45ded89626bc1f9f8013728f6e035801b2
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.
gcc/cp/pt.cc
gcc/testsuite/g++.dg/template/partial-order3.C [new file with mode: 0644]