aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchell@usa.net>1998-02-11 01:22:36 +0000
committerJason Merrill <jason@gcc.gnu.org>1998-02-10 20:22:36 -0500
commit3ac3d9eaf106c5ad4a50819b0aab0787315e3a1d (patch)
tree117db38464a92e2be12737390b4177d68614223c /gcc/cse.c
parent8cd61d76f7865b537d9e4de50419789b31ab73bf (diff)
downloadgcc-3ac3d9eaf106c5ad4a50819b0aab0787315e3a1d.zip
gcc-3ac3d9eaf106c5ad4a50819b0aab0787315e3a1d.tar.gz
gcc-3ac3d9eaf106c5ad4a50819b0aab0787315e3a1d.tar.bz2
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
Diffstat (limited to 'gcc/cse.c')
0 files changed, 0 insertions, 0 deletions