[Bug c++/19076] Pointer to member function not matched to pointer to member template

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Sat Dec 25 18:48:00 GMT 2004


------- Additional Comments From giovannibajo at libero dot it  2004-12-25 18:48 -------
I played with this briefly, and the bug is non-trivial.

Our internal representation for pointer-to-member-data and pointer-to-member-
function is totally different and incompatible, and pt.c isn't ready at all to 
convert so freely from one to another. I think we need to patch at least unify 
(to handle deduction of ptmf through dependent ptmd), tsubst (to perform the 
actual substitution), and convert_nontype_argument (to handle constants ptmf in 
the form &A::f passed to template functions).

I doubt any patch for this would qualify for 4.0. Nathan said he has a secret 
plan for 4.1, so maybe he can share it with us since it's christmas :)

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu dot
                   |                            |org


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



More information about the Gcc-bugs mailing list