This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19076] Pointer to member function not matched to pointer to member template
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Dec 2004 18:48:54 -0000
- Subject: [Bug c++/19076] Pointer to member function not matched to pointer to member template
- References: <20041219095715.19076.pcarlini@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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