[Bug c++/19076] Pointer to member function not matched
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Dec 19 13:40:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-19 13:40 -------
Confirmed.
Here is a compile time test instead of a runtime test (it is easier to keep track of):
template<typename _Tp1>
struct is_member_pointer { void f(){_Tp1 t = 100;}};
template<typename _Tp, typename _Cp>
struct is_member_pointer<_Tp _Cp::*> {void f(){}};
struct S {void f(void);};
typedef void (S::*PMF)(void);
int main()
{
is_member_pointer<PMF> i;
i.f();
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid, rejects-
| |valid, wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2004-12-19 13:40:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19076
More information about the Gcc-bugs
mailing list