1 2008-02-19 Jason Merrill <jason@redhat.com>
4 * pt.c (resolve_overloaded_unification): Set processing_template_decl
5 while we look for possible bindings.
7 2008-02-13 Jason Merrill <jason@redhat.com>
10 * pt.c (value_dependent_expression_p): Look into DECL_INITIAL
13 2008-01-28 Jason Merrill <jason@redhat.com>
16 * class.c (build_base_path): Fix !want_pointer case.
18 2008-01-27 Jason Merrill <jason@redhat.com>
21 * class.c (build_base_path): Fix previous change.
24 * class.c (build_base_path): Don't mess with virtual access if
26 * call.c (standard_conversion): Don't check whether source type
30 * pt.c (tsubst_aggr_type): Make sure our context is complete.
32 2007-10-26 Jakub Jelinek <jakub@redhat.com>
35 * parser.c (cp_parser_parenthesized_expression_list): Set
36 greater_than_is_operator_p to true in between the parens.
38 2007-08-31 Paolo Carlini <pcarlini@suse.de>
41 * search.c (lookup_member): Check the name argument for
44 2007-08-24 Jakub Jelinek <jakub@redhat.com>
47 * error.c (resolve_virtual_fun_from_obj_type_ref): Handle
48 TARGET_VTABLE_USES_DESCRIPTORS targets properly.
50 2007-08-20 Jakub Jelinek <jakub@redhat.com>
53 * typeck.c (check_return_expr): Don't NRV optimize vars in
55 * decl.c (finish_function): Comment fix.
57 2007-08-18 Paolo Carlini <pcarlini@suse.de>
60 * error.c (dump_decl): Deal with UNBOUND_CLASS_TEMPLATE.
61 * cxx-pretty-print.c (pp_cxx_unqualified_id): Likewise.
63 2007-08-10 Paolo Carlini <pcarlini@suse.de>
66 * error.c (dump_expr): Consistently use the *_cxx_*
67 variants of the pretty-print functions.
69 2007-06-20 Dirk Mueller <dmueller@suse.de>
73 Backport from mainline:
74 2007-05-31 Jakub Jelinek <jakub@redhat.com>
76 * decl.c (cp_finish_decl): Also clear was_readonly if a static var
77 needs runtime initialization.
79 2007-05-30 Jakub Jelinek <jakub@redhat.com>
81 * decl.c (cp_finish_decl): Clear TREE_READONLY flag on TREE_STATIC
82 variables that need runtime initialization.
84 2007-04-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
87 * decl.c (reshape_init_r): Don't reshape the first element if it
88 is a pointer to member function.
90 2007-04-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
93 * typeck.c (build_reinterpret_cast_1): Only allow conversion to
94 integeral types from vectors types.
96 2007-04-17 Simon Martin <simartin@users.sourceforge.net>
99 * pt.c (value_dependent_expression_p): Handle MODOP_EXPRs.
101 2007-04-14 Andrew Pinski <pinskia@gmail.com>
104 * optimize.c (update_cloned_parm): Copy DECL_COMPLEX_GIMPLE_REG_P also.
106 2007-04-13 Jason Merrill <jason@redhat.com>
109 * call.c (reference_binding): Add c_cast_p parm. If true,
110 add quals to TO as needed to make it reference-compatible.
112 2007-04-09 Mark Mitchell <mark@codesourcery.com>
115 * class.c (build_base_path): Ensure that the converted pointer has
116 the same cv-qualification as the input.
118 2007-04-03 Jakub Jelinek <jakub@redhat.com>
121 * typeck.c (build_modify_expr): For COND_EXPR on LHS, if RHS has void
122 type issue error and return early.
124 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
127 * semantics.c (finish_offsetof): Handle COMPOUND_EXPR.
129 2007-03-05 Simon Martin <simartin@users.sourceforge.net>
132 * tree.c (cp_tree_equal): Properly handle COMPLEX_CST trees.
134 2007-02-19 Mark Mitchell <mark@codesourcery.com>
136 * call.c (build_new_method_call): Ensure that explicit calls of
137 destructors have type "void".
139 2007-02-19 Mark Mitchell <mark@codesourcery.com>
141 * decl2.c (import_export_decl): Reverse sense of
142 DECL_VISIBILITY_SPECIFIED test for target-specific visibility
146 2006-07-20 Jason Merrill <jason@redhat.com>
147 * decl2.c (determine_visibility_from_class): Reverse sense of
148 DECL_VISIBILITY_SPECIFIED test for target-specific visibility
151 2007-02-14 Jakub Jelinek <jakub@redhat.com>
154 * decl.c (grokdeclarator): If __thread is used together with
155 a storage class other than extern and static, clear thread_p
156 after issuing diagnostics and fall through to checking the
159 2007-02-13 Release Manager
161 * GCC 4.1.2 released.
163 2007-02-06 Mark Mitchell <mark@codesourcery.com>
166 * decl.c (finish_function): Use DECL_REPLACEABLE.
167 * tree.c (cp_cannot_inline_tree_fn): Likewise.
169 2007-01-28 Andrew Pinski <pinskia@gmail.com>
172 * semantics.c (finish_pseudo_destructor_expr): Check the
173 destrutor name by calling check_dtor_name.
175 2007-01-10 Mark Mitchell <mark@codesourcery.com>
178 * decl.c (make_typename_type): If the qualified name is not a
179 type, issue an error.
181 2007-01-05 Jakub Jelinek <jakub@redhat.com>
184 Backported from mainline
185 2006-06-29 Jason Merrill <jason@redhat.com>
186 * parser.c (cp_parser_enum_specifier): Return early if
187 type is error_mark_node.
189 2007-01-03 Jakub Jelinek <jakub@redhat.com>
191 Backported from mainline
192 2006-07-12 Jason Merrill <jason@redhat.com>
194 * semantics.c (note_decl_for_pch): Don't premangle templates.
196 2007-01-03 Jakub Jelinek <jakub@redhat.com>
199 * decl.c (revert_static_member_fn): Don't remove first
200 argument without checking it is "this".
203 Backported from mainline
204 2006-10-17 Mark Mitchell <mark@codesourcery.com>
206 * parser.c (cp_lexer_next_token_is_decl_specifier_keyword): New
208 (cp_parser_constructor_declarator_p): Use it.
209 (cp_parser_check_type_definition): Return a value indicating
210 whether or not the definition is valid.
211 (cp_parser_enum_specifier): Skip invalid enum definitions.
213 2006-12-10 Mark Mitchell <mark@codesourcery.com>
216 * cp-tree.h (DECL_USE_TEMPLATE): Mention partial specializations.
217 (explicit_class_specialization_p): Declare.
218 * pt.c (explicit_class_specialization_p): New function.
219 * parser.c (cp_parser_init_declarator): Check correct number of
220 template parameters for in-class function definitions.
221 (cp_parser_check_declarator_template_parameters): Stop looking for
222 template classes when we find an explicit specialization.
224 2006-12-06 Mark Mitchell <mark@codesourcery.com>
227 * parser.c (cp_parser_init_declarator): Reject initialization of
230 2006-12-05 Mark Mitchell <mark@codesourcery.com>
233 * decl2.c (check_member_template): Move check for member
234 templates in local classes to ...
235 * parser.c (cp_parser_template_declaration_after_export):
238 2006-12-05 Mark Mitchell <mark@codesourcery.com>
241 * decl.c (check_array_designated_initializer): New function.
242 (maybe_deduce_size_from_array_init): Use it.
243 (reshape_init_array): Likewise.
245 2006-12-05 Richard Henderson <rth@redhat.com>
246 Andrew Pinski <pinskia@gmail.com>
249 * error.c (cp_printer) <'D'>: Handle DECL_DEBUG_EXPR.
251 2006-12-04 Mark Mitchell <mark@codesourcery.com>
254 * call.c (add_builtin_candidate): Do not permit NULL pointer
255 constants to be compared with template parameters.
258 * pt.c (tsubst_decl): Disallow variables of function type.
260 2006-12-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
263 2006-08-27 Simon Martin <simartin@users.sourceforge.net>
266 * pt.c (fold_non_dependent_expr): Make sure expr is not dereferenced if it
269 2006-12-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
272 * typeck.c (type_after_usual_arithmetic_conversions):
273 Fix assertion for vector types.
274 (build_binary_op): Use temporary for inner type of vector types.
276 2006-11-29 Lee Millward <lee.millward@codesourcery.com>
279 * parser.c (cp_parser_class_head): Move processing
280 of any base classes to...
281 (cp_parser_class_specifier) ...here. Take an extra
282 tree* parameter for any base classes. Only process
283 them if the opening brace was found.
285 2006-11-28 Jakub Jelinek <jakub@redhat.com>
288 * decl.c (grokfndecl): Check main's type after applying
289 attributes, not before.
291 2006-11-26 Mark Mitchell <mark@codesourcery.com>
294 * parser.c (cp_parser): Add in_function_body.
295 (cp_parser_new): Initialize it.
296 (cp_parser_primary_expression): Use parser->in_function_body
297 instead of at_function_scope_p.
298 (cp_parser_asm_definition): Likewise.
299 (cp_parser_direct_declarator): Likewise.
300 (cp_parser_class_specifier): Clear parser->in_function_body.
301 (cp_parser_constructor_declarator_p): Use parser->in_function_body
302 instead of at_function_scope_p.
303 (cp_parser_function_body_after_declarator): Set
304 parser->in_function_body.
306 2006-11-21 Jakub Jelinek <jakub@redhat.com>
309 * decl.c (cp_finish_decl): Check for value dependent brace enclosed
313 * cp-tree.h (WANT_VECTOR): Define.
314 (WANT_ARITH): Add WANT_VECTOR.
315 * cvt.c (build_expr_type_conversion): Handle vector types.
316 * typeck.c (build_unary_op): Add WANT_VECTOR to
317 build_expr_type_conversion flags.
319 2006-11-13 Mark Mitchell <mark@codesourcery.com>
322 * init.c (constant_value_1): Treat a DECL_INITIAL of
323 error_mark_node as meaning that the variable is uninitialized,
324 rather than erroneously initialized.
327 * pt.c (coerce_template_parms): Do not skip_evaluation while
328 substituting template arguments.
330 2006-10-22 Nathan Sidwell <nathan@codesourcery.com>
333 * rtti.c (tinfo_base_init): The type info string is always global.
335 2006-10-18 Mark Shinwell <shinwell@codesourcery.com>
338 * typeck2.c (digest_init): Raise error upon attempts to
339 initialize arrays with variables.
341 2006-10-18 Richard Guenther <rguenther@suse.de>
344 Backport from mainline:
345 2006-08-25 Nathan Sidwell <nathan@codesourcery.com>
348 * decl.c (make_typename_type): Only try and resolve it when
349 context is not dependent. Refactor.
350 * decl2.c (check_classfn): Push to class scope before looking for
353 2006-10-17 Richard Guenther <rguenther@suse.de>
355 Backport from mainline:
356 2006-09-07 Andrew Pinski <pinskia@physics.uc.edu>
359 * init.c (build_new_1): Build a distinct type copy
360 for the array type that was returned from
361 build_cplus_array_type.
363 2006-10-16 Mark Mitchell <mark@codesourcery.com>
366 * typeck.c (cxx_sizeof_or_alignof_type): Complete non-dependent
367 types when their sizes are required. Refine test for VLAs.
369 2006-10-16 Mark Mitchell <mark@codesourcery.com>
372 * parser.c (cp_parser_using_declaration): Stop parsing when
373 something goes wrong with an access declaration.
375 2006-10-14 Richard Guenther <rguenther@suse.de>
377 PR rtl-optimization/29323
378 * decl.c (finish_function): Set TREE_NOTHROW only for
379 functions that bind local.
381 2006-10-13 Mark Mitchell <mark@codesourcery.com>
384 * parser.c (function_declarator_p): New function.
385 (cp_parser_init_declarator): Use it.
386 (cp_parser_member_declaration): Likewise.
388 2006-10-12 Mark Mitchell <mark@codesourcery.com>
391 * rtti.c (get_tinfo_decl): Refuse to create type info objects for
392 variably modified types.
394 2006-10-12 Mark Mitchell <mark@codesourcery.com>
397 * decl.c (check_initializer): Issue errors about trying to
398 initialize arrays whose elements have variable size.
400 2006-10-07 Andrew Pinski <pinskia@physics.uc.edu>
403 * init.c (build_zero_init): If we have an error mark node for
404 the array size, return.
406 2006-10-06 Andrew Pinski <pinskia@physics.uc.edu>
409 * typeck.c (build_unary_op <case BIT_NOT_EXPR:>): Don't call
410 perform_integral_promotions for non integral type
412 2006-10-06 Andrew Pinski <pinskia@physics.uc.edu>
415 * cp/init.c (build_zero_init): Handle VECTOR_TYPE and
418 2006-10-05 Andrew Pinski <pinskia@physics.uc.edu>
421 * call.c (build_x_va_arg): Remove the reference type
422 from the type before creating the pointer type.
424 2006-10-03 Mark Mitchell <mark@codesourcery.com>
427 * decl2.c (grokfield): Don't handle access declarations here.
428 * parser.c (cp_parser_using_declaration): Handle access
430 (cp_parser_block_declaration): Adjust calls to
431 cp_parser_using_declaration.
432 (cp_parser_member_declaration): Likewise. Use
433 cp_parser_using_declaration to look for access_declarations.
435 2006-10-02 Mark Mitchell <mark@codesourcery.com>
438 * typeck.c (cxx_sizeof_or_alignof_type): Tidy. In templates, do
439 not try to actually evaluate sizeof for a VLA type.
441 2006-10-01 Mark Mitchell <mark@codesourcery.com>
444 * parser.c (cp_parser_postfix_dot_deref_expression): Use
445 BASELINK_ACCESS_BINFO as the qualifying scope when calling
446 adjust_result_of_qualified_name_lookup.
448 2006-09-22 Jason Merrill <jason@redhat.com>
451 * cvt.c (convert_to_void): Strip COMPONENT_REF to functions.
453 2006-09-21 Steven Bosscher <steven@gcc.gnu.org>
456 Backport from mainline:
457 * parser.c (cp_parser_labeled_statement): Return nothing. Do
458 not take in_statement_expr and in_compound as arguments. Rename
459 to cp_parser_label_for_labeled_statement. Parse only the label,
461 (cp_parser_statement): Parse the statement of a labeled-statement
462 from here, using tail recursion.
464 2006-09-07 Jason Merrill <jason@redhat.com>
467 * method.c (use_thunk): Clear DECL_HAS_VALUE_EXPR_P on copied
470 2006-09-06 Mark Mitchell <mark@codesourcery.com>
473 * pt.c (unify): Avoid unnecessary calls to fold_build2 for array
476 2006-09-06 Zak Kipling <zak@transversal.com>
479 * decl.c (make_rtl_for_nonlocal_decl),
480 (start_preparsed_function): Don't use lbasename on
481 input_filename when calling get_fileinfo.
482 * semantics.c (begin_class_definition): Likewise.
483 * lex.c (cxx_make_type): Likewise.
484 (handle_pragma_interface): Call get_fileinfo on input_filename,
485 not on the parameter to the directive.
487 2006-09-06 Jason Merrill <jason@redhat.com>
490 * cvt.c (convert_to_void): Replace a subexpression with no side
491 effects with void_zero_node.
492 * tree.c (is_overloaded_fn): Look through COMPONENT_REF.
493 (get_first_fn): Ditto.
494 * decl.c (grokdeclarator): No need to look through COMPONENT_REF.
496 2006-09-05 Jason Merrill <jason@redhat.com>
499 * parser.c (cp_parser_diagnose_invalid_type_name): Handle the case
500 where the name is a type used incorrectly.
503 * typeck.c (maybe_warn_about_returning_address_of_local): Look
504 through COMPONENT_REF and ARRAY_REF.
507 * name-lookup.c (do_class_using_decl): Try to find the base even
508 if bases_dependent_p.
509 * pt.c (type_dependent_expression_p): A USING_DECL is dependent.
512 * pt.c (tsubst_friend_function): Set DECL_INITIAL before pushdecl.
514 2006-09-02 Jakub Jelinek <jakub@redhat.com>
517 * except.c (build_throw): Only set current_function_returns_abnormally
521 * repo.c (repo_file): Remove.
522 (open_repo_file, reopen_repo_file_for_write): Return fopened
523 FILE * instead of setting global repo_file variable.
524 (init_repo): Adjust caller.
525 (finish_repo): Likewise. Return instead of goto out before
526 reopen_repo_file_for_write has been called.
528 2006-08-30 Jason Merrill <jason@redhat.com>
531 * class.c (check_field_decls): Don't unset TYPE_PACKED until all
532 the fields have been processed.
535 * class.c (check_field_decls): Unset TYPE_PACKED (t) if one of the
536 fields can't be packed.
538 2006-08-28 Jason Merrill <jason@redhat.com>
541 * cvt.c (convert_to_void): Don't automatically load from volatiles
542 of TREE_ADDRESSABLE type.
544 2006-08-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
547 * cp-tree.h (maybe_process_partial_specialization): Return
548 tree instead of void.
549 * parser.c (cp_parser_class_head): Use return value of
550 maybe_process_partial_specialization.
551 * pt.c (maybe_process_partial_specialization): Return error_mark_node
552 for broken specializations, TYPE otherwise. Check for template
555 2006-08-27 Mark Mitchell <mark@codesourcery.com>
558 * pt.c (register_specialization): Return error_mark_node for
559 specialization-after-instantiation.
560 * decl2.c (mark_used): Mark the main function used when one of its
563 2006-08-26 Mark Mitchell <mark@codesourcery.com>
566 * pt.c (tsubst): Issue errors about attempts to create VLAs at
567 template-instantiation time.
569 2006-08-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
572 * typeck2.c (cxx_incomplete_type_diagnostic): Handle template
573 template parameters. Improve error message for template type
576 2006-08-25 Mark Mitchell <mark@codesourcery.com>
579 * decl.c (grokdeclarator): Disallow declarations with qualified
580 names in local scopes.
582 2006-08-23 Jason Merrill <jason@redhat.com>
585 * pt.c (push_template_decl_real): A friend template with class
588 2006-08-22 Jason Merrill <jason@redhat.com>
591 * call.c (build_over_call): Don't make a copy here if build_call
594 2006-08-20 Mark Mitchell <mark@codesourcery.com>
597 * pt.c (tsubst_qualified_id): Do not strip references from
600 2006-08-17 Jason Merrill <jason@redhat.com>
603 * pt.c (tsubst) [TEMPLATE_TYPE_PARM]: Ignore quals from template
604 if arg is a function.
606 2006-08-17 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
609 * parser.c (cp_parser_diagnose_invalid_type_name): Handle BIT_NOT_EXPR.
611 (cp_parser_parse_and_diagnose_invalid_type_name): Tighten condition
612 for valid type-names.
613 (cp_parser_unqualified_id): Fix error handling for destructors.
616 * decl.c (xref_tag): Improve error message. Return early on error.
618 2006-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
621 * init.c (build_new): Return early on invalid placement.
623 2006-08-13 Jakub Jelinek <jakub@redhat.com>
627 * cp-tree.h (cxx_int_tree_map): New struct.
628 (struct language_function): Add extern_decl_map field.
629 * name-lookup.c (pushdecl_maybe_friend): Add x -> t mapping
630 to cp_function_chain->extern_decl_map hash table instead of
631 copying over DECL_UID.
632 * cp-gimplify.c (cxx_int_tree_map_eq, cxx_int_tree_map_hash): New
634 (cp_genericize_r): Remap DECL_EXTERN local decls using
635 cp_function_chain->extern_decl_map hash table.
636 * decl.c (finish_function): Clear extern_decl_map.
638 2006-08-10 Lee Millward <lee.millward@codesourcery.com>
648 2006-07-28 Lee Millward <lee.millward@codesourcery.com>
652 * pt.c (process_template_parm) Store invalid template
653 parameters as error_mark_node in the paramater list.
654 (push_inline_template_parms_recursive): Handle invalid
656 (comp_template_parms): Likewise.
657 (check_default_tmpl_args): Likewise.
658 (coerce_template_template_parms): Likewise.
659 (coerce_template_parms): Likewise.
660 (mangle_class_name_for_template): Likewise.
661 (tsubst_template_parms): Likewise.
662 * error.c (dump_template_argument_list): Likewise.
664 2006-08-07 Lee Millward <lee.millward@codesourcery.com>
666 * pt.c (coerce_template_parms): Fix misplaced parenthesis.
668 2006-08-03 Lee Millward <lee.millward@codesourcery.com>
671 * decl.c (start_decl): Return error_mark_node if a
672 diagnostic was issed for an invalid typedef initialization
674 2006-08-03 Steve Ellcey <sje@cup.hp.com>
677 * decl2.c (check_classfn): Remove early return.
678 * search.c (lookup_member): Return NULL with bad type.
680 2006-08-03 Steve Ellcey <sje@cup.hp.com>
683 * decl.c (check_initializer): Check for 1 initializer on scalar types.
685 2006-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
688 * parser.c (cp_parser_unqualified_id): Check for invalid scopes
689 when parsing destructor names.
692 * decl.c (duplicate_decls): Call check_default_args here.
693 (start_preparsed_function): Do not call check_default_args.
694 * name-lookup.c (pushdecl_maybe_friend): Only call
695 check_default_args if duplicate_decls got bypassed.
697 2006-08-02 Mark Mitchell <mark@codesourcery.com>
700 * pt.c (tsubst_baselink): Substitute into BASELINK_OPTYPE.
702 2006-07-31 Mark Mitchell <mark@codesourcery.com>
705 * tree.c (stabilize_expr): Tweak documentation. Add assertion.
706 (stabilize_call): Tweak documentation.
707 (stabilize_init): Only call stabilize_call for calls.
709 2006-07-28 Lee Millward <lee.millward@codesourcery.com>
713 * pt.c (process_template_parm) Store invalid template
714 parameters as error_mark_node in the paramater list.
715 (push_inline_template_parms_recursive): Handle invalid
717 (comp_template_parms): Likewise.
718 (check_default_tmpl_args): Likewise.
719 (coerce_template_template_parms): Likewise.
720 (coerce_template_parms): Likewise.
721 (mangle_class_name_for_template): Likewise.
722 (tsubst_template_parms): Likewise.
723 * error.c (dump_template_argument_list): Likewise.
725 2006-07-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
728 * decl.c (grokdeclarator): Return error_mark_node after invalid
731 2006-07-23 Mark Mitchell <mark@codesourcery.com>
734 * cp-tree.h (LOOKUP_HIDDEN): New macro. Reformat comments.
735 * name-lookup.c (unqualified_namespace_lookup): There is no way to
736 have a hidden name in non-namespace scopes.
737 * pt.c (tsubst_friend_class): Look for hidden names.
738 * decl.c (lookup_and_check_tag): Fix typo in comment.
740 * semantics.c (finish_compound_literal): Fix typo in comment.
742 2006-07-22 Lee Millward <lee.millward@gmail.com>
745 * method.c (locate_copy): Check for non_reference
746 returning error_mark_node.
748 2006-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
751 * semantics.c (check_template_template_default_arg): Simplify
754 2006-07-20 Steve Ellcey <sje@cup.hp.com>
757 * search.c (adjust_result_of_qualified_name_lookup): Change
758 assert to part of if statement.
760 2006-07-19 Mark Mitchell <mark@codesourcery.com>
763 * decl.c (layout_var_decl): Don't call push_local_name here.
764 (initialize_artificial_var): Assert artificiality.
765 (cp_finish_decl): Call push_local_name here.
767 2006-07-18 Mark Mitchell <mark@codesourcery.com>
770 * typeck.c (build_binary_op): Short-circuit pointer arithmetic in
774 * semantics.c (check_accessibility_of_qualified_id): Robustify.
776 2006-07-18 Mark Mitchell <mark@codesourcery.com>
779 * pt.c (tsubst_decl): Handling substitutions into a static data
780 member from within the scope of the tempalte itself.
782 2006-07-18 Steve Ellcey <sje@cup.hp.com>
785 * decl.c (reshape_init_class): Return error_mark_node on error.
787 2006-07-18 Steve Ellcey <sje@cup.hp.com>
790 * decl2.c (check_classfn): Return NULL_TREE on error.
792 2006-07-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
795 * parser.c (cp_parser_check_decl_spec): New function.
796 (cp_parser_decl_specifier_seq): Factor out check for repeated
797 decl-specifiers into cp_parser_check_decl_spec. Use it.
798 (cp_parser_type_specifier_seq): Use it.
801 * semantics.c (finish_offsetof): Use TREE_OPERAND for COMPONENT_REFs
804 2006-07-14 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
807 * decl.c (cp_finish_decl): Check asmspec_tree for error_mark_node.
808 * decl2.c (grokfield): Likewise.
810 2006-06-16 Mark Mitchell <mark@codesourcery.com>
813 * decl.c (cp_finsh_decl): Do not emit uninstantiated static data
816 2006-07-11 Lee Millward <lee.millward@gmail.com>
819 * mangle.c (mangle_conv_op_name_for_type): Check for
821 * name-lookup.c (push_class_level_binding): Robustify.
822 (do_class_using_decl): Return early if name is
825 2006-07-10 Steve Ellcey <sje@cup.hp.com>
828 * typeck2.c (process_init_constructor_array): Set ce->value on errors.
830 2006-07-10 Steve Ellcey <sje@cup.hp.com>
833 * name-lookup.c (pushtag): Return if we have error_mark_node.
835 2006-07-08 Lee Millward <lee.millward@gmail.com>
836 Andrew Pinski <pinskia@gmail.com>
839 * decl.c (define_label): Return error_mark_node on error.
840 * semantics.c (finish_label_stmt): Don't call
841 add_stmt for invalid labels.
843 2006-07-05 Jason Merrill <jason@redhat.com>
847 * class.c (check_field_decls): Check TYPE_PACKED after
848 stripping array types.
851 * friend.c (is_friend): Fix DR 45 implementation.
853 2006-06-30 Jason Merrill <jason@redhat.com>
856 * call.c (build_new_method_call): Force evaluation of the
857 instance pointer, not the object.
860 * decl2.c (grokfield): Only try to treat the decl as an access
861 declaration if the scope is a class.
863 2006-06-28 Jason Merrill <jason@redhat.com>
866 * pt.c (convert_template_argument): Pass all template arguments
867 on to coerce_template_template_parms.
869 2006-06-25 Lee Millward <lee.millward@gmail.com>
872 * decl.c (grokdeclarator): Return error_mark_node on
873 invalid uses of the scope resolution operator.
875 2006-06-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
878 * parser.c (cp_parser_attribute_list): Skip attributes with invalid
879 arguments. Fix comment.
881 2006-06-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
884 * pt.c (unify) <case TEMPLATE_PARM_INDEX>: Check for invalid
888 * rtti.c (get_tinfo_decl_dynamic): Robustify.
890 2006-06-16 Mark Mitchell <mark@codesourcery.com>
893 * decl.c (have_extern_spec): Remove.
894 (start_decl): Do not check have_extern_spec.
895 (start_function): Likewise.
896 * cp-tree.h (have_extern_spec): Remove.
897 * parser.c (cp_parser_linkage_specification): Don't set
899 (cp_parser_init_declarator): Likewise.
900 (cp_parser_parameter_declaration): Do not treat parameters as
901 within the scope of an unbraced linkage specification.
903 2006-06-15 Mark Mitchell <mark@codesourcery.com>
906 * cp-tree.h (CLASSTYPE_SPECIALIZATION_OF_PRIMARY_TEMPLATE_P): New
908 * pt.c (unify): Use it.
910 2006-06-15 Mark Mitchell <mark@codesourcery.com>
913 * call.c (build_conditional_expr): Robustify.
915 2006-06-15 Mark Mitchell <mark@codesourcery.com>
918 * parser.c (cp_parser_unqualified_id): Use constructor_name_p to
919 identify destructors.
920 (cp_parser_nested_name_specifier_opt): Remove invalid
922 (cp_parser_template_id): Refine heuristic for determining whether
923 we are entering a scope.
925 2006-06-14 Mark Mitchell <mark@codesourcery.com>
928 * parser.c (cp_parser_declarator): Robustify.
930 2006-06-14 Mark Mitchell <mark@codesourcery.com>
933 * pt.c (value_dependent_expression_p): All CALL_EXPRs are dependent.
935 2006-06-13 Mark Mitchell <mark@codesourcery.com>
938 * decl.c (decls_match): Allow an extern "C" variable declarations
939 from different namespaces to match.
940 (duplicate_decls): Disallow redeclaring a variable with a
941 different linkage specification.
943 2006-06-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
945 * cp-tree.def: Fix typo.
947 2006-06-13 Roger Sayle <roger@eyesopen.com>
950 * typeck2.c (build_functional_cast): Use cp_convert to construct
951 non-aggregate initializers instead of the user-level build_c_cast.
953 2006-06-12 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
956 * semantics.c (finish_offsetof): Handle pseudo-destructors.
959 * name-lookup.c (lookup_qualified_name): Always return error_mark_node
963 * decl2.c (finish_anon_union): Return early if build_anon_union_vars
966 2006-06-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
969 * cp-tree.h (finish_offsetof): Add prototype.
970 * semantics.c (finish_offsetof): New function.
971 * parser.c (cp_parser_builtin_offsetof): Call it instead of
973 * pt.c (tsubst_copy_and_build): Likewise.
975 2006-06-06 Mark Mitchell <mark@codesourcery.com>
978 * call.c (standard_conversion): Require that the derived type be
979 complete when performing a derived-to-base conversion.
981 2006-06-04 Mark Mitchell <mark@codesourcery.com>
984 * decl.c (cp_finish_decl): Process initializers for static data
985 members with non-dependent initializers, even in templates.
988 * decl.c (maybe_deduce_size_from_array_init): If the declaration
989 is erroneous, give it an erroneous type.
990 (layout_var_decl): If the type is erroneous, give up.
991 (check_initializer): Likewise.
994 * cp-tree.h (TYPE_OBJ_P): New macro.
995 (TYPE_PTROB_P): Use it.
996 (TYPE_REF_OBJ_P): Likewise.
997 * semantics.c (finish_compound_literal): Do not permit compound
998 literals of non-object types.
1001 * typeck.c (original_type): Robustify.
1003 2006-05-31 Mark Mitchell <mark@codesourcery.com>
1006 * call.c (perform_implicit_conversion): Do not actually perform
1007 conversions in templates.
1010 * call.c (resolve_args): Check for invalid uses of bound
1011 non-static member functions.
1012 * init.c (build_offset_ref): Return error_mark_node for errors.
1015 * decl.c (reshape_init): Robustify.
1016 (reshape_init_array_1): Likewise.
1018 2006-05-30 Mark Mitchell <mark@codesourcery.com>
1021 * cp-tree.h (begin_function_try_block): Change prototype.
1022 (finish_function_handler_sequence): Likewise.
1023 * parser.c (cp_parser_function_try_block): Adjust calls.
1024 * pt.c (tsubst_expr): Adjust calls.
1025 * semantics.c (begin_function_try_block): Create an artificial
1027 (finish_function_handler_sequence): Close it.
1029 2006-05-30 Mark Mitchell <mark@codesourcery.com>
1032 * parser.c (cp_parser_set_storage_class): Check for
1033 invalid uses of storage classes on unbraced linkage
1035 (cp_parser_decl_specifier_seq): Pass keywords, not storage classes,
1036 to cp_parser_set_storage_class.
1038 2006-05-30 Mark Mitchell <mark@codesourcery.com>
1041 * pt.c (determine_specialization): Disallow partial
1042 specializations of templates.
1044 2006-05-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1047 * pt.c (push_template_decl_real): Return error_mark_node instead
1051 * decl2.c (grok_method_quals): Skip invalid functions and class types.
1054 * typeck.c (build_modify_expr): Test arguments for error_operand_p.
1056 2006-05-24 Release Manager
1058 * GCC 4.1.1 released.
1060 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
1062 * Make-lang.in: Undo the last change.
1064 2006-05-17 Jakub Jelinek <jakub@redhat.com>
1067 * semantics.c (finish_compound_literal): Only set TREE_HAS_CONSTRUCTOR
1070 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
1073 * Make-lang.in (GXX_OBJS): Replace gcc.o with $(GCC_OBJS).
1075 2006-05-15 Mark Mitchell <mark@codesourcery.com>
1078 * cp-tree.h (perform_access_checks): New function.
1079 * semantics.c (perform_access_checks): New function.
1080 (perform_deferred_access_checks): Use it.
1081 * parser.c (cp_parser_simple_declaration): Adjust call to
1082 cp_parser_init_declarator.
1083 (cp_parser_type_parameter): Do not defer checks in default
1085 (cp_parser_explicit_specialization): Adjust call to
1086 cp_parser_single_declaration.
1087 (cp_parser_init_declarator): Perform template-parameter access
1089 (cp_parser_parameter_declaration): Do not defer checks for
1090 template parameter default arguments.
1091 (cp_parser_template_declaration_after_export): Gather access
1092 checks for template parameters, and pass them to
1093 cp_parser_single_declaration.
1094 (cp_parser_template_parameter_access_checks): New function.
1095 (cp_parser_single_declaration): Add checks parameter.
1097 2006-05-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1100 * pt.c (any_dependent_template_arguments_p): Return early on invalid
1104 * search.c (adjust_result_of_qualified_name_lookup): Skip on
1105 invalid context_class.
1108 * pt.c (do_decl_instantiation): Return early on invalid decl.
1110 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1113 * decl.c (copy_fn_p): Return early on non-member functions.
1115 2006-05-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1118 * pt.c (convert_nontype_argument): Return early on invalid arguments.
1121 * typeck.c (convert_arguments): Return early on args with
1124 2006-05-01 Mark Mitchell <mark@codesourcery.com>
1127 * decl.c (grokdeclarator): Qualify "this" pointer when forming
1128 member function types.
1130 2006-04-30 Mark Mitchell <mark@codesourcery.com>
1133 * cp-tree.h (adjust_bitfield_initializer): Declare.
1134 * typeck.c (build_modify_expr): Use it.
1135 * typeck2.c (adjust_bitfield_initializer): Define.
1136 (process_init_constructor_record): Use it.
1139 * pt.c (tsubst_default_argument): Increment function_depth around
1140 call to tsubst_expr.
1141 * parser.c (cp_parser_parameter_declaration): Likewise.
1142 * decl2.c (mark_used): Tidy.
1144 2006-04-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1147 * decl.c (grok_op_properties): Skip operators with invalid args
1148 when checking for class-type or enum-type args.
1150 2006-04-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1153 * decl.c (copy_fn_p): Skip functions with invalid first arg.
1155 2006-04-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1158 * parser.c (cp_parser_class_name): Check for invalid typenames.
1162 * typeck.c (convert_arguments): Return error_mark_node instead of
1164 * cp-tree.h (error_mark_list): Remove declaration.
1165 * decl.c (error_mark_list): Remove definition.
1166 (cxx_init_decl_processing): Do not initialize error_mark_list.
1169 * rtti.c (build_dynamic_cast_1): Check for invalid conversions
1170 before calling convert_to_reference.
1171 * cvt.c (convert_to_reference): Assert that reftype is a
1174 2006-04-16 Mark Mitchell <mark@codesourcery.com>
1177 * typeck.c (finish_class_member_access_expr): Robustify
1179 2006-04-12 Mark Mitchell <mark@codesourcery.com>
1181 * parser.c (cp_parser_init_declarator): Initialize local variables
1184 2006-04-11 Mark Mitchell <mark@codesourcery.com>
1187 * decl.c (grokdeclarator): Remove namespace-handling code for
1188 pointers-to-members.
1189 * parser.c (cp_parser_ptr_operator): Check for qualified names
1192 2006-04-11 Mark Mitchell <mark@codesourcery.com>
1195 * parser.c (cp_parser_init_declarator): Adjust logic for deciding
1196 whether or not to look for a pure-specifier.
1197 (cp_parser_member_declaration): Likewise.
1199 2006-03-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1202 * decl.c (grok_op_properties): Check for ellipsis in arguments of
1205 2006-02-28 Release Manager
1207 * GCC 4.1.0 released.
1209 2006-02-18 Mark Mitchell <mark@codesourcery.com>
1212 * cp-tree.h (cp_finish_decl): Adjust declaration.
1213 (grokbitfield): Likewise.
1214 (finish_static_data_member_decl): Likewise.
1215 * init.c (constant_value_1): Ensure processing_template_decl when
1216 folding non-dependent initializers for static data members of
1217 dependent types. Return error_mark_node for erroneous
1219 * class.c (get_vtable_decl): Use finish_decl, not cp_finish_decl.
1220 * decl.c (cp_make_fname_decl): Adjust call to cp_finish_decl.
1221 (cp_finish_decl): Add init_const_expr_p parameter. Set
1222 DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P here.
1223 (finish_decl): Adjust call to cp_finish_decl.
1224 (compute_array_index_type): Robustify.
1225 (start_method): Use finish_decl, not cp_finish_decl.
1226 * rtti.c (emit_tinfo_decl): Likewise.
1227 * except.c (initialize_handler_parm): Adjust call to
1229 (expand_start_catch_block): Likewise.
1230 * cvt.c (build_up_reference): Adjust call to cp_finish_decl.
1231 * pt.c (instantiate_class_template): Adjust call to
1232 finish_static_data_member_decl.
1233 (tsubst_expr): Use finish_decl, not cp_finish_decl.
1234 (instantiate_decl): Adjust call to cp_finish_decl.
1235 * name-lookup.c (pushdecl_top_level_1): Use finish_decl, not
1237 * decl2.c (finish_static_data_member_decl): Add init_const_expr_p
1239 (grokfield): Likewise.
1240 * parser.c (cp_parser_condition): Check for constant initializers.
1241 (cp_parser_init_declarator): Adjust calls to grokfield and
1242 cp_finish_decl. Don't set
1243 DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P here.
1244 (cp_parser_member_declaration): Likewise.
1245 (cp_parser_objc_class_ivars): Likewise.
1247 2006-02-14 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1250 * parser.c (cp_parser_decl_specifier_seq): Check for duplicate
1251 decl-specifiers. Remove extra check for duplicate 'friend'.
1252 * decl.c (grokdeclarator): Remove check for duplicate
1253 decl-specifiers. Set longlong together with long_p.
1255 2006-02-12 Jason Merrill <jason@redhat.com>
1258 * except.c (build_throw): Add a CLEANUP_POINT_EXPR inside the
1259 TRY_CATCH_EXPR or MUST_NOT_THROW_EXPR.
1261 2006-02-08 Jason Merrill <jason@redhat.com>
1264 * cp-gimplify.c (cp_gimplify_expr): Don't call
1265 cp_gimplify_init_expr for MODIFY_EXPRs.
1266 * typeck2.c (split_nonconstant_init_1): Use INIT_EXPR.
1268 2006-02-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1271 * decl.c (grokdeclarator): Set dname also for destructor.
1274 * decl.c (grokdeclarator): Clear storage_class together with staticp.
1276 2006-01-31 Mark Mitchell <mark@codesourcery.com>
1279 * cp-tree.h (DECL_TEMPLATE_SPECIALIZATIONS): Revise
1281 * pt.c (determine_specialization): Use INNERMOST_TEMPLATE_PARMS,
1283 (instantiate_class_template): Simplify.
1284 (verify_class_unification): Remove.
1285 (unify): Document parameters. Use INNERMOST_TEMPLATE_ARGS to
1286 permit multiple levels of template arguments.
1287 (more_specialized_class): Simplify.
1288 (get_class_bindings): Pass full arguments to unify. Fold
1289 verify_class_unification into this function. Return full
1291 (most_specialized_class): Adjust for changes to
1292 get_class_bindings. Issue errors here for ambiguity. Return the
1293 fully deduced arguments for the most specialized class, in
1294 addition to the partial specialization.
1296 2006-01-28 Mark Mitchell <mark@codesourcery.com>
1299 * decl.c (start_preparsed_function): Call maybe_apply_pragma_weak
1301 (start_function): ... here.
1304 * pt.c (most_speialized_instantiation): When a tie occurs, set the
1305 current presumed champion to the next template.
1307 2006-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1310 * parser.c (cp_parser_unqualified_id): Check that destructor name
1312 * call.c (check_dtor_name): Do not expect a BIT_NOT_EXPR.
1313 Adjust comment. Use same_type_p to compare types.
1314 * typeck.c (lookup_destructor): Adjust call to check_dtor_name.
1315 * init.c (build_offset_ref): Adjust call to check_dtor_name.
1317 2006-01-21 Mark Mitchell <mark@codesourcery.com>
1320 * class.c (build_base_path): Generate a NOP_EXPR instead of a
1321 COMPONENT_REF if the base and derived classes are at the same
1325 * decl.c (begin_destructor_body): Robustify.
1328 * parser.c (cp_parser_direct_declarator): Robustify.
1330 2006-01-19 Mark Mitchell <mark@codesourcery.com>
1333 * name-lookup.c (do_class_using_decl): Don't try to look up base
1334 classes in templates with dependent base types.
1336 2006-01-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1339 * pt.c (maybe_process_partial_specialization): Return early on
1342 2006-01-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1345 * decl.c (start_preparsed_function): Check default arguments
1347 * name-lookup.c (pushdecl_maybe_friend): Check default arguments
1348 of all functions and function templates.
1349 * parser.c (cp_parser_late_parsing_default_args): Check default
1351 * decl2.c (check_default_args): Set missing default arguments to
1354 2006-01-18 Mark Mitchell <mark@codesourcery.com>
1357 * cp-tree.h (push_class_stack): New function.
1358 (pop_class_stack): Likewise.
1359 * class.c (class_stack_node): Add hidden field.
1360 (pushclass): Clear it.
1361 (push_class_stack): New function.
1362 (pop_class_stack): Likewise.
1363 (currently_open_class): Ignore hidden classes.
1364 (currently_open_derived_class): Likewise.
1365 * name-lookup.c (push_to_top_level): Call push_class_stack.
1366 (pop_from_top_level): Call pop_class_stack.
1368 2006-01-18 Jakub Jelinek <jakub@redhat.com>
1370 * search.c (lookup_conversions_r): Fix a pasto.
1372 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1375 * decl.c (compute_array_index_type): After issuing not an integral
1376 constant-expression error, set size to 1 to avoid ICEs later on.
1378 2006-01-14 Mark Mitchell <mark@codesourcery.com>
1381 * parser.c (cp_parser_direct_declarator): Use cp_parser_error
1384 2006-01-12 Nathan Sidwell <nathan@codesourcery.com>
1387 * class.c (handle_using_decl): Pass correct scope to
1388 cp_emit_debug_info_for_using.
1390 2006-01-11 Nathan Sidwell <nathan@codesourcery.com>
1393 * tree.c (lvalue_p_1): Any part of a COMPONENT_REF affects
1396 2005-01-04 Zdenek Dvorak <dvorakz@suse.cz>
1399 * init.c (constant_value_1): Unshare use of DECL_INITIAL. Fix a typo
1402 2006-01-04 Mark Mitchell <mark@codesourcery.com>
1405 * parser.c (cp_parser_nested_name_specifier_opt): Preserve access
1406 checks, even when parsing tentatively.
1408 2006-01-03 Mark Mitchell <mark@codesourcery.com>
1411 * name-lookup.c (push_class_level_binding): When a derived class
1412 provides a type binding, eliminate any type binding from a base
1416 * repo.c (repo_emit_p): Always instantiate static data members
1417 initialized by constant expressions, so that there values are
1420 2006-01-02 Mark Mitchell <mark@codesourcery.com>
1423 * class.c (add_method): Set TYPE_HAS_CONVERSION for classes with a
1424 conversion operator.
1425 * decl.c (grokdeclarator): Do not set TYPE_HAS_CONVERSION here.
1428 * class.c (add_method): Never associate more than one destructor
1429 with a single class.
1432 * decl.c (grokdeclarator): Refine check for invalid
1433 declarations/definitions of member functions outside of their own
1437 * parser.c (cp_parser_mem_initializer_list): Check result of
1438 cp_parser_mem_initializer against error_mark_node, not NULL_TREE.
1439 (cp_parser_mem_initializer): Return error_mark_node for failure.
1442 * parser.c (cp_parser_elaborated_type_specifier): Call
1443 cp_parser_check_template_parameters.
1445 2006-01-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1447 * parser.c (cp_parser_using_declaration): Skip name-lookup on
1450 2006-01-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1452 * decl.c (grokdeclarator): Improve diagnostic for friend
1453 declarations of class members.
1455 2005-12-26 Mark Mitchell <mark@codesourcery.com>
1457 PR c++/23171, c++/23172, c++/25417.
1458 * typeck.c (build_unary_op): Create temporary variables for
1459 compound literals whose addresses are taken.
1460 * init.c (expand_aggr_init_1): Use COMPOUND_LITERAL_P.
1461 * decl.c (reshape_init_vector): Likewise.
1462 (reshape_init): Give it external linkage.
1463 (check_initializer): Use COMPOUND_LITERAL_P.
1464 (initialize_artificial_var): Allow the initializer to be a
1466 * call.c (make_temporary_var_for_ref_to_temp): Use
1467 create_temporary_var.
1468 * cp-tree.h (COMPOUND_LITERAL_P): New macro.
1469 (rehape_init): Declare.
1470 * typeck2.c (digest_init): Use COMPOUND_LITERAL_P.
1471 * semantics.c (finish_compound_literal): Use reshape_init.
1473 2005-12-26 Mark Mitchell <mark@codesourcery.com>
1476 * decl.c (grokdeclarator): Remove dead code.
1477 * ptree.c (cxx_print_xnode): Handle BASELINK.
1478 * parser.c (make_id_declarator): Add sfk parameter.
1479 (cp_parser_direct_declarator): Do not pass TYPE_DECLs to
1481 (cp_parser_declarator_id): Simplify BASELINKs here.
1482 (cp_parser_member_declaration): Adjust calls to
1485 2005-12-23 Mark Mitchell <mark@codesourcery.com>
1488 * pt.c (instantiate_template): Handle SFINAE.
1490 2005-12-22 Mark Mitchell <mark@codesourcery.com>
1493 * pt.c (tsubst_copy): Call mark_used on the member referenced by an
1495 * decl2.c (mark_used): Accept BASELINKs.
1497 2005-12-22 Mark Mitchell <mark@codesourcery.com>
1500 * semantics.c (finish_qualified_id_expr): Call mark_used.
1502 2005-12-20 Mark Mitchell <mark@codesourcery.com>
1505 * decl.c (use_eh_spec_block): New function.
1506 (store_parm_decls): Use it.
1507 (finish_function): Likewise.
1509 2005-12-19 Mark Mitchell <mark@codesourcery.com>
1512 * init.c (expand_member_init): Print messages about baseclasses
1513 using %T rather than %D.
1515 2005-12-19 Mark Mitchell <mark@codesourcery.com>
1518 * class.c (add_method): Do not treat templates as identical unless
1519 their return types are the same.
1521 2005-12-13 Petr Machata <machata@post.cz>
1524 * parser.c (cp_parser_simple_declaration): Require comma at the
1525 beginning of processing second and later declarators, instead of
1526 allowing the comma at the end of each iteration.
1528 2005-12-12 Mark Mitchell <mark@codesourcery.com>
1531 * tree.c (build_qualified_name): Return error_mark_node for
1534 2005-12-10 Mark Mitchell <mark@codesourcery.com>
1537 * pt.c (tsubst_copy_and_build): Permit dependent types for the
1538 object in a class member access expression.
1540 2005-12-08 Richard Guenther <rguenther@suse.de>
1542 Backport from mainline
1543 2005-11-24 Richard Guenther <rguenther@suse.de>
1544 Dirk Mueller <dmueller@suse.de>
1547 * typeck.c (build_reinterpret_cast_1): Use
1548 strict_aliasing_warning.
1550 2005-12-07 Aldy Hernandez <aldyh@redhat.com>
1553 * decl.c (reshape_init_array_1): Handle max_index of -1.
1555 2005-12-02 Mark Mitchell <mark@codesourcery.com>
1558 * decl.c (duplicate_decls): Don't rely on DECL_TEMPLATE_INFO after
1561 2005-11-30 Jason Merrill <jason@redhat.com>
1564 * cp-gimplify.c (cp_genericize_r): Don't dereference invisible
1565 reference parms in a thunk.
1567 2005-11-28 Nathan Sidwell <nathan@codesourcery.com>
1570 * class.c (check_field_decls): Only set DECL_PACKED on a field
1571 when its natural alignment is > BITS_PER_UNIT.
1573 2005-11-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
1576 * error.c (resolve_virtual_fun_from_obj_type_ref): New.
1577 (dump_expr): Use it in <case CALL_EXPR>.
1579 2005-11-18 Mark Mitchell <mark@codesourcery.com>
1582 * decl.c (grokfndecl): Set up DECL_TEMPLATE_INFO before calling
1584 * name-lookup.c (set_decl_namespace):
1586 2005-11-18 Mike Stump <mrs@apple.com>
1588 * cp-objcp-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
1589 * name-lookup.c (lookup_name_two): Remove.
1590 (lookup_name_one): Add.
1591 * name-lookup.h (lookup_name_two): Remove.
1592 (lookup_name_one): Add.
1594 2005-11-15 Jason Merrill <jason@redhat.com>
1597 * method.c (locate_copy): Also use skip_artificial_parms here.
1598 (synthesize_exception_spec): Use CLASS_TYPE_P rather than checking
1600 (locate_ctor): Abort if we fail to find a default constructor.
1602 2005-11-15 Mike Stump <mrs@apple.com>
1604 * name-lookup.c (lookup_name_two): Add.
1605 * name-lookup.h: Likewise.
1607 2005-11-15 Mark Mitchell <mark@codesourcery.com>
1610 * typeck.c (check_for_casting_away_constness): Use the diag_fn.
1611 (build_const_cast_1): Call it, for C-style casts.
1613 2005-11-14 Mark Mitchell <mark@codesourcery.com>
1616 * pt.c (check_explicit_specialization): Don't check for C linkage.
1617 (push_template_decl_real): Likewise.
1618 * parser.c (cp_parser_explicit_specialization): Check here.
1619 (cp_parser_template_declaration_after_export): And here.
1621 * parser.c (cp_lexer_get_preprocessor_token): Initialize keyword
1624 2005-11-14 Jason Merrill <jason@redhat.com>
1627 * method.c (locate_ctor): Skip all artificial parms, not just
1630 2005-11-14 Mark Mitchell <mark@codesourcery.com>
1632 * parser.c (eof_token): Add initializer for ambiguous_p.
1634 2005-11-13 Mark Mitchell <mark@codesourcery.com>
1637 * decl.c (check_redeclaration_exception_specification): New
1639 (duplicate_decls): Use it.
1640 * error.c (fndecl_to_string): Print the template parameter list.
1643 * cxx-pretty-print.c (pp_cxx_statement): Print qualifying scopes
1645 (pp_cxx_original_namespace_definition): Likewise.
1646 * name-lookup.c (ambiguous_decl): Don't issue error messages;
1647 instead return lists of ambiguous candidates.
1648 (select_decl): Handle ambiguous namespace lookups.
1649 * parser.c (cp_token): Add ambiguous_p.
1650 (cp_lexer_get_preprocessor_token): Set it.
1651 (cp_parser_diagnose_invalid_type_name): Avoid duplicate messages
1652 when a qualified name uses an invalid scope.
1653 (cp_parser_primary_expression): Print ambiguous candidates.
1654 (cp_parser_type_parameter): Adjust comment to reflect new
1655 parameter name for cp_parser_lookup_name.
1656 (cp_parser_template_argument): Likewise.
1657 (cp_parser_elaborated_type_specifier): Likewise.
1658 (cp_parser_namespace_name): Likewise.
1659 (cp_parser_class_name): Print ambiguous candidates.
1660 (cp_parser_lookup_name): Rename ambiguous_p parameter to
1661 ambiguous_decls. Use it to return a list of ambiguous candiates
1662 when a lookup is ambiguous.
1663 (cp_parser_lookup_name_simple): Adjust comment to reflect new
1664 parameter name for cp_parser_lookup_name.
1666 2005-11-12 Jakub Jelinek <jakub@redhat.com>
1669 * typeck.c (complete_type): Set TYPE_NEEDS_CONSTRUCTING
1670 and TYPE_HAS_NONTRIVIAL_DESTRUCTOR flags for all variants
1674 * pt.c (tsubst_copy_asm_operands): New function.
1675 (tsubst_expr) <case ASM_EXPR>: Use it.
1677 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1680 * decl.c (redeclaration_error_message): Issue diagnostics about
1681 olddecl and newdecl disagreement on __thread property.
1682 (grokdeclarator): Set DECL_TLS_MODEL on class static variables.
1684 2005-11-08 Jason Merrill <jason@redhat.com>
1687 * method.c (use_thunk): Use build_cplus_new instead of
1690 2005-11-06 Jason Merrill <jason@redhat.com>
1691 James A. Morrison <phython@gcc.gnu.org>
1694 * decl2.c (cp_finish_file): Fix conditions for undefined warning.
1695 Set TREE_NO_WARNING instead of TREE_PUBLIC.
1696 * pt.c (instantiate_pending_templates): Set DECL_INITIAL to avoid
1697 a warning on a function we didn't instantiate because of excessive
1700 2005-11-06 Mark Mitchell <mark@codesourcery.com>
1702 * class.c (record_subobject_offsets): Don't record offsets past
1703 biggest empty class for non-empty base classes.
1704 (layout_class_type): Use TYPE_SIZE_UNIT, not TYPE_SIZE, when
1705 keeping track of the size of emptyclasses.
1708 * class.c (sizeof_biggest_empty_class): New variable.
1709 (record_subobject_offsets): Don't record offsets past biggest
1710 empty class for data members. Replace vbases_p parameter with
1711 is_data_member parameter.
1712 (build_base_field): Adjust call.
1713 (layout_class_type): Likewise. Maintain
1714 sizeof_biggest_empty_class.
1716 2005-11-05 Kazu Hirata <kazu@codesourcery.com>
1718 * decl2.c, init.c, typeck.c: Fix comment typos.
1720 2005-11-04 Richard Guenther <rguenther@suse.de>
1723 * init.c (build_vec_init): Build comparison of matching
1726 2005-11-03 Josh Conner <jconner@apple.com>
1729 pt.c (tsubst): Accept zero-length array if tf_error is set
1730 in complain flags. Change error message for negative-
1733 2005-11-04 Joseph S. Myers <joseph@codesourcery.com>
1735 * cp-tree.h (cp_cpp_error), error.c (cp_cpp_error): Take va_list*
1738 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
1741 * error.c (cp_cpp_error): New function.
1742 * cp-tree.h (cp_cpp_error): Declare.
1743 * parser.c (cp_lexer_new_main): Set CPP option client_diagnostic
1744 and error callback after lexing.
1746 2005-11-03 Mark Mitchell <mark@codesourcery.com>
1749 * pt.c (register_specialization): Update inline flags on clones.y
1751 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
1754 * decl.c (declare_local_label): Return 0 for variables
1755 with error_mark_node as their types.
1757 2005-11-02 Mark Mitchell <mark@codesourcery.com>
1760 * call.c (build_conditional_expr): Do bad conversions, if there's
1764 * parser.c (cp_parser_postfix_dot_deref_expression): Improve error
1765 message for use of overloaded functions on LHS of "." operator.
1768 * parser.c (cp_parser_postfix_expression): Use
1769 cp_parser_elaborated_type_specifier to handle typename-types in
1771 (cp_parser_enclosed_argument_list): Skip ahead to the end of the
1772 template argument list if the closing ">" is not found.
1775 * pt.c (instantiate_decl): Use cp_finish_decl, not
1776 finish_static_data_member_decl.
1778 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
1780 * decl.c (grokfndecl): Remove the setting
1781 of the return type of the function type
1782 of main after erroring about must returning
1785 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
1788 * decl.c (grokfndecl): Create a new function type
1789 after erroring out about main not returning int.
1791 2005-10-28 Josh Conner <jconner@apple.com>
1794 * parser.c (cp_parser_member_declaration): Detect and handle
1795 a template specialization.
1797 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
1800 * decl.c (start_decl): Check that the decl is an
1801 error_mark_node before getting the type.
1802 Remove the check for the decl's type being an
1805 2005-10-21 Mark Mitchell <mark@codesourcery.com>
1808 * parser.c (cp_parser_init_declarator): Pass attributes to
1811 2005-10-20 Mark Mitchell <mark@codesourcery.com>
1814 * search.c (accessible_p): Check access in the outermost set of
1815 template parameters.
1817 2005-10-20 Richard Guenther <rguenther@suse.de>
1819 * decl.c (grokdeclarator): Fix ambiguous pedwarn message.
1821 2005-10-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1824 * decl.c (grokdeclarator): Reject unqualified destructors in
1825 friend declarations.
1827 2005-10-18 Mark Mitchell <mark@codesourcery.com>
1830 * pt.c (convert_template_argument): Use canonical type variants in
1831 template specializations.
1833 2005-10-18 Nathan Sidwell <nathan@codesourcery.com>
1836 * name-lookup.c (arg_assoc): Template args can be null in a
1840 * class.c (update_vtable_entry_for_fn): Don't process invalid
1841 covariant overriders.
1844 * cp-tree.h (add_method): Add return value.
1845 * class.c (add_method): Return success indicator.
1846 * semantics.c (finish_member_declaration): Don't add an invalid
1847 method to the method list.
1849 2005-10-17 Mark Mitchell <mark@codesourcery.com>
1852 * call.c (build_new_method_call): Do not show VTT parameters to
1855 2005-10-17 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1858 * parser.c (cp_parser_statement): If the parser reached CPP_EOF,
1859 only complain about missing statement.
1861 2005-10-17 Nathan Sidwell <nathan@codesourcery.com>
1864 * cp-tree.h (BASELINK_QUALIFIED_P): New.
1865 * pt.c (tsubst_copy_and_build): <CALL_EXPR case>: Use it.
1866 * typeck.c (finish_class_member_access_expr): Set it.
1869 * decl.c (check_default_argument): Don't check
1870 processing_template_decl or uses_template_parms here.
1871 (grokparms): Only call check_default_argument when not processing
1873 * parser.c (cp_parser_late_parsing_default_arg): Call
1874 check_default_argument when not processing a template decl.
1876 2005-10-16 Mark Mitchell <mark@codesourcery.com>
1879 * decl2.c (mark_used): Use uses_template_parms instead of
1881 * init.c (constant_value_1): Handle uninstantiated templates
1883 * pt.c (instantiate_decl): Add sanity check.
1885 2005-10-16 Mark Mitchell <mark@codesourcery.com>
1888 * typeck.c (check_template_keyword): Fix thinko.
1890 2005-10-16 Andrew Pinski <pinskia@physics.uc.edu>
1893 * decl.c (pop_switch): Only call c_do_switch_warnings
1894 when not processing templates.
1896 2005-10-16 Mark Mitchell <mark@codesourcery.com>
1899 * cp-tree.h (QUALIFIED_NAME_IS_TEMPLATE): New macro.
1900 (check_template_keyword): New function.
1901 (finish_id_expression): Change prototoype.
1902 (finish_qualified_id_expr): Change prototype.
1903 (build_qualified_name): New function.
1904 (finish_class_member_access_expr): Change prototype.
1905 * init.c (build_offset_ref): Use build_qualified_name.
1906 * mangle.c (write_expression): Likewise.
1907 * parser.c (cp_parser_primary_expression): Remove qualifying_class
1908 parameter. Add address_p and template_arg_p. Use
1909 build_qualified_name.
1910 (cp_parser_id_expression): Default *template_p to
1911 template_keyword_p. Check for invalid uses of the template
1913 (cp_parser_postfix_expression): Eliminate special handling for
1914 qualified names. Adjust call to cp_parser_primary_expression.
1915 (cp_parser_postfix_dot_deref_expression): Adjust call to
1916 cp_parser_id_expression and finish_class_member_access_expr.
1917 (cp_parser_template_argument_list): Add comment.
1918 (cp_parser_template_argument): Adjust use of
1919 cp_parser_primary_expression. Remove call to
1920 finish_qualified_id_expr.
1921 (cp_parser_lookup_name): Use build_qualified_name.
1922 * pt.c (tsubst): Use build_qualified_name.
1923 (tsubst_qualified_id): Likewise. Adjust call to
1924 finish_qualified_id_expr.
1925 (tsubst_copy): Use build_qualified_name.
1926 (tsubst_copy_and_build): Adjusts call to finish_id_expression and
1927 finish_class_member_access_expr.
1928 * semantics.c (finish_non_static_data_member): Use
1929 build_qualified_name.
1930 (finish_qualified_id_expr): Add template_p and template_arg_p
1932 (finish_id_expression): Remove qualifiying_class parameter. Add
1933 template_p, done, address_p, and template_arg_p. Use
1934 build_qualified_name. Adjust calls to
1935 finish_class_member_acess_expr.
1936 * tree.c (build_qualified_name): New function.
1937 * typeck.c (check_template_keyword): New function.
1938 (finish_class_member_access_expr): Add template_p argument. Check
1939 for invalid uses of the template keyword.
1941 2005-10-15 Mark Mitchell <mark@codesourcery.com>
1944 * class.c (maybe_warn_about_overly_private_class): Lazy
1945 constructors are public.
1947 2005-10-14 Mark Mitchell <mark@codesourcery.com>
1950 * call.c (convert_like_real): Rely on convert_and_check to issue
1951 warnings about overflow and conversion to unsigned.
1952 * decl.c (finish_enum): Use the location of the enumerators, not
1953 the closing brace of the enumeration, when reporting warnings
1955 (build_enumerator): Use error_mark_node for erroneous values.
1956 * typeck2.c (digest_init): Remove reference to "signature pointer"
1959 2005-10-14 Nathan Sidwell <nathan@codesourcery.com>
1962 * optimize.c (update_cloned_parm): Add FIRST parameter. Use it.
1963 (maybe_clone_body): Track the first clone.
1965 2005-10-13 Nathan Sidwell <nathan@codesourcery.com>
1968 * class.c (build_base_path): The vtable is always the first thing
1971 2005-10-13 Mark Mitchell <mark@codesourcery.com>
1974 * cp-tree.h (DECL_NONTRIVIALLY_INITIALIZED_P): New macro.
1975 * decl.c (duplicate_decls): Merge it into new declarations.
1976 (decl_jump_unsafe): Use it, rather than DECL_INITIAL.
1977 (cp_finish_decl): Set it, when appropriate.
1980 * call.c (build_new_method_call): Correct pretty-printing of
1982 * pt.c (tsubst_qualified_id): Recognize invalid uses of "~T" as an
1986 * decl.c (start_method): Return error_mark_node for errors.
1989 * pt.c (push_template_decl_real): Complain about attempts to
1990 declare template variables.
1993 * pt.c (tsubst_template_parms): Set processing_template_decl while
1994 processing the parameters.
1995 (tsubst_decl): Set processing_template_decl when substituting into
1999 * pt.c (most_specialized_instantiation): Robustify.
2002 * semantics.c (finish_id_expression): Issue errors about uses of
2003 local variables in containing functions even in templates.
2005 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
2009 * class.c (finish_struct_1): Call
2010 targetm.cxx.adjust_class_at_definition.
2013 2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
2016 * pt.c (build_non_dependent_expr): Don't wrap a COMPONENT_REF
2017 with already looked up member functions. Assert we're not
2018 returning a NON_DEPENDENT_EXPR with unknown type.
2019 * typeck.c (finish_class_member_access_expr): We can get
2020 non-template-id-expr baselinks. If the lookup finds a baselink,
2021 remember it even inside templates.
2024 * parser.c (cp_parser_functional_cast): Cope when TYPE is not a
2025 TYPE_DECL. Use dependent_type_p to check type.
2026 * pt.c (uses_template_parms_p): Use dependent_type_p for a
2028 (type_dependent_expression_p): Assert we've not been given a
2032 * decl.c (check_function_type): Correctly overwrite incomplete
2033 return type with void type.
2034 * typeck.c (check_return_expr): If the function's return type is
2035 void, don't try and convert a return expr.
2037 2005-10-12 David Edelsohn <edelsohn@gnu.org>
2040 * call.c (build_object_call): If BINFO is NULL, bypass
2041 lookup_fnfields and set fns to NULL_TREE.
2043 2005-10-12 Paolo Bonzini <bonzini@gnu.org>
2046 * error.c (dump_expr): Pass LABEL_DECL to dump_decl. Print
2047 an ADDR_EXPR of a LABEL_DECL as &&.
2049 2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
2052 * class.c (walk_subobject_offsets): Don't walk error_mark_node.
2054 2005-10-11 Ian Lance Taylor <ian@airs.com>
2057 * cvt.c (convert_to_void): Don't warn about unused values when
2058 processing a template declaration.
2060 2005-10-11 Mark Mitchell <mark@codesourcery.com>
2063 * call.c (convert_like_real): Use decl_constant_value, not
2064 integral_constant_value.
2065 * init.c (constant_value_1): New function.
2066 (integral_constant_value): Use it.
2067 (decl_constant_value): Likewise.
2068 * typeck.c (decay_conversion): Use decl_constant_value, not
2069 integral_constant_value.
2072 * parser.c (cp_parser_elaborated_type_specifier): Don't treat
2073 class types as templates if the type is not appearing as part of a
2074 type definition or declaration.
2076 2005-10-10 Mark Mitchell <mark@codesourcery.com>
2079 * pt.c (instantiate_decl): Call finish_static_data_member_decl for
2080 static data members.
2082 2005-10-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2083 Mark Mitchell <mark@codesourcery.com>
2086 * parser.c (cp_parser_template_argument_list): Do not treat
2087 contents of argument list as part of a constant expression.
2089 2005-10-10 Mark Mitchell <mark@codesourcery.com>
2092 * decl.c (grokdeclarator): Do not require template parameter lists
2093 for explicitly specialized class.
2094 * error.c (dump_aggr_type): Do not dump template arguments for
2095 non-primary specializations.
2096 (dump_function_name): Likewise.
2099 * pt.c (instantiate_decl): Instantiate the initializer of
2100 a static data member in the namespace containing the class
2101 containing the static data member.
2103 2005-10-08 James A. Morrison <phython@gcc.gnu.org>
2106 * parser.c (cp_parser_postfix_expression) <RID_TYPENAME>: Treat nontype
2107 scopes as nondependent.
2109 2005-10-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2111 * call.c (resolve_args): Remove redundant test.
2113 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
2115 PR tree-optimization/21419
2116 PR tree-optimization/24146
2117 PR tree-optimization/24151
2119 * semantics.c (finish_asm_stmt): Call readonly_error if outputs are
2120 read-only. Set ASM_VOLATILE_P for asms without outputs.
2122 2005-10-05 Nathan Sidwell <nathan@codesourcery.com>
2125 * call.c (joust): Adjust length count to more_specialized_fn.
2126 * pt.c (more_specialized_fn): Cope with non-static member vs
2129 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
2132 * decl.c (make_rtl_for_nonlocal_decl): Use set_user_assembler_name
2133 instead of change_decl_assembler_name.
2135 2005-10-03 Alexandre Oliva <aoliva@redhat.com>
2137 * error.c (dump_type) <UNKNOWN_TYPE>: Print reworded message.
2139 2005-10-03 Mark Mitchell <mark@codesourcery.com>
2142 * repo.c: Include flags.h.
2143 (finish_repo): Add -frandom-seed to the arguments.
2145 2005-10-02 Mark Mitchell <mark@codesourcery.com>
2148 * parser.c (cp_parser_template_argument): Don't turn "T::f" into
2150 * pt.c (convert_nontype_argument): Remove ??? comment.
2153 * tree.c (lvalue_p_1): A VA_ARG_EXPR with class type is an lvalue,
2154 when class rvalues are lvalues.
2156 2005-09-28 Mark Mitchell <mark@codesourcery.com>
2159 * decl.c (grokdeclarator): Always pedwarn about overqualified
2162 2005-09-27 Mark Mitchell <mark@codesourcery.com>
2165 * name-lookup.c (maybe_process_template_type_declaration): Don't
2166 treat forward declarations of classes as templates just because
2167 we're processing_template_decl.
2168 * pt.c (tsubst_decl): Clear DECL_TEMPLATE_INFO for friend
2171 2005-09-26 Jason Merrill <jason@redhat.com>
2174 * cp-tree.h (FUNCTION_NEEDS_BODY_BLOCK): New macro.
2175 * name-lookup.c (pushdecl_maybe_friend): Check it.
2176 * decl.c (begin_function_body): Do nothing if it's false.
2177 (finish_function_body): Ditto.
2178 (outer_curly_brace_block): New fn.
2179 (finish_function): Use it.
2181 2005-09-26 Richard Guenther <rguenther@suse.de>
2184 * decl2.c (do_static_destruction): Remove.
2185 (finish_static_initialization_or_destruction): Likewise.
2186 (DECL_EFFECTIVE_INIT_PRIORITY): New macro.
2187 (NEEDS_GUARD_P): Likewise.
2188 (do_static_initialization): Rename to
2189 do_static_initialization_or_destruction. Process all
2190 initializers/destructors and handle common conditionalizing.
2191 (start_static_initialization_or_destruction): Rename to
2192 one_static_initialization_or_destruction. Handle only
2193 decl-specific conditionalizing.
2194 (cp_finish_file): Call do_static_initialization_or_destruction.
2196 2005-09-22 Jakub Jelinek <jakub@redhat.com>
2199 * class.c (find_final_overrider): Move diagnostic about no unique final
2201 (update_vtable_entry_for_fn): ... here.
2203 2005-09-21 Mark Mitchell <mark@codesourcery.com>
2206 * init.c (integral_constant_value): Use DECL_INTEGRAL_CONSTANT_VAR_P.
2208 2005-09-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2211 * call.c (resolve_args): Return error_mark_node on arguments
2212 whose TREE_TYPE is error_mark_node.
2214 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2217 * rtti.c (get_pseudo_ti_init): Recompute ti pointer after
2218 get_tinfo_ptr calls.
2220 2005-09-16 Mark Mitchell <mark@codesourcery.com>
2223 * parser.c (cp_parser_enclosed_template_argument_list): Make sure
2224 skip_evaluation is false when processing template arguments.
2227 * pt.c (check_instantiated_args): Treat uses of anonymous types as
2228 causing type-deduction failure.
2230 2005-09-15 Jason Merrill <jason@redhat.com>
2233 * cp-tree.def (SIZEOF_EXPR, ALIGNOF_EXPR): Change code class to
2236 2005-09-15 Mark Mitchell <mark@codesourcery.com>
2239 * pt.c (tsubst_aggr_type): Make sure skip_evaluation is false when
2240 processing template arguments.
2242 * pt.c (check_explicit_instantiation_namespace): Fix typo.
2245 * decl.c (check_class_member_definition_namespace): New function.
2246 (grokfndecl): Use it.
2247 (grokvardecl): Likewise.
2248 (grokdecl): Improve documentation.
2249 * pt.c (check_explicit_instantiation_namespace): New function.
2250 (register_specialization): Call check_specialization_namespace
2251 when replacing an implicitly instantiated function.
2252 (check_explicit_specialization): Ensure that DECL_CONTEXT is set
2253 correctly for namespace-scope specializations.
2254 (do_decl_instantiation): Use
2255 check_explicit_instantiation_namespace.
2256 (do_type_instantiation): Likewise.
2258 2005-09-15 Nathan Sidwell <nathan@codesourcery.com>
2261 * error.c (dump_decl): <USING_DECL case> Use USING_DECL_SCOPE.
2263 2005-09-13 Bastian Blank <waldi@debian.org>
2266 * mangle.c (find_substitution): Do not use special substitutions
2267 for identifiers not in std::.
2269 2005-09-13 Mark Mitchell <mark@codesourcery.com>
2272 * typeck.c (cxx_mark_addressable): Only check DECL_HARD_REGISTER
2275 2005-09-13 Mark Mitchell <mark@codesourcery.com>
2278 * pt.c (tsubst_default_argument): Do treat default argument
2279 expressions as occurring in the context of the function called.
2281 2005-09-12 Mark Mitchell <mark@codesourcery.com>
2284 * parser.c (cp_parser_primary_expression): Recognize the closing
2285 ">" of a template-argument-list after a floating-point literal as
2286 the end of a cast expression.
2288 2005-09-12 Mark Mitchell <mark@codesourcery.com>
2291 * cvt.c (perform_qualification_conversions): Don't create
2292 unnecessary NOP_EXPRs.
2293 * pt.c (tsubst_template_arg): Use fold_non_dependent_expr.
2295 2005-09-12 Ian Lance Taylor <ian@airs.com>
2298 * cp-tree.h (struct lang_decl_flags): Add hidden_friend_p
2299 bitfield. Make dummy bitfield one bit smaller.
2300 (DECL_HIDDEN_FRIEND_P): Define.
2301 (pushdecl_maybe_friend): Declare.
2302 (pushdecl_top_level_maybe_friend): Declare.
2303 * decl.c (duplicate_decls): Add newdecl_is_friend parameter.
2304 Change prototype and all callers. Add assertion that a
2305 DECL_ARTIFICIAL FUNCTION_DECL is not DECL_HIDDEN_FRIEND_P. Set
2306 DECL_ANTICIPATED and DECL_HIDDEN_FRIEND_P in duplicated decl if
2308 * name-lookup.c (supplement_binding): Don't ignore a
2309 DECL_HIDDEN_FRIEND_P.
2310 (pushdecl_maybe_friend): Break out contents of pushdecl. Add
2311 is_friend parameter. Set DECL_ANTICIPATED and
2312 DECL_HIDDEN_FRIEND_P for a friend function.
2313 (pushdecl): Just call pushdecl_maybe_friend.
2314 (pushdecl_with_scope): Add is_friend parameter. Change prototype
2316 (pushdecl_namespace_level): Likewise.
2317 (push_overloaded_decl): Likewise. Check DECL_HIDDEN_FRIEND_P as
2318 well as DECL_ANTICIPATED when checking for a builtin.
2319 (do_nonmember_using_decl): Check DECL_HIDDEN_FRIEND_P as well as
2320 DECL_ANTICIPATED when checking for a builtin.
2321 (do_nonmember_using_decl): Likewise.
2322 (pushdecl_top_level_1): Add is_friend parameter. Change all
2324 (pushdecl_top_level_maybe_friend): New function.
2325 (remove_hidden_names): New function.
2326 (struct arg_lookup): Add args field.
2327 (friend_of_associated_class_p): New static function.
2328 (arg_assoc_namespace): Ignore hidden functions which are not
2329 friends of an associated class of some argument.
2330 (lookup_arg_dependent): Remove hidden functions from list passed
2331 in. Initialize k.args.
2332 * name-lookup.h (remove_hidden_names): Declare.
2333 * friend.c (do_friend): Call pushdecl_maybe_friend instead of
2335 * call.c (add_function_candidate): Change DECL_ANTICIPATED test to
2336 an assertion, with a check for DECL_HIDDEN_FRIEND_P.
2337 (build_new_function_call): Add koenig_p parameter. Change
2338 prototype and callers.
2339 * pt.c (register_specialization): Add is_friend parameter. Change
2341 (push_template_decl_real): Change is_friend parameter to bool.
2342 Change prototype and all callers.
2343 (tsubst_friend_class): Call pushdecl_top_level_maybe_friend
2344 instead of pushdecl_top_level.
2346 2005-09-11 Richard Henderson <rth@redhat.com>
2348 * decl2.c (build_anon_union_vars): Copy attributes from the base addr.
2349 * pt.c (tsubst_decl): Substitute in DECL_VALUE_EXPR.
2351 2005-09-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
2353 * parser.c (cp_parser_translation_unit): Simplify. The while-block
2354 was actually executed at most once.
2356 2005-09-09 Richard Henderson <rth@redhat.com>
2359 * cp-tree.def (ALIAS_DECL): Remove.
2360 * cp-lang.c (cp_init_ts): Remove support for it.
2361 * error.c (dump_decl): Likewise.
2362 * name-lookup.c (pushdecl): Likewise.
2363 * semantics.c (finish_id_expression): Likewise.
2364 * decl2.c (build_anon_union_vars): Use a VAR_DECL with
2365 DECL_VALUE_EXPR instead.
2367 2005-09-09 Mark Mitchell <mark@codesourcery.com>
2370 * decl.c (start_preparsed_function): Do not pay attention to
2371 #pragma interface for implicitly-defined methods.
2372 * decl2.c (cp_finish_file): Do not complain about uses of inline
2373 functions that have bodies, even if we decided not to emit the
2374 body in this translation unit.
2375 * semantics.c (note_decl_for_pch): Do not mess with linkage.
2376 (expand_or_defer_fn): Make inline, non-template functions COMDAT
2379 2005-09-08 Richard Henderson <rth@redhat.com>
2382 * decl.c (wrapup_globals_for_namespace): Call
2383 emit_debug_global_declarations.
2384 * decl2.c (cp_finish_file): Likewise.
2386 2005-09-08 Mark Mitchell <mark@codesourcery.com>
2389 * decl2.c (mark_used): Instantiate static data members initialized
2390 by constants, even in a template.
2392 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
2395 * parser.c (cp_parser_objc_selector_expression): Treat CPP_SCOPE as
2398 2005-09-07 Richard Guenther <rguenther@suse.de>
2400 * cp-gimplify.c (cp_gimplify_expr): Create empty CONSTRUCTOR
2401 for EMPTY_CLASS_EXPR.
2403 2005-09-06 Jakub Jelinek <jakub@redhat.com>
2406 * typeck.c (check_return_expr): Add no_warning argument. Set
2407 *no_warning to true if "return-statement with no value, in function
2408 returning" warning has been issued.
2409 * cp-tree.h (check_return_expr): Adjust prototype.
2410 * semantics.c (finish_return_stmt): Set TREE_NO_WARNING if
2411 check_return_expr set *no_warning to true.
2413 2005-09-06 Mark Mitchell <mark@codesourcery.com>
2415 * cp-tree.h (rvalue): New function.
2416 * call.c (build_conditional_expr): Use it.
2417 * init.c (build_new_1): Likewise.
2418 * rtti.c (build_dynamic_cast_1): Likewise.
2419 * tree.c (rvalue): New function.
2420 * typeck.c (build_unary_op): Use it.
2421 (build_static_cast_1): Likewise.
2424 * init.c (build_new_1): Make sure the entire array type is
2425 complete, not just its element types.
2427 2005-09-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2429 * decl.c (check_elaborated_type_specifier): Remove redundant check.
2431 2005-09-06 Jakub Jelinek <jakub@redhat.com>
2434 * typeck.c (ignore_overflows): New helper function.
2435 (build_static_cast_1): Use it.
2437 2005-09-06 Kazu Hirata <kazu@codesourcery.com>
2439 * cp-tree.h, decl.c, decl2.c, semantics.c: Fix comment typos.
2440 Follow spelling conventions.
2442 2005-09-05 Mark Mitchell <mark@codesourcery.com>
2445 * pt.c (tsubst_decl): Clear DECL_TEMPLATE_INSTANTIATED when
2448 2005-09-05 Mark Mitchell <mark@codesourcery.com>
2451 * semantics.c (finish_stmt_expr_expr): Add an explicit
2452 initialization to the last statement in the statement-expression.
2453 * (finish_stmt_expr): Adjust accordingly.
2455 2005-09-03 Mark Mitchell <mark@codesourcery.com>
2458 * decl2.c (mark_used): Always instantiate static data members
2459 initialized by constant expressions.
2460 * pt.c (instantiate_decl): Instantiate the initializers for static
2461 data members initialized by constant expressions.
2464 * semantics.c (expand_or_defer_fn): Do not call ggc_collect when
2465 finishing processing for a template function in a local class.
2467 2005-09-02 Mark Mitchell <mark@codesourcery.com>
2468 * parser.c (cp_parser_class_specifier): Push/pop GC contexts
2469 around functions in local classes.
2471 2005-09-02 Mark Mitchell <mark@codesourcery.com>
2474 * parser.c (cp_parser_class_specifier): Push/pop GC contexts
2475 around functions in local classes.
2477 2005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
2480 * decl2.c (cp_finish_file): If this is obj-c++ and we need a static
2481 init, call generate_ctor_or_dtor_function.
2483 2005-08-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2486 * parser.c (cp_parser_lookup_name): Pass LOOKUP_COMPLAIN to
2487 lookup_name_real on final parse.
2489 2005-08-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2492 * semantics.c (qualified_name_lookup_error): Do not complain again
2495 2005-08-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2498 * parser.c (cp_parser_namespace_name): Move diagnostic for
2499 invalid namespace-name to here from ...
2500 * name-lookup.c (do_namespace_alias): ... here and ...
2501 (do_using_directive): ... here. Remove dead code.
2503 2005-08-28 Mark Mitchell <mark@codesourcery.com>
2506 * cp-tree.h (saved_scope): Add skip_evaluation.
2507 * decl.c (start_decl): Use DECL_INITIALIZED_IN_CLASS_P, not
2508 DECL_INITIAL, to determine whether or not a static data member was
2509 initialized in the class-specifier.
2510 (cp_finish_decl): Add comment.
2511 * init.c (integral_constant_value): Subtitute into the
2512 initializers for static data members in templates.
2513 * name-lookup.c (push_to_top_level): Save skip_evaluation.
2514 (pop_from_top_level): Restore it.
2515 * pt.c (instantiate_class_template): Do not substitute into the
2516 intializers of static data members when instantiating a class.
2517 (regenerate_decl_from_template): Simplify.
2518 (instantiate_decl): Tidy. Substitute into the initializer for a
2519 static data member even when the definition of the data member is
2522 2005-08-26 Mark Mitchell <mark@codesourcery.com>
2525 * pt.c (uses_template_parms): Handle IDENTIFIER_NODE.
2526 (type_dependent_expression_p): Allow BASELINKs whose associated
2527 functions are simply a FUNCTION_DECL.
2530 * cp-tree.h (build_vec_init): Adjust prototype.
2531 * init.c (perform_member_init): Adjust call to build_vec_init.
2532 (build_aggr_init): Likewise.
2533 (build_new_1): Do not call build_default_init for array types.
2534 (build_vec_init): Add explicit_default_init_p parameter. Perform
2535 default initialization of vector elements when set.
2536 * typeck.c (build_modify_expr): Adjust call to build_vec_init.
2538 2005-08-25 Nathan Sidwell <nathan@codesourcery.com>
2541 * typeck.c (build_x_unary_op): Make sure OFFSET_REF is not for a
2544 2005-08-24 Nathan Sidwell <nathan@codesourcery.com>
2547 * parser.c (cp_lexer_peek_nth_token): Relax assert.
2549 2005-08-23 Nathan Sidwell <nathan@codesourcery.com>
2552 * pt.c (tsubst_qualified_id): A SCOPE_REF can still remain.
2554 2005-08-22 James E Wilson <wilson@specifix.com>
2556 PR tree-optimization/23426
2557 * decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
2560 2005-08-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2563 * pt.c (push_template_decl_real): Return error_mark_node if the
2564 number of template parameters does not match previous definition.
2566 2005-08-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2569 * decl.c (require_complete_types_for_parms): Mark incomplete types
2572 2005-08-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2574 * parser.c (cp_parser_nth_token_starts_template_argument_list_p):
2575 Fix typo in leading comment.
2577 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2579 * name-lookup.c, ptree.c: Delete HOST_PTR_PRINTF.
2581 2005-08-15 Fariborz Jahanian <fjahanian@apple.com>
2583 * cp-tree.h (can_convert_arg, fn_type_unification): New argument.
2584 * call.c (add_template_candidate_real): Pass down 'flags' to
2585 fn_type_unification.
2586 (can_convert_arg): New 'flags' argument. Pass it to call to
2587 implicit_conversion instead of LOOKUP_NORMAL.
2588 (can_convert): Add LOOKUP_NORMAL to call to can_convert_arg.
2589 * class.c (resolve_address_of_overloaded_function): Ditto.
2590 (resolve_address_of_overloaded_function): Ditto.
2591 * decl.c (reshape_init, check_default_argument): Ditto.
2592 * typeck.c (build_ptrmemfunc): Ditto.
2593 * pt.c (type_unification_real): Add 'flags' argument.
2594 (fn_type_unification): Pass 'flags' to type_unification_real.
2595 (type_unification_real): Pass new 'flags' argument to call to
2598 2005-08-12 Giovanni Bajo <giovannibajo@libero.it>
2599 Nathan Sidwell <nathan@codesourcery.com>
2603 * pt.c (unify) <METHOD_TYPE>: Check this-pointer cv-qualifiers
2606 2005-08-12 Nathan Sidwell <nathan@codesourcery.com>
2609 Revert my 2005-07-08 patch
2610 * pt.c (type_unification_real): Remove is_method_argument and
2612 (fn_type_unification, unify): Adjust type_unification_real calls.
2614 2005-08-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2617 * decl2.c (grokfield): Check that method is not static before
2620 2005-08-11 Nathan Sidwell <nathan@codesourcery.com>
2623 * name-lookup.c (pushtag): Process the template type before
2624 altering the identifier lookup fields. Remove unreachable code
2625 creating an empty stub decl.
2627 2005-08-10 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2630 * decl.c (grokdeclarator): Reset storage_class after error.
2632 2005-08-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2635 * init.c (build_new_1): Check for empty candidate list.
2637 2005-08-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2640 * pt.c (tsubst) <case METHOD_TYPE>: Check for error_mark_node
2641 before calling build_exception_variant.
2643 2005-08-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2646 * pt.c (tsubst_decl) <case TEMPLATE_DECL>: Return ERROR_MARK_NODE
2647 if substitution of template args did not succeed.
2649 2005-08-06 Michael Matz <matz@suse.de>
2651 * method.c (use_thunk): Call init_insn_lengths.
2653 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
2656 * name-lookup.c (cp_emit_debug_info_for_using): Do nothing if
2657 sorrycount or errorcount are nonzero.
2659 2005-08-05 Mark Mitchell <mark@codesourcery.com>
2661 * name-lookup.c (pushtag): Remove accidental commit from:
2662 2004-12-21 Mark Mitchell <mark@codesourcery.com>
2664 * decl.c (grokdeclarator): Return error_mark_node, not
2665 void_type_node, to indicate errors.
2666 * parser.c (cp_parser_template_parameter_list): Robustify.
2667 (cp_parser_template_parameter): Likewise.
2669 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
2671 * class.c, decl.c, name-lookup.c, pt.c, typeck.c, typeck2.c:
2674 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
2676 * method.c: Fix a comment typo.
2678 2005-07-28 Mark Mitchell <mark@codesourcery.com>
2681 * call.c (add_builtin_candidate): Adjust for changes in
2682 representation of pointer-to-member types.
2684 2005-07-28 Mike Stump <mrs@apple.com>
2686 * pt.c (check_explicit_specialization): Add visibility logic.
2687 (lookup_template_class): Likewise.
2688 (instantiate_class_template): Likewise.
2690 2005-07-27 Devang Patel <dpatel@apple.com>
2692 * name-lookup.c (pushtag): Do no set DECL_IGNORED_P bit.
2694 2005-07-25 Ian Lance Taylor <ian@airs.com>
2696 * ptree.c (cxx_print_identifier): Print a leading space if the
2699 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2701 * call.c (convert_for_arg_passing): Check function pointers when
2702 -Wmissing-format-attribute is activated.
2703 * typeck.c (convert_for_assignment): Likewise.
2705 2005-07-22 Manfred Hollstein <mh@suse.com>
2707 * parser.c (cp_parser_declaration): Fix unitialised warnings.
2709 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2711 * class.c (build_base_path): Fix typo.
2713 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2716 * class.c (build_base_path): Convert BINFO_OFFSET to the correct type.
2718 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2720 * call.c: Fix comment typo(s).
2721 * cxx-pretty-print.h: Likewise.
2722 * name-lookup.c: Likewise.
2723 * parser.c: Likewise.
2725 2005-07-20 Douglas Gregor <doug.gregor@gmail.com>
2728 * semantics.c (perform_koenig_lookup): For dependent calls, just
2729 return the set of functions we've found so far. Later, it will be
2730 augmented by those found through argument-dependent lookup.
2731 * name-lookup.c (lookup_arg_dependent): Implement DR 164 by removing
2732 the optimization that skips namespaces where the functions were
2735 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
2737 Make CONSTRUCTOR use VEC to store initializers.
2738 * call.c (convert_default_arg): Update call to digest_init.
2739 * class.c (dump_class_hierarchy, dump_array): Update to cope with
2740 VEC in CONSTRUCTOR_ELTS.
2741 * cp-tree.h (EMPTY_CONSTRUCTOR_P): Likewise.
2742 (finish_compound_literal, digest_init): Update declaration.
2743 * decl.c (struct reshape_iter): New data type.
2744 (reshape_init_array): Rename to...
2745 (reshape_init_array_1): Update to cope with VEC in CONSTRUCTOR_ELTS.
2746 (reshape_init): Rewrite from scratch. Split parts into...
2747 (reshape_init_array, reshape_init_vector, reshape_init_class,
2748 reshape_init_r): New functions.
2749 (check_initializer): Update call to reshape_init. Remove obsolete
2751 (initialize_artificial_var, cp_complete_array_type): Update to cope
2752 with VEC in CONSTRUCTOR_ELTS.
2753 * decl2.c (grokfield): Update calls to digest_init.
2754 (mark_vtable_entries): Update to cope with VEC in CONSTRUCTOR_ELTS.
2755 * error.c (dump_expr_init_vec): New function.
2756 (dump_expr): Use dump_expr_init_vec.
2757 * init.c (build_zero_init, build_vec_init): Update to cope with VEC
2758 in CONSTRUCTOR_ELTS.
2759 (expand_default_init): Update call to digest_init.
2760 * parser.c (cp_parser_postfix_expression): Use a VEC for the
2762 (cp_parser_initializer_list): Build a VEC of initializers.
2763 * pt.c (tsubst_copy, tsubst_copy_and_build): Update to cope with VEC
2764 in CONSTRUCTOR_ELTS.
2765 * rtti.c (tinfo_base_init, generic_initializer, ptr_initializer,
2766 ptm_initializer, class_initializer, get_pseudo_ti_init): Use
2767 build_constructor_from_list instead of build_constructor.
2768 * semantics.c (finish_compound_literal): Update call to digest_init.
2769 * tree.c (stabilize_init): Update to cope with VEC in
2771 * typeck.c (build_ptrmemfunc1): Likewise.
2772 * typeck2.c: (cxx_incomplete_type_error, split_nonconstant_init_1):
2774 (store_init_value): Use build_constructor_from_list and update call
2776 (digest_init): Rewrite.
2777 (process_init_constructor): Rewrite from scratch. Split into...
2778 (process_init_constructor_array, picflag_from_initializer,
2779 process_init_constructor_record, process_init_constructor_union):
2781 (PICFLAG_ERRONEOUS, PICFLAG_NOT_ALL_CONSTANT, PICFLAG_NOT_ALL_SIMPLE):
2783 (build_functional_cast): Use build_constructor_from_list instead of
2786 2005-07-18 Mark Mitchell <mark@codesourcery.com>
2789 * cp-tree.h (instantiate_decl): Change prototype.
2790 * decl2.c (mark_used): Adjust accordingly.
2791 * pt.c (do_decl_instantiation): Likewise.
2792 (instantiate_class_member): Likewise.
2793 (instantiate_decl): Rename undefined_ok as expl_inst_class_mem_p.
2794 Clear DECL_INTERFACE_KNOWN for an explicitly instantiated template
2795 that has no definition available.
2796 (instantiate_pending_templates): Adjust call to instantiate_decl.
2798 2005-07-17 Mark Mitchell <mark@codesourcery.com>
2801 * cp-tree.h (DECL_TEMPLATE_INFO): Improve documentation.
2802 * decl.c (duplicate_decls): Re-register template specializations
2803 for functions that have DECL_TEMLPLATE_INFO, even if they do not
2804 have DECL_TEMPLATE_INSTANTIATION set.
2806 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2808 * call.c (diagnostic_fn_t): New.
2809 (build_temp, convert_like_real): Use diagnostic_fn_t.
2811 2005-07-15 Mark Mitchell <mark@codesourcery.com>
2814 * repo.c (repo_emit_p): Robustify.
2816 2005-07-14 Daniel Berlin <dberlin@dberlin.org>
2819 * tree.c (decl_linkage): Don't check DECL_COMDAT on CONST_DECL.
2821 2005-07-15 Mark Mitchell <mark@codesourcery.com>
2824 * call.c (implicit_conversion): Add c_cast_p parameter.
2825 (standard_conversion): Likewise. Allow conversions between
2826 differently-qualified pointer types when performing a C-style
2828 (add_function_candidate): Adjust callee.
2829 (build_builtin_candidate): Likewise.
2830 (build_user_type_conversion_1): Likewise.
2831 (conditional_conversion): Likewise.
2832 (can_convert_arg): Likewise.
2833 (can_convert_arg_bad): Likewise.
2834 (perform_implicit_conversion): Likewise.
2835 * cp-tree.h (comp_ptr_ttypes_const): Declare.
2836 * typeck.c (comp_ptr_ttypes_const): Give it external linkage.
2839 2005-07-12 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2840 Nathan Sidwell <nathan@codesourcery.com>
2843 * pt.c (tsubst_template_parms): Check for invalid non-type
2846 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
2848 * cp-lang.c (shadowed_var_for_decl, decl_shadowed_for_var_lookup,
2849 decl_shadowed_for_var_insert): Move over to cp-objcp-common.c.
2850 (cp_init_ts): Call init_shadowed_var_for_decl.
2851 Remove include of gt-cp-cp-lang.h.
2852 * cp-objcp-common.c (shadowed_var_for_decl,
2853 decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Moved from
2855 (init_shadowed_var_for_decl): New function to initialize
2856 shadowed_var_for_decl.
2857 Include gt-cp-cp-objcp-common.h.
2858 * Make-lang.in (gt-cp-lang.h): Remove.
2859 (gt-cp-cp-objcp-common.h): Add.
2860 (cp/cp-lang.o): Remove dependancy on gt-cp-lang.h.
2861 (cp/cp-objcp-common.o): Add dependancy on gt-cp-cp-objcp-common.h.
2862 * config-lang.in (gtfiles): Remove cp-lang.c and Add cp-objcp-common.c.
2863 * cp-tree (init_shadowed_var_for_decl): Add prototype.
2865 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
2867 * Make-lang.in: Add gt-cp-lang.h.
2869 * class.c (create_vtable_ptr): Stop setting DECL_ASSEMBLER_NAME on
2871 * config-lang.in: Add cp-lang.c to gtfiles.
2872 * cp-lang.c: Include hashtab.h.
2873 (cp_init_ts): New function.
2874 (LANG_HOOK_INIT_TS): Use macro.
2875 (decl_shadowed_for_var_lookup): New function.
2876 (decl_shadowed_for_var_insert): Ditto.
2877 * cp-tree.h (THUNK_FUNCTION_CHECK): Use decl_common.
2878 (NON_THUNK_FUNCTION_CHECK): Ditto.
2879 (DECL_NAMESPACE_ASSOCIATIONS): Use decl_non_common.
2880 (DECL_INIT_PRIORITY): Ditto.
2881 (DECL_HAS_SHADOWED_FOR_VAR_P): Ditto.
2882 (DECL_SHADOWED_FOR_VAR): Use hashtable.
2883 (SET_DECL_SHADOWED_FOR_VAR): Ditto.
2884 * decl.c (duplicate_decls): Update for new/updated structures.
2885 (poplevel): Use SET_DECL_SHADOWED_FOR_VAR.
2886 * decl2.c (start_static_initialization_or_destruction): Deal with
2888 * pt.c (tsubst_decl): Check TS_DECL_WRTL before doing
2890 * tree.c (handle_init_priority_attribute): Handle priority.
2892 2005-07-08 Nathan Sidwell <nathan@codesourcery.com>
2895 * pt.c (type_unification_real): Add is_method argument. Use it
2896 for this pointer unification.
2897 (fn_type_unification): Adjust type_unification_real call.
2900 2005-07-07 Nathan Sidwell <nathan@codesourcery.com>
2902 * pt.c (type_unification_real): Remove allow_incomplete argument.
2903 Remove unreachable code.
2904 (fn_type_unification): Adjust call to type_unification_real.
2907 2005-07-05 Paolo Bonzini <bonzini@gnu.org>
2909 * Makefile.in (class.o, decl2.o): Adjust dependencies.
2910 * class.c: Include tree-dump.h.
2911 * decl2.c: Include tree-dump.h.
2913 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2915 * dump.c: Use dump_string_field.
2917 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
2919 * cp-tree.h (GCC_DIAG_STYLE): #undef before defining. Change
2920 minimum GCC version for format checking to 4.1.
2922 2005-07-02 Kazu Hirata <kazu@codesourcery.com>
2924 * Make-lang.in (cc1plus-checksum.c): Use
2925 build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
2927 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
2929 * name-lookup.c, parser.c: Use %q, %< and %> to quote in
2932 2005-07-02 Zack Weinberg <zack@codesourcery.com>
2933 Joseph S. Myers <joseph@codesourcery.com>
2935 * error.c (location_of): Add comment.
2936 (locate_error, cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
2937 * cp-tree.h (cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
2938 * call.c, class.c, decl.c, decl2.c, friend.c, init.c,
2939 name-lookup.c, parser.c, pt.c, search.c, semantics.c, typeck.c,
2940 typeck2.c: Use '+' flag instead of %J, cp_error_at, cp_warning_at
2941 or cp_pedwarn_at. Mark up some diagnostic strings with N_.
2943 2005-06-30 Daniel Berlin <dberlin@dberlin.org>
2945 * decl.c (require_complete_types_for_parms): Call relayout_decl
2946 instead of layout_decl.
2948 2005-06-30 Zack Weinberg <zack@codesourcery.com>
2949 Jakub Jelinek <jakub@redhat.com>
2951 * cp-lang.c: No need to include cxx-pretty-print.h.
2952 * error.c (cp_printer): Update signature. No need to process
2954 (print_instantiation_partial_context): Output last newline
2955 with pp_base_newline.
2956 * Make-lang.in: Update dependencies.
2958 2005-06-30 Steven Bosscher <stevenb@suse.de>
2960 * decl.c (start_decl): Replace DECL_THREAD_LOCAL with
2961 DECL_THREAD_LOCAL_P.
2962 (cp_finish_decl): Likewise.
2963 (grokvardecl): Set the default DECL_TLS_MODEL here.
2965 2005-06-28 Joseph S. Myers <joseph@codesourcery.com>
2967 * cvt.c (ocp_convert): Use invalid_conversion hook.
2968 * typeck.c (build_binary_op): Use invalid_binary_op hook.
2969 (build_unary_op): Use invalid_unary_op hook.
2971 2005-06-28 Paul Brook <paul@codesourcery.com>
2973 * Make-lang.in (cp/except.o): Depend on $(TARGET_H)
2974 * except.c: Include target.h.
2975 (init_exception_processing): Initialize unwind_resume_libfunc.
2976 * doc/tm.texi: Document TARGET_ASM_TTYPE
2978 2005-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2980 * call.c (build_over_call): Pass in named argument list to
2981 `check_function_arguments'.
2982 * typeck.c (build_function_call): Likewise.
2984 2005-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2986 * cp-tree.h (lang_check_failed): Add noreturn attribute.
2988 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
2990 * all files: Update FSF address in copyright headers.
2992 2005-06-23 Jason Merrill <jason@redhat.com>
2995 * semantics.c (simplify_aggr_init_expr): Use
2996 CALL_EXPR_RETURN_SLOT_OPT, not CALL_EXPR_HAS_RETURN_SLOT_ADDR.
2998 2005-06-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3000 * pt.c (register_specialization): Remove superfluous assertion.
3002 2005-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3004 * call.c (convert_like_real): Add format attribute.
3005 * typeck.c (check_for_casting_away_constness,
3006 build_static_cast_1): Likewise.
3007 * typeck2.c (readonly_error, cxx_incomplete_type_diagnostic):
3010 2005-06-17 Geoffrey Keating <geoffk@apple.com>
3013 * pt.c (type_unification_real): Apply template type deduction even
3014 to procedure parameters that are not dependent on a template
3017 2005-06-16 Nathan Sidwell <nathan@codesourcery.com>
3019 * rtti.c (get_tinfo_decl): Avoid caching tinfo_descs when it might
3021 (create_pseudo_type_info): First parameter is an int.
3023 2005-06-15 Nathan Sidwell <nathan@codesourcery.com>
3026 * error.c (dump_expr) <COMPONENT_REF case>: Check DECL_NAME is not
3029 * Make-lang.in: Reformat some long lines.
3030 (gt-cp-rtti.h): New target.
3031 (cp/rtti.o): Add dependency.
3032 * config-lang.in (gtfiles): Add cp/rtti.c.
3033 * cp-tree.h (CPTI_TI_DESC_TYPE, CPTI_BLTN_DESC_TYPE,
3034 CPTI_PTR_DESC_TYPE, CPTI_ARY_DESC_TYPE, CPTI_FUNC_DESC_TYPE,
3035 CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE,
3036 CPTI_SI_CLASS_DESC_TYPE, CPTI_VMI_CLASS_DESC_TYPE,
3037 CPTI_PTM_DESC_TYPE, CPTI_BASE_DESC_TYPE): Remove.
3038 (ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
3039 ary_desc_type_node, func_desc_type_node, enum_desc_type_node,
3040 class_desc_type_node, si_class_desc_type_node,
3041 vmi_class_desc_type_node, ptm_desc_type_node,
3042 base_desc_type_node): Remove.
3043 * decl.c: Adjust documentation of global trees.
3044 * rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL,
3045 TINFO_REAL_NAME): Remove.
3046 (struct tinfo_s): New.
3047 (enum tinfo_kind): New.
3049 (get_tinfo_decl): Adjust use of tinfo descriptor.
3050 (tinfo_base_init, generic_initializer, ptr_initializer,
3051 ptm_initializer, class_initializer): Likewise.
3052 (get_pseudo_ti_init): Take descriptor index. Adjust.
3053 (create_pseudo_type_info): Likewise.
3054 (get_pseudo_ti_desc): Return descriptor index. Adjust.
3055 (create_tinfo_types): Adjust use of create_pseudo_type_info.
3056 (emit_tinfo_decl): Adjust use of tinfo descriptor.
3058 2005-06-14 Roger Sayle <roger@eyesopen.com>
3060 * decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
3062 2005-06-13 Geoffrey Keating <geoffk@apple.com>
3064 * Make-lang.in (c++.install-man): Doesn't really depend on installdirs.
3065 (rule for installing g++.1 manpage): Does depend on installdirs.
3067 2005-06-13 Nathan Sidwell <nathan@codesourcery.com>
3070 * decl.c (cp_finish_decl): Clear runtime runtime initialization if
3071 in-class decl's initializer is bad.
3074 * parser.c (struct cp_parser): Document that scope could be
3076 (cp_parser_diagnose_invalid_type_name): Cope with error_mark for
3078 (cp_parser_nested_name_specifier): Return NULL_TREE on error.
3079 (cp_parser_postfix_expression): Deal with null or error_mark
3081 (cp_parser_elaborated_type_specifier): Adjust
3082 cp_parser_nested_name_specifier call.
3084 * parser (cp_parser_skip_to_end_of_block_or_statement): Cleanup.
3086 2005-06-12 Roger Sayle <roger@eyesopen.com>
3089 * error.c (dump_expr): UNARY_PLUS_EXPR need not handle void types.
3090 Treat CONVERT_EXPR identically to NOP_EXPR.
3092 2005-06-10 Aldy Hernandez <aldyh@redhat.com>
3095 * cvt.c (build_expr_type_conversion): Same.
3096 * typeck.c (build_binary_op): Handle vectors.
3097 (common_type): Same.
3098 (type_after_usual_arithmetic_conversions): Same.
3100 2005-06-08 Nathan Sidwell <nathan@codesourcery.com>
3103 * cp-tree.def (USING_DECL): Update documentation.
3104 * cp-tree.h (DECL_DEPENDENT_P): New.
3105 (USING_DECL_DECLS, USING_DECL_SCOPE): New.
3106 * class.c (handle_using_decl): Move most of the processing to ...
3107 * name-lookup.c (do_class_using_decl): ... here. Make stricter.
3108 (push_using_decl): Use USING_DECL_SCOPE.
3109 (cp_emit_debug_info_for_using): Make extern.
3110 * cxx-pretty-print.c (pp_cxx_statement) <USING_DECL case>: Adjust.
3111 * name-lookup.h (cp_emit_debug_info_for_using): Declare.
3112 * pt.c (tsubst_decl) <USING_DECL case>: Use do_class_using_decl
3114 (tsubst_expr): Use USING_DECL_SCOPE.
3115 * search.c (lookup_field_1): Use DECL_DEPENDENT_P.
3116 * semantics.c (finish_member_declaration): Likewise.
3118 2005-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3121 * pt.c (tsubst): Reject pointer-to-member of type void.
3124 * parser.c (cp_parser_label_declaration): Deal with invalid/missing
3127 2005-06-07 Nathan Sidwell <nathan@codesourcery.com>
3129 * cp-tree.def (DEFAULT_ARG): Adjust documentation.
3130 * cp-tree.h (DEFARG_INSTANTIATIONS): New.
3131 (struct tree_default_arg): Add instantiations member.
3132 * parser.c (cp_parser_late_parsing_default_args): Adjust to use a
3134 * pt.c (tsubst_arg_types): Likewise.
3136 * parser.c (cp_parser_late_parsing_default_args): Fix overeager
3137 assert in previous patch.
3139 2005-06-06 Jakub Jelinek <jakub@redhat.com>
3141 * error.c (locate_error): Use gmsgid instead of msgid for argument
3143 (cp_error_at, cp_warning_at, cp_pedwarn_at): Likewise.
3145 2005-06-06 Nathan Sidwell <nathan@codesourcery.com>
3148 * cp-tree.def (DEFAULT_ARG): Document TREE_CHAIN use.
3149 * parser.c (cp_parser_late_parsing_default_args): Propagate parsed
3150 argument to any early instantiations.
3151 * pt.c (tsubst_arg_types): Chain early instantiation of default arg.
3154 * cp-tree.h (add_method): Add using_decl parameter.
3155 * class.c (add_method): Add using_decl parameter. Adjust error
3157 (handle_using_decl): Pass the using decl to add_method.
3158 (clone_function_decl): Adjust add_member calls.
3159 * decl2.c (check_classfn): Likewise.
3160 * method.c (lazily_declare_fn): Likewise.
3161 * semantics.c (finish_member_declaration): Likewise.
3163 * method.c (synthesize_method): Use inform, not warning.
3165 2005-06-06 Hans-Peter Nilsson <hp@axis.se>
3167 * config-lang.in (target_libs): Remove target-gperf.
3169 2005-06-05 Mark Mitchell <mark@codesourcery.com>
3172 * cp-tree.h (DECL_IS_BUILTIN_CONSTANT_P): New macro.
3173 * parser.c (cp_parser_postfix_expression): Allow non-constant
3174 expressions as arguments to __builtin_constant_p.
3175 * tree.c (builtin_valid_in_constant_expr_p): Use
3176 DECL_IS_BUILTIN_CONSTANT_P.
3178 2005-06-03 Mark Mitchell <mark@codesourcery.com>
3181 * typeck.c (casts_away_constness_r): Do not drop cv-qualifiers on
3182 the pointed-to type for a pointer-to-member.
3185 * cp-tree.h (grok_op_properties): Remove friendp parameter.
3186 * decl.c (grokfndecl): Adjust call.
3187 (grok_op_properties): Determine the class of which the function is
3188 a member by looking at its DECL_CONTEXT, not current_class_type.
3189 * pt.c (tsubst_decl): Adjust call to grok_op_properties.
3191 2005-06-02 Nathan Sidwell <nathan@codesourcery.com>
3193 * method.c (synthesize_method): Add addtional arg to warning call.
3196 * Make-lang.in (method.o): Add diagnostic.h
3197 * decl.c (start_preparsed_function): Use decl's location for file
3199 * decl2.c (cp_finish_file): Set input_location before synthesizing
3201 (mark_used): When deferring a synthesized function, save current
3202 location. Do not set function's location when actually
3204 * method.c: #include diagnostic.h.
3205 (synthesize_method): Set the functions source location. Show
3206 needed location if errors are emitted.
3208 * decl.c (start_decl): Simplify specialization handling. Remove
3209 unneeded CLASSTYPE_TEMPLATE_INSTANTIATION check.
3210 * mangle.c (discriminator_for_local_entity): Use VEC_index.
3213 * decl.c (duplicate_decls): Copy all of DECL_USE_TEMPLATE.
3216 * name-lookup.c (pushtag): Push local class even in a template.
3218 2005-05-31 Nathan Sidwell <nathan@codesourcery.com>
3221 * init.c (integral_constant_value): Check the type of the
3222 initializer, not the decl.
3224 2005-05-30 Mark Mitchell <mark@codesourcery.com>
3227 * name-lookup.c (do_nonmember_using_decl): Ignore builtin
3228 functions, even when the used name is not a function.
3230 2005-05-30 Kazu Hirata <kazu@cs.umass.edu>
3232 * operators.def, optimize.c: Update copyright.
3234 2005-05-28 Mark Mitchell <mark@codesourcery.com>
3237 * call.c (standard_conversion): Permit conversions to complex
3238 types if conversion to the corresponding scalar type would be
3242 * method.c (implicitly_declare_fn): Clear processing_template_decl
3243 when generating implicit declaration.
3245 2005-05-27 Mark Mitchell <mark@codesourcery.com>
3248 * typeck.c (get_member_function_from_ptrfunc): Do not attempt
3249 conversions to base classes of incomplete types.
3251 2005-05-27 Ian Lance Taylor <ian@airs.com>
3253 * semantics.c (add_stmt): Add C++ frontend specific version.
3254 * cp-tree.h (STMT_IS_FULL_EXPR_P): Define.
3255 (stmts_are_full_exprs_p): Declare.
3257 2005-05-27 Roger Sayle <roger@eyesopen.com>
3258 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3260 * cp-tree.def (UNARY_PLUS_EXPR): New C++ unary tree code.
3261 * parser.c (cp_parser_unary_expression): Use UNARY_PLUS_EXPR instead
3263 (cp_parser_unary_expression): Likewise.
3264 * typeck.c (build_unary_op): Likewise.
3265 * call.c (add_builtin_candidate, build_new_op): Likewise.
3266 * error.c (dump_expr): Likewise.
3267 * pt.c (tsubst_copy, tsubst_copy_and_build): Likewise.
3268 * decl.c (ambi_op_p, grok_op_properties): Likewise.
3269 * dump.c (dump_op): Likewise.
3270 * lex.c (init_operators): Likewise.
3271 * operators.def ("+"): Likewise.
3272 * cp-gimplify.c (cp_gimplify_expr): Handle UNARY_PLUS_EXPR like a
3273 conversion, if the result and argument types differ.
3274 * tree.c (fold_if_not_in_template): Fold UNARY_PLUS_EXPR much
3275 like a NOP_EXPR when !processing_template_decl.
3277 * cxx-pretty-print.c (pp_cxx_cast_expression): Prototype.
3278 (pp_cxx_unary_expression): Handle new UNARY_PLUS_EXPR tree code.
3280 2005-05-27 Nathan Sidwell <nathan@codesourcery.com>
3283 * typeck.c (get_delta_difference): Cope with incomplete but equal
3284 classes. Reorder if.
3287 * parser.c (cp_parser_late_parsing_for_member): Disable access
3288 checking for template functions.
3290 2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3293 * pt.c (redeclare_class_template): Change error message according
3294 to coding conventions.
3296 2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3298 * call.c (build_op_delete_call): Fix quoting in error message.
3300 2005-05-25 Richard Henderson <rth@redhat.com>
3303 * cp-tree.h (make_alias_for): Declare.
3304 * decl2.c (build_java_method_aliases): New.
3305 (cp_finish_file): Call it.
3306 * method.c (make_alias_for): Split out from ...
3307 (make_alias_for_thunk): ... here.
3309 2005-05-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3312 * semantics.c (finish_id_expression): Fix quoting in error message.
3314 2005-05-25 DJ Delorie <dj@redhat.com>
3316 * decl.c (duplicate_decls): Move warning control from if() to
3318 * name-lookup.c (parse_using_directive): Likewise.
3319 * parser.c (cp_parser_elaborated_type_specifier): Likewise.
3320 (cp_parser_init_declarator): Likewise.
3321 * tree.c (handle_com_interface_attribute): Likewise.
3323 2005-05-24 Ziemowit Laski <zlaski@apple.com>
3325 * class.c (layout_class_type): Do not issue C++ ABI warnings
3327 * decl.c (objc_mark_locals_volatile): Streamline by calling
3328 objc_volatilize_decl().
3329 * parser.c (cp_parser_objc_message_expression): Allow simple
3330 type specifiers (instead of merely type names) as message
3332 * pt.c (template_args_equal): Do not call objc_comptypes().
3333 * typeck.c (composite_pointer_type): If both pointers are
3334 ObjC-esque, arbitrarily choose the first; do not call
3336 (comptypes): Do not call objc_comptypes().
3337 (convert_for_assignment): Call objc_compare_types().
3338 (comp_ptr_ttypes_real): Call objc_type_quals_match() before
3339 concluding that types do not match.
3341 2005-05-24 Andrew Pinski <pinskia@physics.uc.edu>
3344 * optimize.c (update_cloned_parm): Copy the TYPE also from the
3347 2005-05-19 Jakub Jelinek <jakub@redhat.com>
3350 * decl.c (grokdeclarator): Fix "storage class specified for"
3353 2005-05-19 Kazu Hirata <kazu@cs.umass.edu>
3355 * parser.c: Fix comment typos.
3357 2005-05-18 Geoffrey Keating <geoffk@apple.com>
3359 * Make-lang.in (cc1plus-dummy): New.
3360 (cc1plus-checksum.c): New.
3361 (cc1plus-checksum.o): New.
3362 (cc1plus): Add cc1plus-checksum.o.
3364 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
3367 * decl2.c (determine_visibility): Don't set visibility to
3368 hidden if it has been set explicitly by user.
3370 2005-05-17 Ziemowit Laski <zlaski@apple.com>
3371 Mike Stump <mrs@apple.com>
3373 Yet more Objective-C++...
3375 * cp-objcp-common.h (cxx_get_alias_set): Move from
3377 (cxx_warn_unused_global_decl): Likewise.
3378 (cp_expr_size): Likewise.
3379 (cp_tree_size): Likewise.
3380 (cp_var_mod_type_p): Likewise.
3381 (cxx_initialize_diagnostics): Likewise.
3382 (cxx_types_compatible_p): Likewise.
3383 * cp-tree.h: to here.
3385 * lex.c (D_OBJC): Add.
3386 (init_reswords): Add.
3387 * Make-lang.in (cp/pt.o): Add cp/cp-objcp-common.h.
3388 * parser.c: Add c-common.h include.
3389 * pt.c: Add c-common.h and cp-objcp-common.h includes.
3390 (template_args_equal): Use objc_comptypes as well.
3391 (tsubst_copy_and_build): Use objcp_tsubst_copy_and_build as well.
3392 * semantics.c (do_poplevel): Remove static.
3394 * decl.c (objc_mark_locals_volatile): Don't change decls that are
3396 * decl2.c (generate_ctor_or_dtor_function): Add code to initialize
3397 Objective C++ early enough.
3398 * lex.c (struct resword reswords): Add Objective-C++ support.
3399 * parser.c (cp_lexer_get_preprocessor_token): Add Objective-C++.
3400 (cp_parser_objc_message_receiver): Add.
3401 (cp_parser_objc_message_args): Likewise.
3402 (cp_parser_objc_message_expression): Likewise.
3403 (cp_parser_objc_encode_expression): Likewise.
3404 (cp_parser_objc_defs_expression): Likewise.
3405 (cp_parser_objc_protocol_expression): Likewise.
3406 (cp_parser_objc_selector_expression): Likewise.
3407 (cp_parser_objc_expression): Likewise.
3408 (cp_parser_objc_visibility_spec): Likewise.
3409 (cp_parser_objc_method_type): Likewise.
3410 (cp_parser_objc_protocol_qualifiers): Likewise.
3411 (cp_parser_objc_typename): Likewise.
3412 (cp_parser_objc_selector_p): Likewise.
3413 (cp_parser_objc_selector): Likewise.
3414 (cp_parser_objc_method_keyword_params): Likewise.
3415 (cp_parser_objc_method_tail_params_opt): Likewise.
3416 (cp_parser_objc_interstitial_code): Likewise.
3417 (cp_parser_objc_method_signature): Likewise.
3418 (cp_parser_objc_method_prototype_list): Likewise.
3419 (cp_parser_objc_method_definition_list): Likewise.
3420 (cp_parser_objc_class_ivars): Likewise.
3421 (cp_parser_objc_identifier_list): Likewise.
3422 (cp_parser_objc_alias_declaration): Likewise.
3423 (cp_parser_objc_class_declaration): Likewise.
3424 (cp_parser_objc_protocol_declaration): Likewise.
3425 (cp_parser_objc_protocol_refs_opt): Likewise.
3426 (cp_parser_objc_superclass_or_category): Likewise.
3427 (cp_parser_objc_class_interface): Likewise.
3428 (cp_parser_objc_class_implementation): Likewise.
3429 (cp_parser_objc_end_implementation): Likewise.
3430 (cp_parser_objc_declaration): Likewise.
3431 (cp_parser_objc_try_catch_finally_statement): Likewise.
3432 (cp_parser_objc_synchronized_statement): Likewise.
3433 (cp_parser_objc_throw_statement): Likewise.
3434 (cp_parser_objc_statement): Likewise.
3435 (cp_parser_primary_expression): Add Objective-C++.
3436 (cp_parser_statement): Likewise.
3437 (cp_parser_declaration): Likewise.
3438 (cp_parser_simple_type_specifier): Likewise.
3439 (cp_parser_type_name): Likewise.
3440 (cp_parser_parameter_declaration_list): Likewise.
3441 (cp_parser_member_declaration) Likewise.
3442 * tree.c: Include debug.h.
3443 * typeck.c (composite_pointer_type): Add Objective-C++ support.
3444 (finish_class_member_access_expr): Likewise.
3445 (build_function_call): Allow objc to rewrite FUNCTION_DECLs.
3446 (build_modify_expr): Allow objc to generate write barriers.
3448 * Make-lang.in (cp/tree.o): Add debug.h.
3449 * tree.c (lvalue_p_1, case CONST_DECL): Add.
3451 2005-05-18 Jan Hubicka <jh@suse.cz>
3453 * method.c: Include tree-pass.h
3454 (use_thunk): Lower body before expanding.
3456 2005-05-17 Jakub Jelinek <jakub@redhat.com>
3459 * decl.c (maybe_deduce_size_from_array_init): Call
3460 cp_apply_type_quals_to_decl after completing array type.
3462 2005-05-16 Richard Henderson <rth@redhat.com>
3464 * decl.c (build_library_fn_1): Move setting TREE_NOTHROW ...
3465 (build_library_fn): ... here.
3467 2005-05-12 Ian Lance Taylor <ian@airs.com>
3469 * cp-tree.h (cp_stmt_codes): Don't define.
3470 (statement_code_p): Declare.
3471 (STATEMENT_CODE_P): Define.
3472 * lex.c (statement_code_p): Define.
3473 (cxx_init): Use actual codes in stmt_codes initializer, not
3474 cp_stmt_codes macro. Initialize statement_code_p directly, rather
3475 than using INIT_STATEMENT_CODES.
3477 2005-05-09 Mark Mitchell <mark@codesourcery.com>
3479 * typeck.c (build_unary_op): Do not resort to address arithmetic
3480 when taking the address of a COMPONENT_REF.
3482 2005-05-08 Kazu Hirata <kazu@cs.umass.edu>
3484 * class.c (vtbl_init_data_s): Change the type of fns to
3486 (build_vtbl_initializer, add_vcall_offset, add_vcall_offset):
3487 Use VEC instead of VARRAY.
3489 2005-05-07 Richard Sandiford <rsandifo@redhat.com>
3491 * mangle.c: Remove a reference to the MIPS -mint64 option.
3493 2005-05-07 Kazu Hirata <kazu@cs.umass.edu>
3495 * decl.c (wrapup_globals_for_namespace): Use VEC instead of
3497 * name-lookup.c (add_decl_to_level, begin_scope): Likewise.
3498 * name-lookup.h (cp_binding_level): Change the type of
3499 static_decls to VEC(tree,gc)*.
3501 * mangle.c (globals): Change the type of substitutions to
3503 (dump_substitution_candidates, add_substitution,
3504 find_substitution, finish_mangling, init_mangle): Use VEC
3507 2005-05-06 Kazu Hirata <kazu@cs.umass.edu>
3509 * decl2.c (spew_debug): Remove.
3511 * decl2.c (ssdf_decls, start_static_storage_duration_function,
3512 generate_ctor_or_dtor_function): Use VEC instead of VARRAY.
3514 * decl2.c (pending_statics, note_vague_linkage_var,
3515 cp_finish_file): Use VEC instead of VARRAY.
3516 (pending_statics_used): Remove.
3518 2005-05-05 Kazu Hirata <kazu@cs.umass.edu>
3520 * decl2.c (deferred_fns, note_vague_linkage_fn,
3521 cp_finish_file): Use VEC instead of VARRAY.
3523 2005-05-05 Mark Mitchell <mark@codesourcery.com>
3526 * pt.c (build_non_dependent_expr): Use is_overloaded_fn.
3528 2005-05-05 Kazu Hirata <kazu@cs.umass.edu>
3530 * pt.c: Fix a comment typo.
3532 2005-05-04 Kazu Hirata <kazu@cs.umass.edu>
3534 * cp-tree.h (language_function): Change the type of
3535 x_local_names to VEC.
3536 * decl.c (push_local_name): Adjust uses of local_names.
3538 2005-05-03 Kazu Hirata <kazu@cs.umass.edu>
3540 * friend.c, lex.c, mangle.c, repo.c: Update copyright.
3542 2005-05-02 Kazu Hirata <kazu@cs.umass.edu>
3544 * class.c (local_classes, init_class_processing): Use VEC
3546 * cp-tree.h (local_classes): Likewise.
3547 * mangle.c (discriminator_for_local_entity): Likewise.
3548 * name-lookup.c (pushtag): Likewise.
3550 * class.c (current_lang_depth, push_lang_context,
3551 pop_lang_context): Use VEC instead of VARRAY.
3552 * cp-tree.h (saved_scope): Use VEC for lang_base instead of
3554 * name-lookup.c (push_to_top_level): Use VEC instead of
3557 2005-05-02 Paolo Bonzini <bonzini@gnu.org>
3559 * semantics.c (finish_call_expr): Call resolve_overloaded_builtin
3560 for BUILT_IN_MD built-ins.
3562 2005-05-02 Michael Matz <matz@suse.de>
3565 * cp-tree.h (cp_tree_index): Remove CPTI_NULL, to be defined in C
3567 (null_node): Remove.
3568 * lex.c (cxx_init): Move null_node initialisation to C common frontend.
3570 2005-04-25 Ian Lance Taylor <ian@airs.com>
3572 * cp-tree.def: Add EXPR_STMT.
3573 * cp-tree.h (cp_stmt_codes): Add EXPR_STMT.
3574 (EXPR_STMT_EXPR): Define.
3575 * cp-gimplify.c: Include "flags.h".
3576 (gimplify_expr_stmt): New static function.
3577 (cp_gimplify_expr): Handle EXPR_STMT.
3578 * cxx-pretty-print.c (pp_cxx_statement): Use pp_cxx_expression
3579 rather than pp_expression.
3580 (pp_cxx_statement): Handle EXPR_STMT.
3581 * dump.c (cp_dump_tree): Handle EXPR_STMT.
3582 * lex.c (cxx_init): Don't use c_common_stmt_codes in stmt_codes
3585 2005-04-25 Andrew Pinski <pinskia@physics.uc.edu>
3588 * rtti.c (ifnonnull): Cast the zero comparison operand
3589 to the correct type.
3591 2005-04-24 Jakub Jelinek <jakub@redhat.com>
3594 * class.c: Include cgraph.h.
3595 (cp_fold_obj_type_ref): Set node->local.vtable_method.
3596 * Make-lang.in (cgraph.o): Depend on $(CGRAPH_H).
3598 2005-04-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
3600 * mangle.c (write_builtin_type): Handle integer types which are
3601 not one of the shared integer type nodes and emit a "vendor
3602 extended builtin type" with an encoding in the form of "u5int96".
3604 2005-04-24 Ian Lance Taylor <ian@airs.com>
3606 * cp-tree.def (USING_STMT): Change class to tcc_statement.
3607 (TRY_BLOCK, EH_SPEC_BLOCK, HANDLER, CLEANUP_STMT): Likewise.
3608 (IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT): Likewise.
3609 (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
3611 2005-04-23 DJ Delorie <dj@redhat.com>
3613 * call.c, class.c, cvt.c, decl.c, decl2.c, except.c, friend.c,
3614 init.c, lex.c, mangle.c, method.c, name-lookup.c, parser.c,
3615 repo.c, rtti.c, tree.c, typeck.c, typeck2.c: Adjust warning()
3618 2005-04-22 Per Bothner <per@bothner.com>
3620 * decl.c (make_rtl_for_nonlocal_decl): Don't try get_fileinfo if
3621 input_filename is NULL, as it is for (say) __PRETTY_FUNCTION__.
3623 2005-04-22 Alexandre Oliva <aoliva@redhat.com>
3626 * name-lookup.c (push_overloaded_decl): Do not overload with
3627 non-duplicate anticipated built-in.
3629 2005-04-21 Kazu Hirata <kazu@cs.umass.edu>
3631 * cp-tree.h (THROW_NAME, AUTO_VTABLE_NAME, AUTO_TEMP_FORMAT,
3632 VTABLE_BASE, VTABLE_NAME_PREFIX, STATIC_NAME_FORMAT): Remove.
3634 2005-04-21 Nathan Sidwell <nathan@codesourcery.com>
3636 * cp-tree.h: Adjust for new VEC API.
3637 Define VEC(tree_pair_s,gc).
3638 (struct save_scope): Adjust.
3639 (struct lang_type_class): Adjust.
3640 (unemitted_tinfo_decls): Adjust.
3641 * class.c (add_method, resort_type_method_vec,
3642 finish_struct_methods, struct find_final_overrider_data,
3643 dfs_find_final_overrider_pre, find_final_overrider,
3644 get_vcall_index, warn_hidden, walk_subobject_offsets,
3645 check_methods, fixup_inline_methods, end_of_class,
3646 warn_about_ambiguous_bases, finish_struct, build_vtbl_initializer,
3647 add_vcall_offset): Adjust.
3648 * decl.c (xref_basetypes, finish_method): Adjust.
3649 * decl2.c (check_classfn): Adjust.
3650 * init.c (sort_mem_initializers, push_base_cleanups): Adjust.
3651 * method.c (do_build_copy_constructor): Adjust.
3652 * name-lookup.c (new_class_binding, store_binding,
3653 store_bindings, store_class_bindings): Adjust.
3654 * name-lookup.h: Define VEC(cxx_saved_binding,gc),
3655 VEC(cp_class_binding,gc).
3656 (struct cp_binding_level): Adjust.
3657 * parser.c: Define VEC(cp_token_position,heap).
3658 (struct cp_lexer): Adjust.
3659 (cp_lexer_new_main, cp_lexer_new_from_tokens, cp_lexer_destroy,
3660 cp_lexer_save_tokens): Adjust.
3661 * pt.c (retrieve_specialization,
3662 check_explicit_specialization): Adjust.
3663 * rtti.c (unemitted_tinfo_decls): Adjust.
3664 (init_rtti_processing, get_tinfo_decl, get_pseudo_ti_init,
3665 get_pseudo_ti_desc): Adjust.
3666 * search.c (dfs_access_in_type, lookup_conversion_operator,
3667 lookup_fnfields_1, dfs_walk_once, dfs_walk_once_accessible,
3668 dfs_get_pure_virtuals, lookup_conversions_r, binfo_for_vbase): Adjust.
3669 * semantics.c: Define VEC(deferred_access,gc).
3670 (push_deferring_access_checks): Adjust.
3671 * typeck2.c (abstract_virtuals_error): Adjust.
3673 2005-04-20 Ian Lance Taylor <ian@airs.com>
3675 * cp-tree.def: Add STMT_EXPR.
3676 * cp-tree.h (STMT_EXPR_NO_SCOPE): Define.
3677 (STMT_EXPR_STMT): Define.
3678 * cxx-pretty-print.c (pp_cxx_primary_expression): Handle
3680 (pp_cxx_expression): Likewise.
3681 (pp_cxx_statement): Call pp_cxx_statement, not pp_statement.
3682 * dump.c (cp_dump_tree): Handle STMT_EXPR.
3684 2005-04-18 Kazu Hirata <kazu@cs.umass.edu>
3686 * decl.c (expand_static_init): Call build2 and build3 instead
3689 * cp-tree.h (VPTR_NAME, VPTR_NAME_P): Remove.
3691 2005-04-17 Ian Lance Taylor <ian@airs.com>
3693 * cp-tree.def: Add SIZEOF_EXPR, ARROW_EXPR and ALIGNOF_EXPR.
3694 * cxx-pretty-print.c (pp_cxx_postfix_expression): Handle
3696 (pp_cxx_unary_expression): Handle SIZEOF_EXPR and ALIGNOF_EXPR.
3697 (pp_cxx_expression): Handle ARROW_EXPR, SIZEOF_EXPR, and
3699 * typeck.c (cxx_sizeof_or_alignof_type): Update call to
3700 c_sizeof_or_alignof_type for change in parameter type.
3702 2005-04-16 Mark Mitchell <mark@codesourcery.com>
3705 * typeck.c (cxx_sizeof_or_alignof_type): Check whether the type to
3706 which sizeof/alignof is dependent, rather than just whether we are
3707 processing_template_decl.
3709 2005-04-17 Kazu Hirata <kazu@cs.umass.edu>
3711 * cp-tree.h (LOOKUP_GLOBAL): Remove.
3712 (LOOKUP_ONLYCONVERTING, DIRECT_BIND, LOOKUP_NO_CONVERSION,
3713 LOOKUP_DESTRUCTOR, LOOKUP_NO_TEMP_BIND, LOOKUP_PREFER_TYPES,
3714 LOOKUP_PREFER_NAMESPACES, LOOKUP_CONSTRUCTOR_CALLABLE): Adjust
3717 2005-04-15 Richard Henderson <rth@redhat.com>
3720 * semantics.c (finish_call_expr): Call resolve_overloaded_builtin.
3722 2005-04-15 Kazu Hirata <kazu@cs.umass.edu>
3724 * cp-tree.h (lang_type_class): Remove redefined. Move
3725 java_interface into where redefined was. Increment the width
3727 (TYPE_REDEFINED): Remove.
3729 2005-04-14 Kazu Hirata <kazu@cs.umass.edu>
3731 * cp-tree.h (SET_TMPL_ARG, ENUM_TI_TEMPLATE, ENUM_TI_ARGS,
3732 CLASSTYPE_TEMPLATE_LEVEL): Remove.
3734 2005-04-11 Mark Mitchell <mark@codesourcery.com>
3736 * decl2.c (determine_visibility): Don't use export_class_data.
3737 (import_export_decl): Honor TARGET_CXX_CLASS_DATA_ALWAYS_WEAK and
3738 TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY.
3740 2005-04-09 Kazu Hirata <kazu@cs.umass.edu>
3742 * cp-tree.h (cxx_alignof): Remove.
3744 * cp-tree.h (DECL_ARRAY_DELETE_OPERATOR_P): Remove.
3746 * cp-tree.h (EXCEPTION_CLEANUP_NAME, B_SET, B_CLR, B_TST,
3747 CONV_STATIC_CAST): Remove.
3749 * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Remove.
3751 * cp-tree.h (VF_BINFO_VALUE, VF_BASETYPE_VALUE): Remove.
3753 * cp-tree.h (cp_deprecated): Remove.
3755 2005-04-08 Ian Lance Taylor <ian@airs.com>
3757 * cp-tree.def: Define FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
3758 CONTINUE_STMT, SWITCH_STMT.
3759 * cp-tree.h (cp_stmt_codes): Add FOR_STMT, WHILE_STMT, DO_STMT,
3760 BREAK_STMT, CONTINUE_STMT, SWITCH_STMT.
3761 (WHILE_COND, WHILE_BODY): Define.
3762 (DO_COND, DO_BODY): Define.
3763 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Define.
3764 (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Define.
3765 * cp-gimplify.c (enum bc_t): Define.
3766 (struct cp_gimplify_ctx, ctxp): Define.
3767 (push_context, pop_context): New static functions.
3768 (begin_bc_block, finish_bc_block): New static functions.
3769 (build_bc_goto): New static function.
3770 (gimplify_cp_loop, gimplify_for_stmt): New static functions.
3771 (gimplify_while_stmt, gimplify_do_stmt): Likewise.
3772 (gimplify_switch_stmt): Likewise.
3773 (cp_gimplify_expr): Handle FOR_STMT, WHILE_STMT, DO_STMT,
3774 SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
3775 (cp_genericize): Call push_context and pop_context.
3776 * semantics.c (finish_break_stmt): Just call build_stmt
3777 (BREAK_STMT) rather than build_break_stmt.
3778 (finish_continue_stmt): Corresponding change.
3779 * decl.c (pop_switch): Update call to c_do_switch_warnings for new
3781 * cxx-pretty-print.c (pp_cxx_statement): Handle SWITCH_STMT,
3782 WHILE_STMT, DO_STMT, FOR_STMT, BREAK_STMT, CONTINUE_STMT.
3783 * dump.c (cp_dump_tree): Likewise.
3785 2005-04-08 Mark Mitchell <mark@codesourcery.com>
3788 * parser.c (cp_parser_type_specifier_seq): Add is_condition
3790 (cp_parser_new_type_id): Pass it.
3791 (cp_parser_condition): Likewise.
3792 (cp_parser_conversion_type_id): Likewise.
3793 (cp_parser_type_id): Likewise.
3794 (cp_parser_type_specifier_seq): In a condition, do not allow
3795 invalid type-specifier combinations.
3796 (cp_parser_exception_declaration): Adjust call to
3797 cp_parser_type_specifier_seq.
3799 * cp-tree.def (TINST_LEVEL): Document TINST_IN_SYSTEM_HEADER_P.
3800 * cp-tree.h (struct tinst_level): Add in_system_header_p.
3801 (TINST_IN_SYSTEM_HEADER_P): New macro.
3802 (make_tinst_level): Remove.
3803 * pt.c (lookup_template_class): Preserve DECL_IN_SYSTEM_HEADER on
3804 the instantiated class.
3805 (push_tinst_level): Do not use make_tinst_level. Set
3806 TINST_IN_SYSTEM_HEADER_P.
3807 (pop_tinst_level): Likewise.
3808 (instantiate_class_template): Set in_system_header.
3809 (instantiate_pending_templates): Likewise.
3810 * tree.c (make_tinst_level): Remove.
3812 2005-04-06 Joseph S. Myers <joseph@codesourcery.com>
3814 * decl.c (start_decl): Apply pending #pragma weak regardless of
3817 2005-04-06 Mark Mitchell <mark@codesourcery.com>
3820 * pt.c (regenerate_decl_from_template): Copy attributes for
3821 parameters from the pattern to the instantiation.
3823 2005-04-05 Mark Mitchell <mark@codesourcery.com>
3826 * cp-tree.def (OFFSET_REF): Correct comments.
3827 * init.c (build_offset_ref): Remove misleading comment.
3828 * typeck.c (build_unary_op): Handle pointer-to-member creation
3829 here, rather than ...
3830 (unary_complex_lvalue): ... here.
3832 2005-04-06 Jason Merrill <jason@redhat.com>
3835 * tree.c (stabilize_init): Don't bother trying to stabilize
3836 something with no side-effects.
3838 2005-04-05 Mark Mitchell <mark@codesourcery.com>
3841 * decl.c (grokdeclarator): Correct attribute handling.
3843 2005-04-05 Mark Mitchell <mark@codesourcery.com>
3846 * decl2.c (import_export_decl): Use non-COMDAT external linkage
3847 for virtual tables, typeinfo, etc. that will be emitted in only
3848 one translation unit on systems without weak symbols.
3850 2005-04-04 Mark Mitchell <mark@codesourcery.com>
3853 * parser.c (cp_parser_template_name): Fix thinko.
3855 2005-04-04 Nathan Sidwell <nathan@codesourcery.com>
3858 * method.c (use_thunk): Protect covariant pointer return
3859 adjustments from NULL pointers.
3861 2005-04-04 Jan Hubicka <jh@suse.cz>
3863 * decl2.c (finish_objects): Revert my previous patch.
3864 (cp_finish_file): Likewise.
3866 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
3868 * pt.c: Fix comment typos.
3870 2005-04-03 Nathan Sidwell <nathan@codesourcery.com>
3873 * pt.c (more_specialized_fn): Member functions are unordered wrt
3874 non-members. Conversion operators are unordered wrt other
3877 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
3879 * call.c (add_template_candidates_real): Remove length parameter
3880 from fn_type_unification call.
3881 * class.c (resolve_address_of_overloaded_function): Likewise
3882 * cp-tree.h (fn_type_unification): Remove length parameter.
3883 * pt.c (get_bindings_overload): Remove.
3884 (get_bindings_real): Rename to ...
3885 (get_bindings): ... here. Remove length and strict
3886 parameters. Change return type flag to boolean. Remove original
3887 forwarding function.
3888 (determine_specialization): Adjust get_bindings call.
3889 (fn_type_unification): Remove length parameter. Adjust.
3890 (type_unification_real): Remove length parameter. Adjust.
3891 (resolve_overloaded_unification): Adjust get_bindings call.
3892 (try_one_overload): Simplify confusing cascaded if control flow.
3893 (unify): Remove length paramter from type_unification_real call.
3894 (most_specialized_instantiation): Adjust get_bindings calls.
3895 (most_specialized): Likewise.
3897 2005-03-31 Nathan Sidwell <nathan@codesourcery.com>
3899 PR c++/19203, implement DR 214
3900 * call.c (joust): Use more_specialized_fn.
3901 * cp-tree.h (DEDUCE_ORDER): Remove.
3902 (more_specialized): Replace with ...
3903 (more_specialized_fn): ... this.
3904 * pt.c (maybe_adjust_types_for_deduction): Remove DEDUCE_ORDER
3906 (type_unification_real): Remove DEDUCE_ORDER case.
3907 (more_specialized): Replace with ...
3908 (more_specialized_fn): ... this. Implement DR 214.
3909 (most_specialized_instantiation): Use get_bindings_real directly.
3911 2005-03-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
3914 * call.c (build_new_op): Remove check for -Wsynth.
3916 2005-03-31 Jan Hubicka <jh@suse.cz>
3918 * decl2.c (finish_objects): Mark ctor as needed.
3919 (cp_finish_file): Output variables only in nonunit-at-a-time.
3921 2005-03-29 Richard Henderson <rth@redhat.com>
3924 * decl.c (cp_complete_array_type): Rename from complete_array_type.
3925 Use the new complete_array_type in c-common.c. Update all callers.
3926 * cp-tree.h (cp_complete_array_type): Update to match.
3928 2005-03-24 Geoffrey Keating <geoffk@apple.com>
3930 * typeck.c (build_static_cast_1): Allow scalar_cast between
3931 any integral, floating, or enumeration type.
3933 2005-03-24 Steven Bosscher <stevenb@suse.de>
3935 * typeck.c (comptypes): First determine if the types are compatible
3936 from a target-independent point of view. Check target attributes
3939 * class.c (build_base_path):
3940 (build_vbase_offset_vtbl_entries):
3941 (add_vcall_offset): Replace fold (buildN (...)) with fold_buildN.
3942 * error.c (dump_expr): Likewise.
3943 * init.c (build_zero_init, expand_cleanup_for_base,
3944 build_vec_delete_1): Likewise.
3945 * mangle.c (write_integer_cst): Likewise.
3946 * method.c (thunk_adjust): Likewise.
3947 * pt.c (convert_nontype_argument, tsubst, unify): Likewise.
3948 * tree.c (cxx_print_statistics, array_type_nelts_total): Likewise.
3949 * typeck.c (build_ptrmemfunc_access_expr,
3950 (get_member_function_from_ptrfunc): Likewise.
3952 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
3954 * cp-objcp-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
3956 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
3958 * cp-tree.h (perform_integral_promotions): Remove.
3959 (default_conversion): Add.
3961 2005-03-22 Mark Mitchell <mark@codesourcery.com>
3963 * parser.c (cp_parser_warn_min_max): New function.
3964 (cp_parser_binary_expression): Use it.
3965 (cp_parser_assignment_operator_opt): Likewise.
3966 (cp_parser_operator): Likewise.
3968 2005-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3971 * decl.c (start_preparsed_function): Robustify.
3973 2005-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3976 * parser.c (cp_parser_class_head): Return NULL_TREE when
3977 encountering a redefinition.
3979 2005-03-22 Nathan Sidwell <nathan@codesourcery.com>
3983 * typeck.c (build_ptrmemfunc): Allow OFFSET_REF when processing a
3986 2005-03-21 Paolo Carlini <pcarlini@suse.de>
3990 * init.c (emit_mem_initializers): Don't crash on undefined
3993 2005-03-21 Paolo Carlini <pcarlini@suse.de>
3996 * semantics.c (finish_stmt_expr_expr): Return immediately
3997 if error_operand_p (expr).
3999 2005-03-21 Joseph S. Myers <joseph@codesourcery.com>
4001 * cp-tree.h (lvalue_or_else, lvalue_p): New.
4002 * typeck.c (lvalue_or_else): New. Call lvalue_error.
4004 2005-03-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4007 * decl.c (decls_match): Compare context of VAR_DECL.
4009 2005-03-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4012 * parser.c (cp_parser_postfix_expression) <case RID_TYPENAME>:
4013 Check the return value of cp_parser_nested_name_specifier.
4015 2005-03-18 Dale Johannesen <dalej@apple.com>
4017 * cp/tree.c (cp_tree_equal): Handle SSA_NAME.
4019 2005-03-18 Paolo Carlini <pcarlini@suse.de>
4022 * parser.c (cp_parser_diagnose_invalid_type_name):
4023 Check TYPE_BINFO (current_class_type) before attempting
4024 to emit inform messages.
4026 2005-03-17 Paolo Carlini <pcarlini@suse.de>
4029 * cp-tree.h (grok_op_properties): Change return type to void.
4030 * decl.c (grok_op_properties): Return early - don't check the
4031 arity - in case of a static member or an operator that cannot
4032 be non-member; tidy a bit.
4034 2005-03-17 Nathan Sidwell <nathan@codesourcery.com>
4037 * pt.c (contains_dependent_cast_p): Remove.
4038 (fold_non_dependent_expr): Don't use it.
4039 (value_dependent_expression_p): Use a switch statement.
4040 reference_exprs can be dependent.
4042 2005-03-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4046 * name-lookup.c (pushtag): Skip template parameter scope when
4047 scope is ts_global. Don't push tag into template parameter
4049 * pt.c (instantiate_class_template): Reorder friend class
4050 template substitution to handle non-dependent friend class
4051 that hasn't been previously declared.
4053 2005-03-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4055 Friend class name lookup 5/n
4057 * cp-tree.h (pushtag): Adjust declaration.
4058 * decl.c (lookup_and_check_tag): Call lookup_type_scope if
4060 (xref_tag): Adjust call to pushtag. Make hidden class visible.
4061 (start_enum): Adjust call to pushtag.
4062 * name-lookup.c (ambiguous_decl): Ignore hidden names.
4063 (qualify_lookup): Change return type to bool.
4064 (hidden_name_p): New function.
4065 (lookup_namespace_name, unqualified_namespace_lookup,
4066 lookup_name_real): Use it.
4067 (lookup_type_scope): Update comments.
4068 (maybe_process_template_type_declaration): Change parameter name
4069 from globalize to is_friend.
4070 (pushtag): Change globalize parameter of type int to tag_scope.
4071 Hide name if introduced by friend declaration.
4072 * name-lookup.h (hidden_name_p): Add declaration.
4073 * parser.c (cp_parser_lookup_name): Don't deal with hidden name
4075 * pt.c (push_template_decl_real): Make hidden class template
4077 (lookup_template_class, instantiate_class_template): Adjust call
4079 * semantics.c (begin_class_definition): Likewise.
4080 * rtti.c (init_rtti_processing, build_dynamic_cast_1,
4081 tinfo_base_init, emit_support_tinfos): Use ts_current instead of
4084 2005-03-13 Mark Mitchell <mark@codesourcery.com>
4087 * pt.c (determine_specialization): Reject non-specializations.
4089 2005-03-11 Per Bothner <per@bothner.com>
4091 * cp-tree.h (struct cp_declarator): New id_loc field.
4092 * cp/parser.c (cp_lexer_get_preprocessor_token): Set cp_token's
4093 location using c_lex_with_flags, instead of input_location.
4094 (cp_parser_direct_declarator): Set declarator's id_loc from
4097 2005-03-10 Jakub Jelinek <jakub@redhat.com>
4099 PR c++/18384, c++/18327
4100 * decl.c (reshape_init_array): Use UHWI type for max_index_cst
4101 and index. Convert max_index to size_type_node if it isn't
4102 host_integerp (, 1).
4104 2005-03-09 Mark Mitchell <mark@codesourcery.com>
4107 * pt.c (tsubst_decl): Apply array-to-pointer and
4108 function-to-pointer conversions to function arguments.
4109 (regenerate_decl_from_template): Likewise.
4111 2005-03-09 Paolo Carlini <pcarlini@suse.de>
4114 * decl.c (complete_array_type): In pedantic mode, return
4115 3 for an empty initializer list as the initializer for an
4116 array of unknown bound (8.5.1/4).
4117 (maybe_deduce_size_from_array_init): Fix final test to use
4120 2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
4123 * pt.c (contains_dependent_cast_p): New.
4124 (fold_non_dependent_expr): Call it.
4126 2005-03-08 Mark Mitchell <mark@codesourcery.com>
4129 * cp-tree.h (target_type): Remove.
4130 * decl.c (layout_var_decl): Remove #if 0'd code.
4131 (cp_finish_decl): Remove dead code.
4132 * init.c (build_vec_init): When determining whether or not the
4133 element type has an asignment operator, look through all array
4135 * typeck.c (target_type): Remove.
4137 2005-03-07 Mark Mitchell <mark@codesourcery.com>
4139 * class.c (finish_struct_1): Do not warn about non-virtual
4140 destructors in Java classes.
4142 2005-03-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4145 * init.c (build_offset_ref): Don't build non-dependent SCOPE_REF.
4146 * pt.c (build_non_dependent_expr): Don't build NON_DEPENDENT_EXPR
4148 * typeck.c (build_x_unary_op): Don't build non-dependent SCOPE_REF.
4149 Also set PTRMEM_OK_P for NON_DEPENDENT_EXPR.
4150 (build_unary_op): Handle building ADDR_EXPR of OFFSET_REF inside
4153 2005-03-02 Alexandre Oliva <aoliva@redhat.com>
4155 * name-lookup.c (push_overloaded_decl): Don't error if the new
4156 decl matches the old one.
4157 * decl.c (redeclaration_error_message): Likewise.
4159 2005-03-01 Per Bothner <per@bothner.com>
4161 * decl.c (finish_function): Use SET_EXPR_LOCATION instead of
4162 unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
4164 2005-03-01 Nathan Sidwell <nathan@codesourcery.com>
4167 * class.c (update_vtable_entry_for_fn): Don't crash on invalid
4170 * cp-tree.g (THUNK_TARGET): Expand comment.
4171 * method.c (use_thunk): Make sure we also use the target, if that
4174 2005-02-27 Jakub Jelinek <jakub@redhat.com>
4177 * decl.c (cxx_comdat_group): Put thunks for
4178 TARGET_USE_LOCAL_THUNK_ALIAS_P (function) functions into the same
4179 comdat group as the thunk target.
4181 2005-02-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4183 * call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c,
4184 parser.c: Fix comment typo(s).
4186 2005-02-24 Jakub Jelinek <jakub@redhat.com>
4189 * decl.c (reshape_init): Don't warn about missing braces if STRING_CST
4190 initializes a char/wchar_t array.
4192 2005-02-23 Mark Mitchell <mark@codesourcery.com>
4195 * decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations
4196 with internal linkage.
4198 2005-02-23 Alexandre Oliva <aoliva@redhat.com>
4200 * decl.c (grokvardecl): Don't exempt anonymous types from having
4201 linkage for variables that have linkage other than "C".
4203 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
4205 * cp-objcp-common.h, error.c: Update copyright.
4207 2005-02-22 Mark Mitchell <mark@codesourcery.com>
4210 * decl.c (start_decl_1): Don't clear TREE_READONLY.
4211 (cp_finish_decl): Likewise.
4212 (complete_vars): Call cp_apply_type_quals_to_decl.
4213 * typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in
4214 cases where that's not valid.
4217 * init.c (integral_constant_value): Iterate if the value of a decl
4218 is itself a constant.
4221 * parser.c (cp_parser_class_head): Check for redefintions here.
4222 * semantics.c (begin_class_definition): Not here.
4225 * decl2.c (build_anon_union_vars): Add type parameter.
4226 (finish_anon_union): Pass it.
4229 * error.c (dump_expr): Do not print the body of a BIND_EXPR.
4230 Handle STATEMENT_LIST.
4233 * parser.c (cp_parser_direct_declarator): Always complain about
4234 non-constant array bounds when in a function scope.
4235 * semantics.c (finish_id_expression): Do not mark dependent names
4238 2005-02-21 Douglas Gregor <dgregor@cs.indiana.edu>
4242 * cp-tree.h (cp_apply_type_quals_to_decl): Declared.
4243 * decl.c (grokdeclarator): Pedwarn about qualifying a function
4245 Add qualifiers when declaring a typedef of a function type.
4246 Member function pointers pick up the qualifiers of the typedef
4247 used to declare them.
4248 Don't complain about creating cv-qualified function types.
4249 Complain about qualified function typedefs that are used to
4250 declare non-static member functions or free functions.
4251 Use cp_apply_type_quals_to_decl.
4252 (start_preparsed_function): Use cp_apply_type_quals_to_decl.
4253 (grokclassfn): Use cp_apply_type_quals_to_decl.
4254 * error.c (dump_type_suffix): Print qualifiers for function
4256 * pt.c (tsubst_decl): Use cp_apply_type_quals_to_decl.
4257 (tsubst): When substituting a function type into a member
4258 pointer type, pass along the qualifiers.
4259 (unify): Unify member pointers to member function pointers.
4260 * tree.c (cp_build_qualified_type_real): Function types may be
4261 qualified. This includes restrict qualifiers.
4262 * typeck.c (cp_apply_type_quals_to_decl): New function to replace
4263 use of c_apply_type_quals_to_decl. Drops qualifiers that are being
4264 added to function types.
4266 2005-02-20 Zack Weinberg <zack@codesourcery.com>
4269 * cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
4270 c_common_to_target_charset. Delete bogus comment.
4272 2005-02-18 Richard Henderson <rth@redhat.com>
4275 * except.c (do_get_exception_ptr): New.
4276 (expand_start_catch_block): Use it.
4278 2005-02-19 Jakub Jelinek <jakub@redhat.com>
4280 * decl.c (start_decl_1): Only check TYPE_NEEDS_CONSTRUCTING
4281 if type is not error_mark_node.
4283 2005-01-20 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4286 * decl2.c (grokfield): Do not apply attributes to template parameters
4287 as they are ignored by tsubst anyway.
4289 2005-02-18 Jakub Jelinek <jakub@redhat.com>
4292 * decl.c (start_decl_1): Clear TREE_READONLY flag if
4293 its type has TYPE_NEEDS_CONSTRUCTING.
4294 (complete_vars): Likewise.
4296 2005-02-17 Alexandre Oliva <aoliva@redhat.com>
4299 * class.c (finish_struct): Initialize TYPE_SIZE_UNIT of a
4300 template along with TYPE_SIZE.
4303 * semantics.c (perform_deferred_access_checks): Use
4304 get_deferred_access_checks to get the top of the stack.
4306 2005-02-15 Alexandre Oliva <aoliva@redhat.com>
4309 * class.c (add_implicitly_declared_members, check_field_decl)
4310 (check_field_decls, check_bases): Remove arguments, tests and
4311 assignments of cant_have_default_ctor-related variables.
4313 2005-02-15 Alexandre Oliva <aoliva@redhat.com>
4315 * decl2.c (mark_used): Set the source location of the used decl to
4316 the current input location here...
4317 * method.c (synthesize_method): ... not here. Set input_location
4318 from the decl instead.
4320 2005-02-14 Nathan Sidwell <nathan@codesourcery.com>
4323 * parser.c (cp_parser_late_parsing_for_member): Use
4324 current_function_decl as scope to push to and from.
4327 * pt.c (check_explicit_specialization): Make sure namespace
4328 binding lookup found an overloaded function.
4329 (lookup_template_function): Just assert FNS is an overloaded
4333 * decl.c (grokdeclarator): Check for error mark node in ptrmem
4336 2005-02-14 Alexandre Oliva <aoliva@redhat.com>
4339 * decl.c (redeclaration_error_message): Report redefinition of
4340 pure virtual function.
4342 2005-02-14 Nathan Sidwell <nathan@codesourcery.com>
4345 * class.c (build_simple_base_path): Build the component_ref
4347 (update_vtable_entry_for_fn): Walk the covariant's binfo chain
4348 rather than using lookup_base.
4349 * search.c (dfs_walk_once): Add non-recursive assert check.
4350 * typeck.c (build_class_member_access_expr): It is possible for
4351 the member type to be both const and volatile.
4353 2005-02-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4357 * pt.c (maybe_check_template_type): Remove.
4358 * cp-tree.h (maybe_check_template_type): Remove prototype.
4359 * name-lookup.c (maybe_process_template_type_declaration): Don't
4360 use maybe_check_template_type.
4362 2005-02-11 Richard Henderson <rth@redhat.com>
4365 * pt.c (get_mostly_instantiated_function_type): Save and restore
4366 flag_access_control instead of push/pop_access_scope.
4368 2005-02-10 Mark Mitchell <mark@codesourcery.com>
4371 * decl.c (reshape_init): Issue warnings about missing braces.
4373 2005-02-11 Kazu Hirata <kazu@cs.umass.edu>
4375 * cp-tree.def, except.c, ptree.c: Update copyright.
4377 2005-02-09 Mark Mitchell <mark@codesourcery.com>
4380 * call.c (build_op_delete_call): Check COMPLETE_TYPE_P before
4381 attempting name lookup.
4383 * parser.c (cp_parser_unqualified_id): Initialize type_decl.
4386 * call.c (initialize_reference): Robustify.
4389 * decl.c (grokdeclarator): Check for invalid use of destructor
4393 * parser.c (cp_parser_unqualified_id): Avoid creating destructor
4394 names with invalid types.
4397 * parser.c (cp_parser_direct_declarator): Allow type-dependent
4398 expressions as array bounds.
4401 * parser.c (cp_parser_attributes_list): Allow empty lists.
4403 2005-02-08 Mark Mitchell <mark@codesourcery.com>
4406 * class.c (add_method): Don't set TYPE_HAS_DESTRUCTOR.
4407 (check_bases): Give warnings about a base class with a
4408 non-virtual destructor, even if it is implicit.
4409 (finish_struct_bits): Don't copy TYPE_HAS_DESTRUCTOR.
4410 (maybe_warn_about_overly_private_class): Don't use
4411 TYPE_HAS_DESTRUCTOR.
4412 (finish_struct_methods): Don't set TYPE_HAS_DESTRUCTOR.
4413 (check_for_override): Give it external linkage.
4414 (add_implicitly_declared_members): Generate destructors lazily.
4415 (check_field_decls): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR, not
4416 TYPE_HAS_DESTRUCTOR.
4417 (check_bases_and_members): Call check_methods before
4419 (check_bases_and_members): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR, not
4420 TYPE_HAS_DESTRUCTOR.
4421 (finish_struct_1): Do not use TYPE_HAS_DESTRUCTOR.
4422 * cp-tree.def (PSEUDO_DTOR_EXPR): Document.
4423 * cp-tree.h (TYPE_HAS_DESTRUCTOR): Remove.
4424 (lang_type_class): Add lazy_destructor.
4425 (CLASSTYPE_LAZY_DESTRUCTOR): New macro.
4426 (CLASSTYPE_DESTRUCTORS): Robustify.
4427 (TYPE_HAS_DESTRUCTOR): Remove.
4428 (check_for_override): Declare.
4429 (build_vbase_delete): Remove.
4430 * cvt.c (convert_to_void): Issue errors about pseudo-destructor
4432 * decl.c (cxx_maybe_build_cleanup): Remove dead code.
4433 * except.c (dtor_nothrow): Lazily create destructors if necessary.
4434 (build_throw): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
4435 * init.c (build_delete): Lazily create destructors, if necessary.
4436 (build_vbase_delete): Remove.
4437 * method.c (locate_dtor): Simplify.
4438 (implicitly_declare_fn): Add support for destructors.
4439 * parser.c (cp_parser_lookup_name): Lazily create destructors, if
4441 * pt.c (check_explicit_specialization): Don't use
4442 TYPE_HAS_DESTRUCTOR.
4443 (instantiate_class_template): Likewise.
4444 * ptree.c (cxx_print_type): Don't print TYPE_HAS_DESTRUCTOR.
4445 * rtti.c (emit_support_tinfos): Robustify.
4446 * search.c (lookup_fnfields_1): Lazily create destructors.
4447 * typeck.c (build_class_member_access_expr): Remove
4448 PSEUDO_DTOR_EXPR handling.
4449 (lookup_destructor): Likewise.
4451 2005-02-08 Kazu Hirata <kazu@cs.umass.edu>
4453 * cxx-pretty-print.c, cxx-pretty-print.h, decl.h: Update
4456 2005-02-07 Mark Mitchell <mark@codesourcery.com>
4458 * parser.c (cp_lexer_start_debugging): Avoid arithmetic operations
4459 on boolean variables.
4460 (cp_lexer_stop_debugging): Likewise.
4462 2005-02-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4465 * parser.c (cp_parser_pure_specifier): Emit a specific error
4466 message with an invalid pure specifier.
4467 * decl2.c (grok_function_init): Remove.
4468 (grokfield): An initializer for a method is a always a pure
4471 2005-02-02 Matt Austern <austern@apple.com>
4474 * cp-tree.h (builtin_valid_in_constant_expr_p): Declare.
4475 * parser.c (cp_parser_postfix_expression): Accept function call in
4476 constant expression if builtin_valid_in_constant_expr_p is true
4478 * pt.c (value_dependent_expression_p): Handle CALL_EXPRs properly.
4479 * semantics.c (finish_id_expression): Accept function call in constant
4480 expression if builtin_valid_in_constant_expr_p is true for that
4482 * tree.c (builtin_valid_in_constant_expr_p): New.
4484 2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4487 * pt.c (check_instantiated_args): Improve error message.
4488 Fix logic when to print its second part.
4490 2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4492 * cp-tree.h (complete_type_or_else): Remove macro.
4493 (complete_type_or_diagnostic): Rename to complete_type_or_else
4494 and remove last argument.
4495 * typeck.c (complete_type_or_diagnostic): Rename to
4496 complete_type_or_else and remove last argument.
4498 2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4500 * cp-tree.h (commonparms): Remove prototype.
4501 (convert_arguments): Likewise.
4502 (PFN_FROM_PTRMEMFUNC): Remove.
4503 * typeck.c (commonparms): Make static.
4504 (convert_arguments): Add prototype. Make static.
4505 (PFN_FROM_PTRMEMFUNC): Replace by pfn_from_ptrmemfunc.
4507 2005-01-31 Mark Mitchell <mark@codesourcery.com>
4509 * parser.c (cp_parser_primary_expression): Don't complain about
4510 floating-point literals in integral constant expressions when
4513 2005-02-01 Alexandre Oliva <aoliva@redhat.com>
4515 * parser.c (cp_parser_template_id): Revert comment patch too.
4520 * parser.c (cp_parser_template_id): Revert 2004-12-09's patch.
4521 Issue an error when creating the template id.
4522 * pt.c (fn_type_unification): Return early if the explicit
4523 template arg list is an error_mark_node.
4525 2005-01-31 Mark Mitchell <mark@codesourcery.com>
4527 * decl.c (build_enumerator): Do not issue duplicate error messages
4528 about invalid enumeration constants.
4529 * parser.c (cp_parser_non_integral_constant_expression): Always
4530 set parser->non_integral_constant_expression_p.
4531 (cp_parser_primary_expression): Add cast_p parameter. Issue
4532 errors about invalid uses of floating-point literals in
4534 (cp_parser_postfix_expression): Add cast_p parameter.
4535 (cp_parser_open_square_expression): Pass it.
4536 (cp_parser_parenthesized_expression_list): Add cast_p parameter.
4537 (cp_parser_unary_expression): Likewise.
4538 (cp_parser_new_placement): Pass it.
4539 (cp_parser_direct_new_declarator): Likewise.
4540 (cp_parser_new_initializer): Likewise.
4541 (cp_parser_cast_expression): Add cast_p parameter.
4542 (cp_parser_binary_expression): Likewise.
4543 (cp_parser_question_colon_clause): Likewise.
4544 (cp_parser_assignment_expression): Likewise.
4545 (cp_parser_expression): Likewise.
4546 (cp_parser_constant_expression): If an integral constant
4547 expression is invalid, return error_mark_node.
4548 (cp_parser_expression_statement): Pass cast_p.
4549 (cp_parser_condition): Likewise.
4550 (cp_parser_iteration_statement): Likewise.
4551 (cp_parser_jump_statement): Likewise.
4552 (cp_parser_mem_initializer): Likewise.
4553 (cp_parser_template_argument): Likewise.
4554 (cp_parser_parameter_declaration): Likewise.
4555 (cp_parser_initializer): Likewise.
4556 (cp_parser_throw_expression): Likewise.
4557 (cp_parser_attribute_list): Likewise.
4558 (cp_parser_simple_cast_expression): Likewise.
4559 (cp_parser_functional_cast): Likewise.
4560 (cp_parser_late_parsing_default_args): Likewise.
4561 (cp_parser_sizeof_operand): Save/restore
4562 non_integral_constant_expression_p.
4564 2005-01-31 Mike Stump <mrs@apple.com>
4566 * parser.c (cp_lexer_new_main): Get the first token, first, before
4569 2005-01-31 Mark Mitchell <mark@codesourcery.com>
4571 * decl.c (start_decl): Add missing parentheses.
4573 2005-01-30 Mark Mitchell <mark@codesourcery.com>
4576 * cp-tree.h (DECL_USE_TEMPLATE): Expand documentation.
4577 * decl.c (duplicate_decls): Do not discard
4578 DECL_IMPLICIT_INSTANTIATION when merging declarations.
4579 (start_decl): Do not SET_DECL_TEMPLATE_SPECIALIZATION for
4580 variables that do not have DECL_USE_TEMPLATE.
4583 * decl.c (grokdeclarator): Refactor code so that qualified names
4584 are never allowed as the declarator in a typedef.
4587 * name-lookup.c (do_nonmember_using_decl): Avoid overloading
4588 builtin declarations.
4591 * call.c (convert_like_real): Inline call to
4592 dubious_conversion_warnings here.
4593 * cp-tree.h (dubious_conversion_warnings): Remove.
4594 * semantics.c (finish_unary_op_expr): Copy INTEGER_CSTs before
4595 setting TREE_NEGATED_INT.
4596 * typeck.c (dubious_conversion_warnings): Remove.
4599 * name-lookup.c (pushdecl_namespace_level): Avoid accessing free'd
4602 2005-01-28 Mark Mitchell <mark@codesourcery.com>
4605 * parser.c (cp_parser_diagnose_invalid_type_name): Commit to
4609 * pt.c (redeclare_class_template): Robustify.
4611 2005-01-27 Steven Bosscher <stevenb@suse.de>
4613 * decl.c (finish_case_label): Use SWITCH_STMT accessor macros
4614 instead of SWITCH_EXPR ones.
4615 * pt.c (tsubst_expr): Likewise.
4616 * semantics.c (begin_switch_stmt, finish_switch_cond,
4617 finish_switch_stmt): Likewise.
4619 2005-01-26 J"orn Rennecke <joern.rennecke@st.com>
4622 * parser.c (cp_parser_initializer_clause): Initialize *non_constant_p.
4624 2005-01-25 Andrew Pinski <pinskia@physics.uc.edu>
4626 * class.c (abort_fndecl_addr): New variable.
4627 (build_vtbl_initializer): If we have a pure virtual function
4628 share the abort function's address.
4629 Include gt-cp-class.h at the end.
4630 * config-lang.in (gtfiles): Add cp/class.c.
4632 2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4634 * cxx-pretty-print.c (pp_cxx_statement): Add prototype. Make static.
4635 (pp_cxx_function_definition): Make static.
4636 * cxx-pretty-print.h (pp_cxx_statement): Remove prototype.
4637 (pp_cxx_function_definition): Likewise.
4639 2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4641 * name-lookup.c (print_binding_level): Make static.
4642 (constructor_name_full): Make static inline.
4643 (current_decl_namespace): Make static.
4644 * name-lookup.h (constructor_name_full): Remove prototype.
4645 (print_binding_level): Likewise.
4646 (current_decl_namespace): Likewise.
4648 2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4650 * decl.h (debug_bindings_indentation): Remove.
4652 2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
4654 * typeck.c: Fix a comment typo.
4656 2005-01-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4659 * pt.c (fold_decl_constant_value): Always call fold_non_dependent_expr
4661 (tsubst): Use fold_decl_constant_value in place of a bare call to
4662 integral_constant_value.
4664 2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
4666 * typeck.c (more_qualified_p): Remove.
4667 * cp-tree.h: Remove the corresponding prototype.
4669 2005-01-19 Matt Austern <austern@apple.com>
4671 * typeck.c (comptypes): Handle return code from objc_comptypes
4674 2005-01-19 Kazu Hirata <kazu@cs.umass.edu>
4676 * cp-tree.h, name-lookup.h: Remove unused prototypes.
4678 2005-01-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4681 * semantics.c (finish_id_expression): Disable access checking for
4682 already lookuped FIELD_DECL.
4684 2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
4686 * decl.c (delete_block): Remove.
4687 * cp-tree.h: Remove the corresponding prototype.
4689 * decl.c (vtable_decl_p, vtype_decl_p, walk_globals_data,
4690 walk_vtables_r, walk_vtables, walk_globals_r, walk_globals):
4692 * cp-tree.h: Remove the corresponding prototypes.
4694 * tree.c (count_functions, bound_pmf_p, cp_is_overload_p,
4695 cp_update_decl_after_saving, name_p): Remove.
4696 * cp-tree.h: Remove the corresponding prototypes.
4698 2005-01-18 Andrew Pinski <pinskia@physics.uc.edu>
4701 * semantics.c (finish_asm_stmt): Strip nops off
4702 input memory operands.
4704 2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
4706 * Make-lang.in, call.c, cvt.c, init.c, rtti.c, tree.c,
4707 typeck2.c: Update copyright.
4709 2005-01-16 Kazu Hirata <kazu@cs.umass.edu>
4711 * class.c (get_enclosing_class): Remove.
4712 * cp-tree.h: Remove the corresponding prototypes.
4714 * cvt.c (convert_lvalue): Remove.
4715 * cp-tree.h: Remove the corresponding prototype.
4717 * pt.c (tinst_for_decl): Remove.
4718 * cp-tree.h: Remove the corresponding prototypes.
4720 * tree.c (hash_chainon): Remove.
4721 * cp-tree.h: Remove the corresponding prototypes.
4723 2005-01-15 Jakub Jelinek <jakub@redhat.com>
4726 * typeck2.c (split_nonconstant_init_1) <case VECTOR_TYPE>: Put a copy
4727 of CONSTRUCTOR's node into MODIFY_EXPR, as the original is modified.
4729 2005-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4731 * Make-lang.in (cp-warn): Don't append $(WERROR).
4733 2005-01-10 Kazu Hirata <kazu@cs.umass.edu>
4735 * cp-tree.h: Fix a comment typo.
4737 2005-01-07 Nathan Sidwell <nathan@codesourcery.com>
4740 * pt.c (tsubst_qualified_id): Call convert_from_reference.
4742 2005-01-06 Mark Mitchell <mark@codesourcery.com>
4745 * class.c (add_implicitly_declared_members): Remove dead code.
4746 * decl.c (grokfndecl): Add sfk parameter. Use it do set
4748 (grokdeclarator): Adjust calls to grokfndecl.
4749 * method.c (implicitly_declare_fn): Improve documentation.
4750 * parser.c (cp_parser_direct_declarator): Do not consider a
4751 function to be a constructor if the containing class was
4752 originally anonymous.
4754 2005-01-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4757 * search.c (lookup_field_1): Handle using declaration in
4758 class template partial specialization.
4760 2005-01-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
4763 * pt.c (push_access_scope): Handle friend defined in class.
4764 (pop_access_scope): Likewise.
4766 2005-01-06 Nathan Sidwell <nathan@codesourcery.com>
4769 * pt.c (tsubst_copy) <ARRAY_REF case>: Handle separately.
4770 (tsubst_copy_and_build) <ARRAY_REF case>: Remove obsolete
4771 array-new handling code. Use build_x_binary_op.
4773 2005-01-05 Nathan Sidwell <nathan@codesourcery.com>
4776 * cp-tree.h (start_decl): Take pointer to pushed scope, not bool.
4777 * name-lookup.h (push_scope): Return pushed scope, not flag.
4778 * name-lookup.c (push_scope): Return scope that should be popped,
4780 * decl.c (start_decl): Adjust.
4781 (grokfndecl): Adjust scope push and pop.
4782 * decl2.c (check_classfn): Likewise.
4783 * parser.c (cp_parser_condition, cp_parser_conversion_function_id,
4784 cp_parser_init_declarator, cp_parser_direct_declarator,
4785 cp_parser_class_specifier, cp_parser_class_head,
4786 cp_parser_lookup_name,
4787 cp_parser_constructor_declarator_p): Likewise.
4788 * pt.c (instantiate_class_template,
4789 resolve_typename_type): Likewise.
4791 2005-01-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4794 * parser.c (cp_parser_unqualified_id): Do not issue error message
4795 for typedef-name as destructor declarator when performing an
4796 uncommitted tentative parse.
4798 2005-01-01 Steven Bosscher <stevenb@suse.de>
4801 * decl.c (finish_function): Fix comment. Annotate the compiler
4802 generated return with the current file name and line 0.