https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105481

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:ab7c0a44ca9e913af654ae82963565d61d8bb39f

commit r12-9443-gab7c0a44ca9e913af654ae82963565d61d8bb39f
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Mar 23 18:20:52 2023 -0400

    c++: default template arg, partial ordering [PR105481]

    The default argument code in type_unification_real was assuming that all
    targs we've deduced by that point are non-dependent, but that's not the
case
    for partial ordering.

            PR c++/105481

    gcc/cp/ChangeLog:

            * pt.cc (type_unification_real): Adjust for partial ordering.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/fntmpdefarg-partial1.C: New test.

Reply via email to