class.c (add_method): Fix documentation to reflect previous changes.
authorMark Mitchell <mark@markmitchell.com>
Fri, 16 Oct 1998 12:08:01 +0000 (12:08 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 16 Oct 1998 12:08:01 +0000 (12:08 +0000)
commit6b4b3deb4e4f5f7c8a5aab44b6907d006d78ac96
treef1a18018ffc89c6255fe56cb63476779d58a8272
parent4c37d704290d58c6788acee45877199d6e7b0bb5
class.c (add_method): Fix documentation to reflect previous changes.

* class.c (add_method): Fix documentation to reflect previous
changes.  Check for duplicate method declarations here.
* decl.c (decls_match): Handle FUNCTION_DECL vs TEMPLATE_DECL
correctly; such things never match.
(grokfndecl): Don't look for duplicate methods here.
* decl2.c (check_classfn): Don't assume names are mangled.
Don't add bogus member function declarations to a class before the
class type is complete.
(grokfield): Reformat error message.
* method.c (set_mangled_name_for_decl): Don't mangle names while
procesing_template_decl.

From-SVN: r23132
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/method.c
gcc/testsuite/g++.old-deja/g++.benjamin/warn02.C
gcc/testsuite/g++.old-deja/g++.pt/memtemp78.C [new file with mode: 0644]