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

--- Comment #2 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:1e0f37df1b12cd91a6dbb523f5c722f9a961edaa

commit r14-2618-g1e0f37df1b12cd91a6dbb523f5c722f9a961edaa
Author: Patrick Palka <ppa...@redhat.com>
Date:   Tue Jul 18 09:21:40 2023 -0400

    c++: constrained surrogate call functions [PR110535]

    We weren't checking constraints on pointer/reference-to-function conversion
    functions during overload resolution, which caused us to ICE on the first
    testcase and reject the second testcase.

            PR c++/110535

    gcc/cp/ChangeLog:

            * call.cc (add_conv_candidate): Check constraints.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/concepts-surrogate1.C: New test.
            * g++.dg/cpp2a/concepts-surrogate2.C: New test.

Reply via email to