[Bug c++/10970] Pointer-to-member partial specialization is not used through typedefs

bangerth@dealii.org gcc-bugzilla@gcc.gnu.org
Tue May 27 14:59:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10970


bangerth@dealii.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


------- Additional Comments From bangerth@dealii.org  2003-05-27 14:56 -------
I fail to see the problem. In your code
-------------------------------
template <class> struct PtoM {};

template <class U, class V>
struct PtoM<U V::*> {
    enum {value = true};
};

struct A {};
typedef int (A::*MFA)(int);

int i = PtoM<MFA>::value;
-------------------------------
You specialize PtoM for pointer-to-member-VARIABLE, but you instantiate
the class for a pointer-to-member-FUNCTION. Why, then, should it take
the specialization?

W.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list