cp:
PR c++/7676
* class.c (add_method): Compare template parms too.
testsuite:
* g++.dg/overload/member2.C: New test.
From-SVN: r58281
+2002-10-18 Nathan Sidwell <nathan@codesourcery.com>
+
+ PR c++/7676
+ * class.c (add_method): Compare template parms too.
+
2002-10-17 Mark Mitchell <mark@codesourcery.com>
* mangle.c (globals): Add entity and need_abi_warning.
&& (TYPE_QUALS (TREE_TYPE (TREE_VALUE (parms1)))
!= TYPE_QUALS (TREE_TYPE (TREE_VALUE (parms2)))))
same = 0;
+
+ /* For templates, the template parms must be identical. */
+ if (TREE_CODE (fn) == TEMPLATE_DECL
+ && !comp_template_parms (DECL_TEMPLATE_PARMS (fn),
+ DECL_TEMPLATE_PARMS (method)))
+ same = 0;
+
if (! DECL_STATIC_FUNCTION_P (fn))
parms1 = TREE_CHAIN (parms1);
if (! DECL_STATIC_FUNCTION_P (method))
+2002-10-18 Nathan Sidwell <nathan@codesourcery.com>
+
+ PR c++/7676
+ * g++.dg/overload/method2.C: New test.
+
2002-10-17 Mark Mitchell <mark@codesourcery.com>
PR c++/7584