]> gcc.gnu.org Git - 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>
Thu, 20 May 2021 21:08:30 +0000 (17:08 -0400)
commitb13ac26df5e401ce5914b8ec0c862d56edd57913
tree7d5302040f0ad7cbadacb855fb5c08d106c5c624
parenta12ae580e13f5856983142a0234651d8e8aad599
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]
This page took 0.070634 seconds and 6 git commands to generate.