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

--- Comment #5 from GCC 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:68cea2d32a9fd525154b6a48042e5835d4c5e371

commit r14-8189-g68cea2d32a9fd525154b6a48042e5835d4c5e371
Author: Patrick Palka <ppa...@redhat.com>
Date:   Wed Jan 17 13:01:01 2024 -0500

    c++: address of class NTTP object as targ [PR113242]

    invalid_tparm_referent_p was rejecting using the address of a class NTTP
    object as a template argument, but this should be fine.

            PR c++/113242
            PR c++/99493

    gcc/cp/ChangeLog:

            * pt.cc (invalid_tparm_referent_p) <case ADDR_EXPR>: Suppress
            DECL_ARTIFICIAL rejection test for class NTTP objects.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/nontype-class61.C: New test.
            * g++.dg/cpp2a/nontype-class62.C: New test.

    Reviewed-by: Jason Merrill <ja...@redhat.com>

Reply via email to