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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-04-09
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The first one is rejected by EDG, clang, GCC and MSVC for similar reasons.


MSVC:
<source>(13): error C2440: 'specialization': cannot convert from 'int Base::* '
to 'int Derived::* '
<source>(13): note: Standard conversion from pointer-to-member of base to
pointer-to-member of derived is not applied for template arguments



But the constexpr version is definitely a GCC bug as it is accepted by all 3
other compilers.

Reply via email to