This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
egcs/gcc testsuite/g++.old-deja/g++.ext/pretty ...
- To: gcc-cvs at egcs dot cygnus dot com
- Subject: egcs/gcc testsuite/g++.old-deja/g++.ext/pretty ...
- From: mmitchel at gcc dot gnu dot org
- Date: 23 Nov 1999 02:49:41 -0000
CVSROOT: /cvs/gcc
Module name: egcs
Changes by: mmitchel@sourceware.cygnus.com 99/11/22 18:49:41
Modified files:
gcc/testsuite/g++.old-deja/g++.ext: pretty2.C pretty3.C
gcc/testsuite/g++.old-deja/g++.pt: memtemp77.C
gcc/cp : cp-tree.def cp-tree.h ChangeLog decl.c pt.c
semantics.c error.c
Log message:
* cp-tree.def (FUNCTION_NAME): New tree node.
* cp-tree.h (current_function_name_declared): Tweak documentation.
(lang_decl_flags): Add pretty_function_p, adjust dummy.
(DECL_PRETTY_FUNCTION_P): New macro.
* decl.c (cp_finish_decl): Handle declarations of __FUNCTION__,
etc., in a template function. Use at_function_scope_p instead of
expanding it inline.
* pt.c (tsubst_decl): Handle DECL_PRETTY_FUNCTION_P declarations
specially.
(tsubst): Handle FUNCTION_NAME.
(tsubst_copy): Likewise.
(instantiate_decl): Prevent redeclarations of __PRETTY_FUNCTION__,
etc. in instantiation.
* semantics.c (begin_compound_stmt): Declare __FUNCTION__, etc.,
even in template functions.
(setup_vtbl_ptr): Don't declare __PRETTY_FUNCTION in the
conditional scope at the top of a destructor.
* error.c (dump_function_decl): Use `[ with ... ]' syntax for
specializations too.