]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: PMF template parm and noexcept [PR90664]
authorJason Merrill <jason@redhat.com>
Fri, 2 Apr 2021 21:07:12 +0000 (17:07 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 13 May 2022 17:39:30 +0000 (13:39 -0400)
commit45fb36bf93a7cc6506c2a12f9c4aa3981f4e6b44
tree7d951b4154a6dd7efd8d12341294fdd6f2bf4f04
parentcf475f6e23581b1766e508dba81171de8f81b180
c++: PMF template parm and noexcept [PR90664]

The constexpr code only wants to preserve PTRMEM_CST in conversions if the
conversions are only qualification conversions; dropping noexcept counts as
a qualification adjustment in overload resolution, so let's include it here.

gcc/cp/ChangeLog:

PR c++/90664
* cvt.c (can_convert_qual): Check fnptr_conv_p.

gcc/testsuite/ChangeLog:

PR c++/90664
* g++.dg/cpp1z/noexcept-type24.C: New test.
gcc/cp/cvt.c
gcc/testsuite/g++.dg/cpp1z/noexcept-type24.C [new file with mode: 0644]