* 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
Name |
Last commit
|
Last update |
---|---|---|
INSTALL | Loading commit data... | |
config | Loading commit data... | |
etc | Loading commit data... | |
gcc | Loading commit data... | |
include | Loading commit data... | |
libf2c | Loading commit data... | |
libiberty | Loading commit data... | |
libio | Loading commit data... | |
libstdc++ | Loading commit data... | |
texinfo | Loading commit data... | |
xiberty | Loading commit data... | |
.cvsignore | Loading commit data... | |
COPYING | Loading commit data... | |
COPYING.LIB | Loading commit data... | |
ChangeLog | Loading commit data... | |
MAINTAINERS | Loading commit data... | |
Makefile.in | Loading commit data... | |
README | Loading commit data... | |
config-ml.in | Loading commit data... | |
config.guess | Loading commit data... | |
config.sub | Loading commit data... | |
configure | Loading commit data... | |
configure.in | Loading commit data... | |
install-sh | Loading commit data... | |
ltconfig | Loading commit data... | |
ltmain.sh | Loading commit data... | |
missing | Loading commit data... | |
mkinstalldirs | Loading commit data... | |
move-if-change | Loading commit data... | |
mpw-README | Loading commit data... | |
mpw-build.in | Loading commit data... | |
mpw-config.in | Loading commit data... | |
mpw-configure | Loading commit data... | |
mpw-install | Loading commit data... | |
symlink-tree | Loading commit data... | |
ylwrap | Loading commit data... |