aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
AgeCommit message (Collapse)AuthorFilesLines
1998-12-30* gcc.c-torture/compile/981223-1.c: New test.Zack Weinberg2-0/+12
From-SVN: r24447
1998-12-29bcp-1.c (bad10): Rename from opt3.Richard Henderson2-6/+23
* gcc.c-torture/execute/bcp-1.c (bad10): Rename from opt3. (opt3): Rename from opt4 and disable. From-SVN: r24437
1998-12-23fix placement of the errorsBrendan Kehoe2-5/+5
From-SVN: r24412
1998-12-22cp-tree.h (TYPE_RAISES_EXCEPTIONS): Improve documentation.Mark Mitchell1-0/+3
1998-12-22 Mark Mitchell <mark@markmitchell.com> * cp-tree.h (TYPE_RAISES_EXCEPTIONS): Improve documentation. * tree.c (build_exception_variant): Don't crash on empty throw specs. From-SVN: r24394
1998-12-21require diagnostic even without -pedanticAlexandre Oliva1-2/+4
From-SVN: r24389
1998-12-20* g++.old-deja/g++.pt/ptrmem5.C: New test.Alexandre Oliva2-0/+21
From-SVN: r24385
1998-12-16class.c (resolve_address_of_overloaded_function): Do conversion to correct ↵Mark Mitchell1-0/+19
type here, rather than ... * class.c (resolve_address_of_overloaded_function): Do conversion to correct type here, rather than ... (instantiate_type): Here. * cp-tree.h (DECL_TEMPLATE_PARM_P): New macro. (DECL_TEMPLATE_TEMPLATE_PARM_P): Use it. (decl_template_parm_p): Remove. * decl.c (pushdecl): Don't set DECL_CONTEXT for a template paramter. * lex.c (do_identifier): Use DECL_TEMPLATE_PARM_P. (push_inline_template_parms_recursive): Set it. (decl_template_parm_p): Remove. (check_template_shadow): Use DECL_TEMPLATE_PARM_P. (process_template_parm): Set it. From-SVN: r24344
1998-12-15* g++.old-deja/g++.other/conv5.C: New test.Alexandre Oliva2-0/+10
From-SVN: r24320
1998-12-14class.c (pushclass): Tweak handling of class-level bindings.Mark Mitchell8-5/+120
* class.c (pushclass): Tweak handling of class-level bindings. (resolve_address_of_overloaded_function): Update pointer-to-member handling. (instantiate_type): Likewise. * cvt.c (cp_convert_to_pointer): Likewise. * decl.c (pop_binding): Take the DECL to pop, not just the name. Deal with `struct stat' hack. (binding_level): Add to documentation. (push_binding): Clear BINDING_TYPE. (add_binding): New function. (push_local_binding): Use it. (push_class_binding): Likewise. (poplevel): Adjust calls to pop_binding. (poplevel_class): Likewise. (pushdecl): Adjust handling of TYPE_DECLs; add bindings for hidden declarations to current binding level. (push_class_level_binding): Likewise. (push_overloaded_decl): Adjust handling of OVERLOADs in local bindings. (lookup_namespace_name): Don't crash when confronted with a TEMPLATE_DECL. (lookup_name_real): Do `struct stat' hack in local binding contexts. (build_ptrmemfunc_type): Adjust documentation. (grokdeclarator): Don't avoid building real array types when processing templates unless really necessary. (finish_method): Adjust calls to pop_binding. * decl2.c (reparse_absdcl_as_expr): Recursively call ourselves, not reparse_decl_as_expr. (build_expr_from_tree): Deal with a template-id as the function to call in a METHOD_CALL_EXPR. * pt.c (convert_nontype_argument): Tweak pointer-to-member handling. (maybe_adjust_types_For_deduction): Don't do peculiar things with METHOD_TYPEs here. (resolve_overloaded_unification): Handle COMPONENT_REFs. Build pointer-to-member types where necessary. * tree.c (build_cplus_array_type_1): Don't avoid building real array types when processing templates unless really necessary. (build_exception_variant): Compare the exception lists correctly. From-SVN: r24314
1998-12-14Update testMark Mitchell1-1/+1
From-SVN: r24312
1998-12-14Fix typo.Nick Clifton2-3/+28
From-SVN: r24308
1998-12-13newJason Merrill1-0/+12
From-SVN: r24302
1998-12-13cp-tree.def (CPLUS_BINDING): Update documentation.Mark Mitchell8-7/+151
* cp-tree.def (CPLUS_BINDING): Update documentation. * cp-tree.h (LOCAL_BINDING_P): New macro. (lang_identifier): Rename local_value to bindings. (tree_binding): Make `scope' of type `void*', not `tree'. (BINDING_SCOPE): Update documentation. (IDENTIFIER_LOCAL_VALUE): Remove. (IDENTIFIER_CLASS_VALUE): Document. (IDENTIFIER_BINDING): New macro. (IDENTIFIER_VALUE): Likewise. (TIME_IDENTIFIER_TIME): Likewise. (TIME_IDENTIFIER_FILEINFO): Likewise. (IMPLICIT_TYPENAME_P): Likewise. (set_identifier_local_value): Remove. (push_local_binding): New function. (push_class_binding): Likewise. * class.c (pushclass): Update comments; use push_class_binding. * decl.c (set_identifier_local_value_with_scope): Remove. (set_identifier_local_value): Likewise. (push_binding): New function. (pop_binding): Likewise. (binding_level): Update documentation. Remove shadowed. (BINDING_LEVEL): New macro. (free_binding_nodes): New variable. (poplevel): Adjust for new name-lookup scheme. Don't mess up BLOCK_VARs when doing for-scope extension. Remove effectively dead code. (pushlevel_class): Tweak formatting. (poplevel_class): Adjust for new name-lookup scheme. (print_binding_level): Likewise. (store_bindings): Likewise. (pushdecl): Likewise. (pushdecl_class_level): Likewise. (push_class_level_binding): Likewise. (push_overloaded_decl): Update comments. Adjust for new name-lookup scheme. (lookup_name_real): Likewise. (lookup_name_current_level): Likewise. (cp_finish_decl): Likewise. (require_complete_types_for_parms): Likewise. Remove misleading #if 0'd code. (grok_parms): Likewise. Don't call require_complete_types_for_parms here. (grok_ctor_properties): Don't treat templates as copy constructors. (grop_op_properties): Or as assignment operators. (start_function): Document. Adjust for new name-lookup scheme. (finish_function): Likewise. * decl2.c (do_local_using_decl): Use push_local_binding. * lex.c (begin_definition_of_inclass_inline): New function, split out from ... (do_pending_inlines): Here, and ... (process_next_inline): Here. (get_time_identifier): Use TIME_IDENTIFIER_* macros. (init_filename_times): Likewise. (extract_interface_info): Likewise. (ste_typedecl_interface_info): Likewise. (check_newline): Likewise. (dump_time_statistics): Likewise. (handle_cp_pragma): Likewise. (do_identifier): Adjust for new name-lookup scheme. * parse.y (function_try_block): Return ctor_initializer_opt value. (fndef): Use it. (fn.defpen): Pass appropriate values to start_function. (pending_inline): Use functor_try_block value, and pass appropriate values to finish_function. * pt.c (is_member_template): Update documentation; remove handling of FUNCTION_DECLs. As per name, this function should deal only in TEMPLATE_DECLs. (decl_template_parm_p): Change name of olddecl parameter to decl. (check_template_shadow): Adjust for new name-lookup scheme. (lookup_template_class): Likewise. (tsubst_decl): Tweak so as not to confuse member templates with copy constructors and assignment operators. (unify): Handle UNION_TYPEs. * ptree.c (print_lang_identifier): Adjust for new name-lookup scheme. (lang_print_xnode): Adjust for new name-lookup scheme. * typeck.c (mark_addressable): Likewise. (c_expand_return): Likewise. From-SVN: r24296
1998-12-11* g++.old-deja/g++.benjamin/p12475.C: Expect failure on mips64 targets.Jeffrey A Law2-1/+5
From-SVN: r24264
1998-12-10* gcc.c-torture/compile/981211-1.c: New test.Zack Weinberg2-0/+47
From-SVN: r24256
1998-12-10decl.c (start_enum): Use push_obstacks, not end_temporary_allocation.Mark Mitchell1-0/+19
* decl.c (start_enum): Use push_obstacks, not end_temporary_allocation. (finish_enum): Call pop_obstacks. From-SVN: r24244
1998-12-10class.c (instantiate_type): Return error_mark_node rather than junk.Mark Mitchell1-1/+1
* class.c (instantiate_type): Return error_mark_node rather than junk. From-SVN: r24240
1998-12-10revertJason Merrill1-1/+1
From-SVN: r24232
1998-12-09cp-tree.h (most_specialized_instantiation): New function.Mark Mitchell3-0/+59
* cp-tree.h (most_specialized_instantiation): New function. (print_candidates): Likewise. * class.c (validate_lhs): Remove. (resolve_address_of_overloaded_function): New function, split out and then substantially reworked, from ... (instantiate_type): Use it. Simplify. * cvt.c (convert_to_reference): Complain when caller has indicated that's the right thing to do. Don't crash if instantiate_type fails. * pt.c: Substitute `parameters' for `paramters' throughout. (print_candidates): Don't make it static. (most_specialized_instantiation): Split out from ... (most_specialized): Here. From-SVN: r24225
1998-12-09update old-dejagnu proc to accompany jasons 12/7 change to ↵Brendan Kehoe1-7/+4
g++.old-deja/old-deja.exp From-SVN: r24222
1998-12-09decl.c (grokdeclarator): Update the name of the TEMPLATE_DECL...Mark Mitchell1-0/+24
* decl.c (grokdeclarator): Update the name of the TEMPLATE_DECL, as well as the TYPE_DECL, when a typedef name is assigned to a previously anonymous type. From-SVN: r24218
1998-12-09* gcc.dg/ultrasp1.c: empty dg-options, avoid `long long' warningsAlexandre Oliva2-0/+3
From-SVN: r24201
1998-12-09* g++.old-deja/g++.pt/instantiate6.C: linker error, not crashAlexandre Oliva2-1/+5
From-SVN: r24200
1998-12-08930510-1.c: Make C9X safe.Franz Sirl4-5/+11
* gcc.special/930510-1.c: Make C9X safe. * gcc.misc-tests/gcov-1.c Similarly. * gcc.misc-tests/gcov-2.c Similarly. From-SVN: r24198
1998-12-07updateJason Merrill12-214/+24
From-SVN: r24151
1998-12-06* gcc.dg/ultrasp1.c: New test.Alexandre Oliva2-0/+12
From-SVN: r24127
1998-12-05updateJason Merrill1-25/+1
From-SVN: r24120
1998-12-05fix size_tJason Merrill2-2/+2
From-SVN: r24119
1998-12-05New test.Richard Henderson2-0/+21
From-SVN: r24118
1998-12-05* g++.old-deja/g++.ns/template7.C: New test.Alexandre Oliva2-0/+15
From-SVN: r24115
1998-12-05* g++.old-deja/g++.other/expr1.C: New test.Alexandre Oliva2-0/+15
From-SVN: r24114
1998-12-05* g++.old-deja/g++.eh/tmpl3.C: New test.Alexandre Oliva2-0/+13
From-SVN: r24113
1998-12-05* g++.old-deja/g++.eh/tmpl2.C: New test.Alexandre Oliva2-0/+37
From-SVN: r24112
1998-12-04Benjamin Kosnik17-0/+442
nortel regressions since 97r1 From-SVN: r24097
1998-12-04Benjamin Kosnik2-0/+41
nortel regressions since 97r1 From-SVN: r24096
1998-12-04*** empty log message ***Benjamin Kosnik1-0/+36
From-SVN: r24095
1998-12-04HBenjamin Kosnik2-0/+27
nortel regressions since 97r1 From-SVN: r24094
1998-12-04Benjamin Kosnik2-0/+53
nortel regressions since 97r1 From-SVN: r24093
1998-12-04using5.C: usified using[567].C hereAlexandre Oliva3-14/+7
* g++.old-deja/g++.other/using5.C: usified using[567].C here * g++.old-deja/g++.other/using6.C: removed * g++.old-deja/g++.other/using7.C: Mark Mitchel removed it From-SVN: r24091
1998-12-04* g++.old-deja/g++.pt/spec20.C: Re-insert non-bogus ERROR marks.Alexandre Oliva2-3/+10
From-SVN: r24089
1998-12-03class.c (handle_using_decl): Fix comment.Mark Mitchell4-21/+1
* class.c (handle_using_decl): Fix comment. Don't lookup constructors in base classes. (validate_lhs): Fix typo in comment. * search.c (lookup_field_1): Don't return a USING_DECL. * cp-tree.h (DECL_ACCESS): Improve documentation. * decl.c (expand_static_init): Don't set the initialization-done flag until the initialization is done. From-SVN: r24076
1998-12-03* g++.old-deja/g++.pt/overload8.C: New test.Alexandre Oliva2-0/+14
From-SVN: r24072
1998-12-03* g++.old-deja/g++.pt/overload7.C: New test.Alexandre Oliva2-0/+22
From-SVN: r24071
1998-12-03* g++.old-deja/g++.pt/spec20.C: ERROR marks were bogusAlexandre Oliva2-2/+6
From-SVN: r24070
1998-12-03old-dejagnu.exp (old-dejagnu): ignore collect recompiling and relinking messagesAlexandre Oliva3-0/+14
* lib/old-dejagnu.exp (old-dejagnu): ignore collect recompiling and relinking messages * lib/g++.exp (g++_target_compile): remove .rpo file when compiling with -frepo From-SVN: r24069
1998-12-02decl2.c (validate_nonmember_using_decl): Complain about using declarations ↵Mark Mitchell1-0/+9
for class members. * decl2.c (validate_nonmember_using_decl): Complain about using declarations for class members. From-SVN: r24060
1998-12-01Add new test based on PR 18365Nick Clifton3-0/+57
From-SVN: r24025
1998-12-01* g++.old-deja/g++.pt/lookup6.C: New test.Alexandre Oliva2-0/+19
From-SVN: r24024
1998-11-29Fix cvs?Jeff Law1-1/+229
Fix cvs? lossage. Somehow the previous checkin scrogged this file. The lossage caused the snapshot diff + patch sanity check to fail due to a bogus .diff file. From-SVN: r24004
1998-11-29fixJason Merrill2-2/+2
From-SVN: r23983