- 07 Feb, 1999 1 commit
-
-
* pt.c (maybe_process_partial_specialization): Complain about specialization in wrong namespace. * tree.c (decl_namespace_context): New fn. g++.pt/explicit73.C * decl2.c (arg_assoc_type): Handle TEMPLATE_TEMPLATE_PARM. * pt.c (coerce_template_template_parms): Handle nested template template parameters. g++.pt/nttp[12].C From-SVN: r25072
Jason Merrill committed
-
- 06 Feb, 1999 1 commit
-
-
From-SVN: r25063
Jeffrey A Law committed
-
- 05 Feb, 1999 3 commits
-
-
* cp-tree.h: Declare it. Missed a piece... From-SVN: r25038
Jason Merrill committed -
* decl2.c: Remove flag_init_priority. Always enable initp stuff. (start_objects, finish_objects): Only use special init_priority code if the user specified a priority. (do_ctors, do_dtors): Use DEFAULT_INIT_PRIORITY for the non-initp objects. From-SVN: r25037
Jason Merrill committed -
* pt.c (unify): Call coerce_template_parms with the COMPLAIN flag turned off. * lex.c (retrofit_lang_decl): Split out... (build_lang_decl): From here. * decl.c (pushdecl): Call it for functions generated by the middle end that don't have DECL_LANG_SPECIFIC. * decl2.c: Remove flag_init_priority. Always enable initp stuff. (start_objects, finish_objects): Only use special init_priority code if the user specified a priority. (do_ctors, do_dtors): Use DEFAULT_INIT_PRIORITY for the non-initp objects. From-SVN: r25036
Jason Merrill committed
-
- 03 Feb, 1999 1 commit
-
-
* Make-lang.in (GXX_OBJS): Remove choose-temp.o, pexecute.o and mkstemp.o. Get them from libiberty now. (DEMANGLER_PROG): Simlarly, temove getopt.o getopt1.o. From-SVN: r25014
Marc Espie committed
-
- 02 Feb, 1999 1 commit
-
-
From-SVN: r24986
Theodore Papadopoulo committed
-
- 01 Feb, 1999 3 commits
-
-
* pt.c (tsubst, case TYPENAME_TYPE): Check TYPE_BEING_DEFINED before calling complete_type_or_else. From-SVN: r24958
Mark Mitchell committed -
From-SVN: r24953
Kaveh Ghazi committed -
From-SVN: r24951
Kaveh R. Ghazi committed
-
- 31 Jan, 1999 2 commits
-
-
a 1999-01-31 17:52 -0500 Zack Weinberg <zack@midnite.ec.rhno.columbia.edu> * flags.h: Declare flag_no_ident. * toplev.c: Define flag_no_ident. Process -f(no-)ident here. * c-decl.c: Don't define flag_no_ident. Don't process -f(no-)ident switches here. * ch/decl.c: Likewise. * cp/decl2.c: Likewise. * c-tree.h: Don't declare flag_no_ident. * ch/ch-tree.h: Likewise. * cp/cp-tree.h: Likewise. * config/elfos.h (ASM_FILE_END): Output final .ident directive only if !flag_no_ident. * config/ptx4.h: Likewise. * config/svr4.h: Likewise. * config/alpha/elf.h: Likewise. * config/arm/linux-elf.h: Likewise. * config/i386/sco5.h: Likewise. * config/i860/fx2800.h: Likewise. * config/mips/gnu.h: Likewise. * config/i386/osfrose.h: Likewise. * gcc.c (C specs): Map -Qn to -fno-ident. * ch/lang-specs.h: Likewise. * cp/lang-specs.h: Likewise. * f/lang-specs.h: Likewise. * objc/lang-specs.h: Likewise. * java/lang-specs.h: Likewise. From-SVN: r24945
Zack Weinberg committed -
1999-01-31 17:52 -0500 Zack Weinberg <zack@midnite.ec.rhno.columbia.edu> * flags.h: Declare flag_no_ident. * toplev.c: Define flag_no_ident. Process -f(no-)ident here. * c-decl.c: Don't define flag_no_ident. Don't process -f(no-)ident switches here. * ch/decl.c: Likewise. * cp/decl2.c: Likewise. * c-tree.h: Don't declare flag_no_ident. * ch/ch-tree.h: Likewise. * cp/cp-tree.h: Likewise. * config/elfos.h (ASM_FILE_END): Output final .ident directive only if !flag_no_ident. * config/ptx4.h: Likewise. * config/svr4.h: Likewise. * config/alpha/elf.h: Likewise. * config/arm/linux-elf.h: Likewise. * config/i386/sco5.h: Likewise. * config/i860/fx2800.h: Likewise. * config/mips/gnu.h: Likewise. * config/i386/osfrose.h: Likewise. * gcc.c (C specs): Map -Qn to -fno-ident. * ch/lang-specs.h: Likewise. * cp/lang-specs.h: Likewise. * f/lang-specs.h: Likewise. * objc/lang-specs.h: Likewise. * java/lang-specs.h: Likewise. From-SVN: r24943
Zack Weinberg committed
-
- 28 Jan, 1999 1 commit
-
-
* cp-tree.h (struct tree_binding): Replace scope field with a union. (BINDING_SCOPE): Adjust. * decl.c (BINDING_LEVEL): Adjust. From-SVN: r24894
Jason Merrill committed
-
- 27 Jan, 1999 1 commit
-
-
details. From-SVN: r24879
Jeffrey A Law committed
-
- 26 Jan, 1999 3 commits
-
-
* pt.c (instantiate_class_template): Set up the DECL_INITIAL of member constants. g++.ns/template6.C * init.c (expand_member_init): Pull out TYPE_MAIN_VARIANT in a ctor initializer. g++.other/typedef6.C From-SVN: r24875
Jason Merrill committed -
* tree.c (equal_functions): Fix name in prototype. * decl.c (push_local_binding): Add FLAGS argument. (pushdecl, push_overloaded_decl): Pass it. * decl2.c (do_local_using_decl): Likewise. * cp-tree.h: Adjust prototype. * decl.c (poplevel): Fix logic. From-SVN: r24869
Jason Merrill committed -
* decl.c (push_local_binding): Also wrap used decls in a TREE_LIST. (poplevel): Handle that. Fix logic for removing TREE_LISTs. (cat_namespace_levels): Don't loop forever. Fixes 733Y14. * typeck.c (build_reinterpret_cast): Fix typo in duplicated test. From-SVN: r24867
Jason Merrill committed
-
- 25 Jan, 1999 2 commits
-
-
* class.c (resolve_address_of_overloaded_function): Mark the chosen function used. * call.c (build_call): Make sure that a function coming in has been marked used already. * decl.c (expand_static_init): Call mark_used instead of assemble_external. * except.c (call_eh_info, do_pop_exception, expand_end_eh_spec, alloc_eh_object, expand_throw): Likewise. * init.c (build_builtin_delete_call): Likewise. * rtti.c (call_void_fn, get_tinfo_fn, build_dynamic_cast_1, expand_si_desc, expand_class_desc, expand_ptr_desc, expand_attr_desc, expand_generic_desc): Likewise. From-SVN: r24862
Jason Merrill committed -
* tree.c (equal_functions): New function. (ovl_member): Call it. From-SVN: r24861
Martin v. Löwis committed
-
- 24 Jan, 1999 3 commits
-
-
From-SVN: r24850
Jason Merrill committed -
1999-01-25 Martin von Loewis <loewis@informatik.hu-berlin.de> * decl.c (decls_match): Return 1 if old and new are identical. (push_overloaded_decl): Set OVL_USED when PUSH_USING. From-SVN: r24849
Martin v. Löwis committed -
* decl.c (start_function): Make member functions one_only on windows. * decl2.c (import_export_decl): Likewise. * decl.c (grokdeclarator): Don't complain about implicit int in a system header. Change same-name field check to not complain in a system header instead of within extern "C". From-SVN: r24839
Jason Merrill committed
-
- 21 Jan, 1999 3 commits
-
-
* cp-tree.h (PUSH_GLOBAL): New macro. (PUSH_LOCAL): Likewise. (PUSH_USING): Likewise. (namespace_bindings_p): Declare. (push_overloaded_decl): Likewise. * decl.c (push_overloaded_decl): Don't make it static. Check for illegal declarations after using declarations here. (namespace_bindings_p): Likewise. (duplicate_decls): Don't consider declarations from different namespaces to be the same. (pushdecl): Use symbolic PUSH_ constants in calls to push_overloaded_decl. (push_overloaded_decl_1): Likewise. * decl2.c (validate_nonmember_using_decl): Tweak `std' handling. (do_nonmember_using_decl): Check for illegal using declarations after ordinary declarations here. (do_local_using_decl): Call pushdecl to insert declarations. From-SVN: r24812
Mark Mitchell committed -
From-SVN: r24807
Jason Merrill committed -
* cp-tree.h (PARM_DECL_EXPR): Delete. (convert_default_arg): Change prototype. (check_default_argument): Declare. (search_tree): Likewise. * call.c (convert_default_arg): Take the function to which the default argument belongs as a parameter, and do any necessary instantiation here, instead of ... (build_over_call): Here. * decl.c (local_variable_p): New function. (check_default_argument): Likewise, split out and tidied from ... (grokparms): Here. * error.c (dump_expr): Don't set PARM_DECL_EXPR. * pt.c (tsubst_call_declarator_parms): New function. (for_each_template_parm): Handle ARRAY_REFs. Do the obvious thing with CALL_EXPRs, rather than trying to be clever. (tsubst): Use tsubst_call_declarator_parms. * tree.c (search_tree): Don't make it static. * typeck.c (convert_arguments): Use new interface to convert_default_arg. From-SVN: r24803
Mark Mitchell committed
-
- 20 Jan, 1999 1 commit
-
-
error.c (dump_function_decl): Don't print the argument types for a function when the verbosity level is negative. * error.c (dump_function_decl): Don't print the argument types for a function when the verbosity level is negative. * call.c (build_over_call): Check format attributes at call-time. * pt.c (tsubst_copy): Fix comment. (unify): Don't allow unification with variable-sized arrays. * semantics.c (finish_stmt_expr): When processing a template make the BIND_EXPR long-lived. From-SVN: r24788
Mark Mitchell committed
-
- 19 Jan, 1999 1 commit
-
-
* decl2.c (finish_vtable_vardecl): Make vtables comdat here. (import_export_vtable): Not here. From-SVN: r24761
Jason Merrill committed
-
- 18 Jan, 1999 3 commits
-
-
* typeck.c (build_component_ref): Wrap an OVERLOAD around a unique non-static member function. * class.c (instantiate_type): Only diagnose illegal address of member function if complaining. * decl.c (lookup_name_real): Remove duplicate code. From-SVN: r24750
Jason Merrill committed -
* tree.c (copy_template_template_parm): Use permanent_obstack. * pt.c (unify): Remove restrictions on deduction of argument of template template parameters. * rtti.c (build_dynamic_cast_1): Resolve OFFSET_REF exprs. * class.c (resolve_address_of_overloaded_function): Show list of all candidates, when none of them match. From-SVN: r24749
Jason Merrill committed -
typeck.c (comp_ptr_ttypes_reinterpret): Per ANSI, tighten up definition of 'casting away const' in reinterpret_cast<>. * typeck.c (comp_ptr_ttypes_reinterpret): Per ANSI, tighten up definition of 'casting away const' in reinterpret_cast<>. * cvt.c: Add include for decl.h, remove extern for static_aggregates which is now provided by decl.h. * Makefile.in (cvt.o): Add dependency for decl.h and missing dependencies for convert.h and flags.h. * decl2.c (do_dtors): Set current location to that of the decl, for sensible diagnostics and debugging. (check_classfn): Issue `incomplete type' error, if class is not defined. * cp-tree.h: Add prototype for bound_pmf_p. From-SVN: r24748
Jason Merrill committed
-
- 16 Jan, 1999 2 commits
-
-
* decl.c (grokdeclarator): Don't make 'main(){}' an error with only -Wreturn-type. Co-Authored-By: Manfred Hollstein <manfred@s-direktnet.de> From-SVN: r24704
Jason Merrill committed -
* cp-tree.h (struct lang_type): Added has_mutable flag. (CLASSTYPE_HAS_MUTABLE): New macro to access it. (TYPE_HAS_MUTABLE_P): New macro to read it. (cp_has_mutable_p): Prototype for new function. * class.c (finish_struct_1): Set has_mutable from members. * decl.c (cp_finish_decl): Clear decl's TREE_READONLY flag, if it contains a mutable. * typeck.c (cp_has_mutable_p): New function. Fixes g++.other/mutable1.C From-SVN: r24701
Nathan Sidwell committed
-
- 15 Jan, 1999 1 commit
-
-
* pt.c (process_template_parm): Ignore top-level qualifiers on non-type parameters. * decl.c (start_function): Use current_function_parms in the call to require_complete_type_for_parms, not the probably empty DECL_ARGUMENTS. From-SVN: r24684
Mark Mitchell committed
-
- 14 Jan, 1999 1 commit
-
-
* semantics.c (finish_asm_stmt): Don't warn about redundant volatile. PR 18132 * decl2.c (import_export_class): MULTIPLE_SYMBOL_SPACES only means that we don't suppress the other copies. * lex.c (handle_cp_pragma): Likewise. PR 18627 From-SVN: r24662
Jason Merrill committed
-
- 13 Jan, 1999 1 commit
-
-
* decl.c (grokdeclarator): Undo 1998-12-14 change. * tree.c (build_cplus_array_type_1): Likewise. * pt.c (instantiate_class_template): Remove misleading comment. (tsubst_aggr_type): Substitute if there are template parameters, regardless of whether or not they use template arguments. (unify): Likewise, but for unification. From-SVN: r24656
Mark Mitchell committed
-
- 12 Jan, 1999 1 commit
-
-
From-SVN: r24634
Richard Henderson committed
-
- 11 Jan, 1999 1 commit
-
-
From-SVN: r24614
Jeff Law committed
-
- 06 Jan, 1999 3 commits
-
-
* cp-tree.h (IDENTIFIER_TYPENAME_P): Use OPERATOR_TYPENAME_FORMAT here. (lang_type): Add is_partial_instantiation. Decrease width of dummy. (PARTIAL_INSTANTIATION_P): New macro. (OPERATOR_TYPENAME_P): Remove. * decl.c (unary_op_p): Use IDENTIFIER_TYPENAME_P, not OPERATOR_TYPENAME_P. (grok_op_properties): Likewise. * friend.c (do_friend): Handle friends that are member functions correctly. * lex.c (init_parse): Use OPERATOR_TYPENAME_FORMAT. * pt.c (instantiate_class_template): Rework for clarity. Avoid leaving TYPE_BEING_DEFINED set in obscure cases. Don't do any more partial instantiation than is absolutely necessary for implicit typename. Set PARTIAL_INSTANTIATION_P. (tsubst_decl): Use IDENTIFIER_TYPENAME_P. * semantics.c (begin_class_definition): Handle partial specializations of a type that was previously partially instantiated. From-SVN: r24548
Mark Mitchell committed -
From-SVN: r24537
Jeff Law committed -
* g++spec.c (LIBSTDCXX): Provide default definition. (lang_specific_driver): Use LIBSTDCXX instead of "-lstdc++". From-SVN: r24509
Mark Elbrecht committed
-