Re: [PATCH] c++: Pointer-to-member fn conversion with noexcept [PR99374]

2021-03-05 Thread Jason Merrill via Gcc-patches
On 3/4/21 6:19 PM, Marek Polacek wrote: The issue in this PR is that we wrongly reject converting pointers to member function of incomplete types, one of which has noexcept. Recall that pointers (including pointers to member functions) to non-throwing functions can be implicitly converted to pot

[PATCH] c++: Pointer-to-member fn conversion with noexcept [PR99374]

2021-03-04 Thread Marek Polacek via Gcc-patches
The issue in this PR is that we wrongly reject converting pointers to member function of incomplete types, one of which has noexcept. Recall that pointers (including pointers to member functions) to non-throwing functions can be implicitly converted to potentially-throwing functions (but not vice