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

2005-02-21 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-02-21 23:50 --- Fixed for 4.0. -- What|Removed |Added Status|NEW |RESOLVED

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

2005-02-21 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-21 23:12 --- Subject: Bug 19076 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-02-21 23:12:28 Modified files: gcc/cp : ChangeLog cp-tree.h decl.c decl2.c er

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

2005-01-26 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-26 10:25 --- New patch here: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01627.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19076

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

2005-01-20 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2005-01-21 01:05 --- Ah well, I guess this patch is not enough for this: --- struct A { void func(void); }; template void foo(T A::* ); void bar(void) { foo(&A::func); } -

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

2005-01-20 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2005-01-21 01:02 --- Uhm, I wrote a very similar patch in the past only to find out it was not enough. There is something I cannot understand... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19076

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

2005-01-20 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-20 18:02 --- Patch here: . -- What|Removed |Added

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

2004-12-25 Thread giovannibajo at libero dot it
--- 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 a

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

2004-12-20 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2004-12-20 15:15 --- This last testcase indeed still shows the problem. It doesn't compile with gcc, but does with icc. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19076

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

2004-12-20 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2004-12-20 13:40 --- Hi Giovanni. Indeed, I don't think typedefs are directly involved and probably we can further simplify like this: === struct A {}; template struct B; template struct B

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

2004-12-20 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2004-12-20 13:25 --- Does this require the member function to be *declared* through the typedef? Otherwise I think it looks easier to understand where the bug is if the testcase uses a normal declaration for the member function

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

2004-12-20 Thread reichelt at gcc dot gnu dot org
--- Additional Comments From reichelt at gcc dot gnu dot org 2004-12-20 12:29 --- Here's an even simpler testcase: typedef int F(); struct A { F f; }; template struct B; template struct B {}; B b; =

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

2004-12-19 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2004-12-19 22:19 --- I should have been more clear: the problem is with matching a pointer- to-member-function with a pointer-to-member template. W. -- What|Removed |Added --

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

2004-12-19 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2004-12-19 20:01 --- Why not the minimal testcase: - template struct X; template struct X<_Tp _Cp::*> {}; typedef int F(); struct S { F f; }; typedef F S::*PMF; X s; --

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

2004-12-19 Thread pinskia at gcc dot gnu dot org
--- 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 struct is_member_pointer { void f(){_Tp1 t = 100;}}; template struct is_member_pointer<_Tp _Cp