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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:38304846d18d6bb14b0fd6c627c5c6d43a814d01

commit r13-4728-g38304846d18d6bb14b0fd6c627c5c6d43a814d01
Author: Patrick Palka <ppa...@redhat.com>
Date:   Thu Dec 15 15:38:47 2022 -0500

    c++: partial ordering with memfn ptr cst [PR108104]

    Here we're triggering an overzealous assert in unify during partial
    ordering since the member function pointer constants are represented as
    ordinary CONSTRUCTORs (with TYPE_PTRMEMFUNC_P TREE_TYPE) but the assert
    expects COMPOUND_LITERAL_P constructors.

            PR c++/108104

    gcc/cp/ChangeLog:

            * pt.cc (unify) <default>: Relax assert to accept any
            CONSTRUCTOR parm, not just COMPOUND_LITERAL_P one.

    gcc/testsuite/ChangeLog:

            * g++.dg/template/ptrmem33.C: New test.

Reply via email to