]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/decl2.c
cp-tree.h (push_template_decl): Return the decl passed in, or an equivalent duplicate.
authorMark Mitchell <mmitchell@usa.net>
Wed, 11 Feb 1998 01:22:36 +0000 (01:22 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 11 Feb 1998 01:22:36 +0000 (20:22 -0500)
commit3ac3d9eaf106c5ad4a50819b0aab0787315e3a1d
tree117db38464a92e2be12737390b4177d68614223c
parent8cd61d76f7865b537d9e4de50419789b31ab73bf
cp-tree.h (push_template_decl): Return the decl passed in, or an equivalent duplicate.

* cp-tree.h (push_template_decl): Return the decl passed in, or an
equivalent duplicate.
* decl.c (pushtag): Use the return value from push_template_decl.
(duplicate_decls): When duplicating a template declaration, merge
the DECL_TEMPLATE_RESULTs as well.
(make_implicit_typename): Don't try to dive into typename types to
find a context for making a new implicit typename.
(start_decl): Use the return value from push_template_decl.
(grokdeclarator): Complain about declarations list `const operator
int'.  Since we don't correctly handle in-class initializations of
non-static data members, complain about this (now illegal)
practice.  Issue an error for initializations of non-const statics
since that is illegal as well, and since we don't handle that case
correctly either.
(start_function): Use the return value from push_template_decl.
(start_method): Likewise.
* decl2.c (grokfield): Likewise.  Since the change to
grokdeclarator ensures that all initialized fields are in fact
static, remove a redundant test for TREE_PUBLIC.
* parse.y (initlist): Disable labeled initializers since they do
not work as per the documentation, and since they do not use the
same syntax as the C front end.
* pt.c (push_template_decl): Return the decl passed in, or an
equivalent duplicate.
(lookup_template_class): When searching in a nested context,
use the right arguments.
(uses_template_parms): Handle the DECL_INITIAL for a CONST_DECL.
* typeck.c (build_component_ref): Assign the correct type to the
result of build_vfn_ref.

From-SVN: r17852
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/parse.c
gcc/cp/parse.y
gcc/cp/pt.c
gcc/cp/typeck.c
This page took 0.062414 seconds and 5 git commands to generate.