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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-11-06
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B it should also work for an array of derived types, via array-to-pointer
decay and then derived-to-base conversion.

#include <type_traits>
struct S { int i ; };
struct D : S { };
static_assert(std::is_invocable_v<int S::*, S(&)[1]>);
static_assert(std::is_invocable_v<int S::*, D(&)[1]>);

Reply via email to