1 2004-06-12 Jason Merrill <jason@redhat.com>
3 PR tree-optimization/14107
4 * decl.c (finish_function): Warn about no return in all functions.
6 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
8 * cp-tree.h (struct language_function): Remove cannot_inline.
9 * decl.c (save_function_data): cannot_inline is no more.
10 (cxx_push_function_context): Likewise.
11 * decl2.c (start_objects, start_static_storage_duration_function):
12 Reset DECL_INLINE, set DECL_UNINLINABLE.
14 2004-06-14 Giovanni Bajo <giovannibajo@gcc.gnu.org>
17 * search.c (lookup_field): Propagate the ambiguity list.
18 (lookup_fnfields): Likewise.
20 2004-06-14 Giovanni Bajo <giovannibajo@gcc.gnu.org>
23 * parser.c (cp_parser_template_name): Ctors/dtors never need a
24 template keyword to disambiguate.
26 2004-06-14 Mark Mitchell <mark@codesourcery.com>
29 * decl.c (grokdeclarator): Ignore pointer-to-members when
30 computing template depth.
33 * name-lookup.c (pushtag): Do not try to put class declarations in
34 explicit specialization scopes.
36 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
38 * decl.c (grokdeclarator): Do not depend on C99's _Bool's behavior.
40 2004-06-11 Mark Mitchell <mark@codesourcery.com>
43 * name-lookup.c (unqualified_namespace_lookup): Do not ignore type
44 bindings for undeclared built-ins.
46 2004-06-11 Giovanni Bajo <giovannibajo@gcc.gnu.org>
48 * typeck2.c (abstract_virtual_errors): Reword diagnostics, make them
49 appear at the correct location.
51 2004-06-10 Jason Merrill <jason@redhat.com>
55 2004-06-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
56 * init.c (build_offset_ref): Build SCOPE_REF with non-null
57 TREE_TYPE for non-dependent names.
58 * pt.c (type_dependent_expression_p): Handle SCOPE_REF with
59 unknown_type_node as its TREE_TYPE.
60 * cxx-pretty_print.c (pp_cxx_unqualified_id): Handle BASELINK.
61 * error.c (dump_decl) <SCOPE_REF case>: Use pp_expression.
62 (dump_expr) <SCOPE_REF case>: Likewise.
64 2004-06-10 Mark Mitchell <mark@codesourcery.com>
67 * parser.c (cp_parser_direct_declarator): Robustify.
70 * pt.c (tsubst_copy): Use decl_constant_value on enumeration
71 constants in non-dependent contexts.
75 * typeck.c (build_static_cast): Wrap casts in NON_LVALUE_EXPR when
78 2004-06-10 Jakub Jelinek <jakub@redhat.com>
81 * decl.c (duplicate_decls): Handle fileptr_type_node arguments
84 2004-06-09 Mark Mitchell <mark@codesourcery.com>
88 2004-06-07 Mark Mitchell <mark@codesourcery.com>
89 * lex.c (handle_pragma_interface): Deprecate.
90 (handle_pragma_implementation): Likewise.
92 2004-06-09 Andrew Pinski <pinskia@physics.uc.edu>
94 * g++spec.c (lang_specific_driver): Remove check for -lm
95 and -lmath when check it see if it was the math library.
97 2004-06-08 Giovanni Bajo <giovannibajo@gcc.gnu.org>
100 * parser.c (cp_parser_direct_declarator): Reject constructor named
101 as qualified template-id.
103 2004-06-07 Mark Mitchell <mark@codesourcery.com>
106 * lex.c (handle_pragma_interface): Deprecate.
107 (handle_pragma_implementation): Likewise.
109 2004-06-07 Mark Mitchell <mark@codesourcery.com>
112 * parser.c (cp_parser_iteration_statement): Fix typo in error
116 * pt.c (tsubst_default_argument): Do not defer access checks
117 while substituting into the default argument.
120 * pt.c (tsubst_copy): Do not try to substitute for an enumeration
121 constant in a non-dependent context.
124 * except.c (build_throw): Ensure that temp_expr has been
127 2004-06-06 Roger Sayle <roger@eyesopen.com>
129 * cp/cp-tree.h (lvalue_or_else): Add function prototype.
131 2004-06-06 Giovanni Bajo <giovannibajo@gcc.gnu.org>
134 * parser.c (cp_parser_mem_initializer_id): Gracefully reject
135 'typename', and accept 'template'.
137 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
138 Jan Hubicka <jh@suse.cz>
141 * method.c (use_think): Do not mark thunk as referenced.
143 2004-06-03 Matt Austern <austern@apple.com>
146 * decl2.c (maybe_emit_vtables): If TARGET_WEAK_NOT_IN_ARCHIVE_TOC
147 is nonzero, and if we see a noninline definition of a key method,
148 make the vtables nonweak.
150 2004-06-02 Matt Austern <austern@apple.com>
152 * cp-tree.h (instantiate_decl): new boolean parameter,
153 undefined_ok. Current behavior is equivalent to its being 0.
154 * decl2.c (mark_used): Add new argument when calling instantiate_decl
155 * pt.c (mark_decl_instantiated): Unconditionally make
156 instantiations explicit unconditionally
157 (do_decl_instantiation): Don't call SET_DECL_EXPLICIT_INSTANTIATION,
158 since mark_decl_instantiated now does it.
159 (instantiate_class_member): New. Instantiate a member of an
160 explicitly instantiated class template.
161 (do_type_instantiation): Explicitly instantiate members of an
162 explicitly instantiated class template.
163 (instantiate_decl): if undefined_ok is nonzero, and if we're
164 trying to explicitly instantiated a template with no definition,
165 change it to an implicit instantiation.
166 (instantiate_pending_templates): Add new argument to instantiate_decl.
167 * tree.c (cp_cannot_inline_tree_fn): Likewise.
169 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
171 * cp-tree.h: Fix typo.
173 * cp-tree.h: Include cgraph.h
174 (DECL_NEEDED_P): Use cgraph_*node on the decl instead of
175 TREE_SYMBOL_REFERENCED on the DECL_ASSEMBLER_NAME of the decl.
177 2004-06-01 Jason Merrill <jason@redhat.com>
180 * call.c (call_builtin_trap): Remove type parm.
181 (convert_arg_to_ellipsis): Change a non-POD argument to integer type.
182 (build_x_va_arg): Dereference a null pointer for a non-POD argument.
184 2004-06-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
187 * init.c (build_offset_ref): Build SCOPE_REF with non-null
188 TREE_TYPE for non-dependent names.
189 * pt.c (type_dependent_expression_p): Handle SCOPE_REF with
190 unknown_type_node as its TREE_TYPE.
191 * cxx-pretty_print.c (pp_cxx_unqualified_id): Handle BASELINK.
192 * error.c (dump_decl) <SCOPE_REF case>: Use pp_expression.
193 (dump_expr) <SCOPE_REF case>: Likewise.
195 2004-06-01 Richard Henderson <rth@redhat.com>
196 Andrew Pinski <pinskia@physics.uc.edu>
198 * lex.c (reswords): Rename "__offsetof" to "__builtin_offsetof".
199 * parser.c (struct cp_parser): Remove in_offsetof.
200 (cp_parser_new): Don't set it.
201 (cp_parser_unary_expression): Don't check it.
202 (cp_parser_postfix_open_square_expression): Split out from ...
203 (cp_parser_postfix_expression): ... here.
204 (cp_parser_postfix_dot_deref_expression): Likewise.
205 (cp_parser_builtin_offsetof): New.
206 (cp_parser_primary_expression): Use it.
208 2004-06-01 Giovanni Bajo <giovannibajo@gcc.gnu.org>
211 * parser.c (cp_parser_postfix_expression): Allow subscript
212 operator in offsetof.
214 2004-05-31 Mark Mitchell <mark@codesourcery.com>
217 * friend.c (add_friend): Do not try to perform access checks for
218 functions from dependent classes.
220 2004-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
222 * cxx-pretty-print.c (pp_cxx_colon_colon): Expor.
223 (pp_cxx_begin_template_argument_list): Turn into a function.
224 (pp_cxx_end_template_argument_list): Likewise.
225 (pp_cxx_separate_with): Define.
226 (pp_cxx_unqualified_id): Tidy.
227 (pp_cxx_primary_expression): Likewise.
228 (pp_cxx_postfix_expression): Likewise.
229 (pp_cxx_expression): Likewise.
230 (pp_cxx_simple_type_specifier): Likewise.
231 (pp_cxx_type_specifier_seq): Likewise.
232 (pp_cxx_parameter_declaration_clause): Likewise.
233 (pp_cxx_exception_specification): Likewise.
234 (pp_cxx_direct_declarator): Likewise.
235 (pp_cxx_type_id): Likewise.
236 * cxx-pretty-print.h (pp_cxx_whitespace): Export from
238 (pp_cxx_left_paren): Likewise.
239 (pp_cxx_right_paren): Likewise.
240 (pp_cxx_left_brace): Likewise.
241 (pp_cxx_right_brace): Likewise.
242 (pp_cxx_left_bracket): Likewise.
243 (pp_cxx_right_bracket): Likewise.
244 (pp_cxx_dot): Likewise.
245 (pp_cxx_identifier): Likewise.
246 (pp_cxx_tree_identifier): Likewise.
247 (pp_cxx_ampersand): New macro.
248 (pp_cxx_star): Likewise.
249 (pp_cxx_arrow): Likewise.
250 (pp_cxx_semicolon): Likewise.
251 (pp_cxx_complement): Likewise.
252 (pp_cxx_begin_template_argument_list): Declaree.
253 (pp_cxx_end_template_argument_list): Likewise.
254 (pp_cxx_colon_colon): likewise.
256 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
258 * parser.c (cp_parser_simple_type_specifier): Explicitly test
261 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
263 * call.c, class.c, cp-tree.def, decl2.c, name-lookup.c, pt.c,
264 typeck.c: Fix comment formatting.
266 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
268 * cp-lang.c (cp_expand_decl): Remove.
269 (LANG_HOOKS_EXPAND_DECL): Use c_expand_decl.
271 2004-05-30 Andreas Jaeger <aj@suse.de>
273 * lang-specs.h: Add missing initializers for .ii.
275 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
277 * decl.c (cp_make_fname_decl): Free return value from
280 2004-05-28 Mark Mitchell <mark@codesourcery.com>
283 * decl2.c (delete_sanity): Set TREE_SIDE_EFFECTS on a DELETE_EXPR,
285 * init.c (build_new): Likewise.
288 * name-lookup.c (arg_assoc): Robustify.
291 * typeck.c (unary_complex_lvalue): Use context_for_name_lookup
292 when determining the scope to use for a pointer to member.
293 (lookup_anon_field): Give it external linkage.
294 * cp-tree.h (lookup_anon_field): Declare it.
295 * expr.c (cplus_expand_constant): Use it.
297 2004-05-28 Mark Mitchell <mark@codesourcery.com>
300 * parser.c (cp_parser_simple_type_specifier): Call
301 maybe_note_name_used_in_class.
303 2004-05-28 Tom Marshall <tmarshall@real.com>
306 * class.c (finish_struct_1): Warn only if the dtor is non-private or
307 the class has friends.
309 2004-05-27 Adam Nemet <anemet@lnxw.com>
312 * decl.c (complete_array_type): Set TYPE_NEEDS_CONSTRUCTING and
313 TYPE_HAS_NONTRIVIAL_DESTRUCTOR based on the underlying type.
315 2004-05-24 Geoffrey Keating <geoffk@apple.com>
317 * method.c (implicitly_declare_fn): Don't call defer_fn; abort
318 if it might be needed.
319 * pt.c (mark_decl_instantiated): Only call defer_fn if
320 the function actually needs processing in finish_file.
321 * decl2.c (finish_file): Add check that elements in
322 deferred_fns_used are really needed there. Remove unnecessary
323 test of DECL_SAVED_TREE.
325 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
327 * Make-lang.in: No need to specify $(LIBCPP).
329 2004-05-23 Mark Mitchell <mark@codesourcery.com>
332 * parser.c (cp_parser_class_head): Robustify.
335 * parser.c (cp_parser_decl_specifier_seq): Correct error in
337 (cp_parser_constructor_declarator_p): Treat attributes
341 * typeck.c (build_unary_op): Do not attempt to resolve casts to
342 base classes in templates.
344 2004-05-23 Mark Mitchell <mark@codesourcery.com>
347 * pt.c (instantiate_template): Robustify.
349 2004-05-23 Mark Mitchell <mark@codesourcery.com>
352 * decl.c (xref_tag): Issue errors about redeclaring template
353 classes as non-template classes.
355 2004-05-23 Mark Mitchell <mark@codesourcery.com>
358 * name-lookup.c (supplement_binding): Allow redefinitions of
362 * parser.c (cp_parser_template_argument): Robustify.
364 2004-05-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
366 * class.c (alter_access): Use %E format specifier to print an
367 identifier node. Avoid looking at the IDENTIFIER_POINTER.
368 (push_lang_context): Likewise.
369 * decl.c (lookup_label): Likewise.
370 (grokdeclarator): Likewise.
371 * parser.c (cp_parser_check_for_invalid_template_id): Likewise.
372 * pt.c (do_type_instantiation): Likewise.
373 * tree.c (handle_java_interface_attribute): Likewise.
374 (handle_com_interface_attribute): Likewise.
375 (handle_init_priority_attribute): Likewise.
377 2004-05-22 Mark Mitchell <mark@codesourcery.com>
381 * pt.c (build_non_dependent_expr): Expand the set of tree nodes
382 recognized as overloaded functions.
384 2004-05-22 Mark Mitchell <mark@codesourcery.com>
387 * class.c (layout_nonempty_base_or_field): Do not try to avoid
388 layout conflicts for unions.
391 * typeck.c (build_x_unary_op): Instantiate template class
392 specializations before looking for "operator &".
395 * typeck.c (complete_type): Layout non-dependent array types, even
399 * typeck.c (build_unary_op): Do not optimize "&x[y]" when in a
402 2004-05-22 Roger Sayle <roger@eyesopen.com>
404 * name-lookup.c (check_for_out_of_scope_variable): Avoid ICE by
405 returning when TREE_TYPE is error_mark_node.
406 * typeck.c (require_complete_type): Return error_mark_node if
407 value's type is an error_mark_node.
409 2005-05-20 Andrew Pinski <pinskia@physics.uc.edu>
411 * optimize.c (calls_setjmp_r): Remove.
412 (calls_setjmp_p): Remove.
413 * cp-tree.c (calls_setjmp_p): Remove.
414 * decl.c (finish_function): Do not call calls_setjmp_p.
416 2004-05-18 Zack Weinberg <zack@codesourcery.com>
418 * decl.c (cp_finish_decl): Use mark_decl_referenced.
419 * decl2.c (maybe_make_one_only): Likewise.
420 * method.c (use_thunk): Likewise.
422 2004-05-18 Jason Merrill <jason@redhat.com>
424 * class.c (build_base_path): Tidy a bit.
426 2004-05-14 Geoffrey Keating <geoffk@apple.com>
428 * name-lookup.c (struct scope_binding): New.
429 (EMPTY_SCOPE_BINDING): New.
430 (lookup_using_namespace): Take a scope_binding instead of a
432 (qualified_lookup_using_namespace): Likewise.
433 (cxx_binding_clear): Delete.
434 (do_nonmember_using_decl): Use a scope_binding instead of a
436 (lookup_tag): Don't call select_decl.
437 (ambiguous_decl): Don't return anything (and change callers to match).
438 Take a scope_binding as the second parameter.
439 (lookup_namespace_name): Use a scope_binding instead of a
441 (unqualified_namespace_lookup): Likewise.
442 (lookup_qualified_name): Likewise.
443 (select_decl): Take a scope_binding instead of a cxx_binding.
444 Use macros rather than hand-coding tests for type-ness.
446 2004-05-13 Diego Novillo <dnovillo@redhat.com>
448 * cp-gimplify.c: Rename from cp-simplify.c.
449 * Make-lang.in, optimize.c: Update.
451 2004-05-13 Diego Novillo <dnovillo@redhat.com>
453 Merge from tree-ssa-20020619-branch. See
454 ChangeLog.tree-ssa for details.
456 * Make-lang.in, call.c, class.c, cp-lang.c, cp-tree.def,
457 cp-tree.h, cvt.c, decl.c, decl2.c, error.c, except.c,
458 expr.c, init.c, name-lookup.h, optimize.c, parser.c,
459 pt.c, rtti.c, semantics.c, tree.c, typeck.c, typeck2.c:
461 * cp-mudflap.c: New file.
462 * cp-simplify.c:: New file.
464 2004-05-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
467 * decl2.c (check_classfn): For member templates, compare also the
468 template parameters to match the declaration.
469 * cp-tree.h: Adjust declaration of check_classfn.
470 * decl.c (start_decl, grokfndecl): Adjust callers of check_classfn.
471 * friend.c (do_friend): Likewise.
472 * pt.c (tsubst_friend_function): Likewise.
474 2004-05-01 Zack Weinberg <zack@codesourcery.com>
476 * decl.c (reshape_init): Do not apply TYPE_DOMAIN to a VECTOR_TYPE.
477 Instead, dig into the representation type to find the array bound.
479 2004-04-30 Jason Merrill <jason@redhat.com>
481 Refer to base members using COMPONENT_REFs where possible.
482 * class.c (build_simple_base_path): New fn.
483 (build_base_path): Use it for non-virtual base references.
484 (layout_class_type): Change base fields to their real type
485 after layout is done.
486 * cp-tree.h (IS_FAKE_BASE_TYPE): New macro.
487 * cp-lang.c (cxx_get_alias_set): Use it.
489 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
491 * class.c, cp-tree.h, decl.c, decl2.c, pt.c, rtti.c: Fix
494 2004-04-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
497 * parser.c (cp_parser_postfix_expression): typeid operator cannot be
498 used in integral constant expressions.
500 2004-04-22 Mark Mitchell <mark@codesourcery.com>
502 * init.c (build_aggr_init): Fix accidental use of C99 construct in
505 * class.c (initialize_array): Don't set TREE_HAS_CONSTRUCTOR on
507 * cp-tree.h (BRACE_ENCLOSED_INITIALIZER_P): New macro.
508 * decl.c (reshape_init): Use it.
509 * init.c (perform_member_init): Remove redundant condition.
510 (build_aggr_init): Adjust to handle brace-enclosed initializers
512 (expand_default_init): Use BRACE_ENCLOSED_INITIALIZER_P.
514 * parser.c (cp_parser_initializer_clause): Do not set
515 TREE_HAS_CONSTRUCTOR on the initializer.
516 * rtti.c (tinfo_base_init): Likewise.
517 (generic_initializer): Likewise.
518 (ptr_initializer): Likewise.
519 (ptm_initializer): Likewise.
520 (class_initializer): Likewise.
521 (get_pseudo_ti_init): Likewise.
522 * typeck2.c (digest_init): Use BRACE_ENCLOSED_INITIALIZER_P.
524 2004-04-22 Alan Modra <amodra@bigpond.net.au>
526 * name-lookup.c (anonymous_namespace_name): Make static.
528 2004-04-19 Roger Sayle <roger@eyesopen.com>
531 * class.c (build_base_path): Call fold whilst building the NULL
532 pointer check expression trees.
534 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
536 * init.c (build_new_1): Don't use type size argument for Java
537 _Jv_AllocObject call.
539 2004-04-09 Danny Smith <dannysmith@users.sourceforge.net>
541 * method.c (make_alias_for_thunk): Remove preprocessor guard on
542 declaration and definition.
544 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
547 * method.c (use_thunk): Test TARGET_USE_LOCAL_THUNK_ALIAS_P rather
550 2004-04-08 Jakub Jelinek <jakub@redhat.com>
552 * decl2.c (mark_used): Don't segfault if cfun != NULL but
553 current_function_decl == NULL.
555 2004-04-05 Nathan Sidwell <nathan@codesourcery.com>
558 * pt.c (check_cv_quals_for_unify): Ignore bogus CV quals at outer
561 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
563 * init.c (decl_constant_value): Don't look at DECL_INITIAL
565 * tree.c (bot_manip, build_min): Don't look at TREE_CONSTANT
566 or TREE_SIDE_EFFECTS of a type.
568 2004-04-02 Nathan Sidwell <nathan@codesourcery.com>
571 * pt.c (check_cv_quals_for_unify): Correct logic for disallowed
572 cv-qualifier unification.
573 * tree.c (cp_build_qualified_type_real): Renable DR295 logic.
575 2004-04-02 Jan Hubicka <jh@suse.cz>
577 * cp-lang. (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): Define.
578 * cp-tree.h (cp_update_decl_after_saving): Declare.
579 * tree.c (cp_update_decl_after_saving): Define.
581 2004-04-01 Mark Mitchell <mark@codesourcery.com>
584 * typeck.c (get_delta_difference): Call fold before returning the
587 2004-04-01 Richard Henderson <rth@redhat.com>
590 * decl.c (cp_finish_decl): Preserve TREE_READONLY more often.
591 * typeck2.c (split_nonconstant_init): Clear TREE_READONLY.
593 2004-04-01 Mark Mitchell <mark@codesourcery.com>
596 * name-lookup.c (maybe_push_cleanup_level): Robustify.
598 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
600 * class.c (VTT_TOP_LEVEL_P): Use unsigned_flag directly.
602 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
604 * call.c (joust): Use TYPE_UNSIGNED, not TREE_UNSIGNED.
605 * class.c (check_bitfield_decl): Likewise.
606 * cvt.c (type_promotes_to): Likewise.
607 * decl.c (finish_enum): Likewise.
608 * mangle.c (write_builtin_type): Likewise.
609 * semantics.c (finish_switch_cond, finish_unary_op_expr): Likewise.
610 * typeck.c (type_after_usual_arithmetic_conversions): Likewise.
611 (build_binary_op): Likewise.
613 2004-03-31 Jan Hubicka <jh@suse.cz>
615 * tree.h (optimize_function): Kill prototype.
616 * optimize.c (dump_function, optimize_function, dump_finction): Kill.
617 * semantics.c (expand_body): Kill.
619 2004-03-30 Mark Mitchell <mark@codesourcery.com>
622 * decl.c (start_decl_1): Do not decide whether or not to create a
623 new cleanup level until after the type has been completed.
626 * pt.c (tsubst_default_argument): Clear current_function_decl.
628 2004-03-30 Zack Weinberg <zack@codesourcery.com>
630 * name-lookup.c, parser.c: Use new shorter form of GTY markers.
632 2004-03-29 Zack Weinberg <zack@codesourcery.com>
634 * error.c (dump_function_name): If T's DECL_LANG_SPECIFIC
635 is null, just print the literal name and return.
637 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
639 * cxx-pretty-print.c: Fix comment typos.
641 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
643 * cxx-pretty-print.c, cxx-pretty-print.h, decl.h, friend.c:
646 2004-03-23 Ziemowit Laski <zlaski@apple.com>
648 * Make-lang.in (cp/mangle.o): Depend on $(TARGET_H).
649 * mangle.c (write_type): Add call to 'mangle_fundamental_type'
652 2004-03-23 Zack Weinberg <zack@codesourcery.com>
654 PR 12267, 12391, 12560, 13129, 14114, 14133
655 * cp-lang.c (c_reset_state): Delete.
656 (push_file_scope, pop_file_scope): New stubs.
657 * parser.c (c_parse_file): Call sorry() here if called more than once.
659 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
661 * typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
664 2004-03-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
666 * cxx-pretty-print.c (pp_cxx_parameter_declaration_clause): Declare.
668 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
670 * error.c (enum pad): Remove.
671 (dump_qualifiers): Likewise.
672 (dump_type): Replace dump_qualifiers with pp_cxx_cv_qualifier_seq.
673 (dump_aggr_type): Likewise.
674 (dump_type_suffix): Likewise.
675 (dump_simple_decl): Likewise.
676 (dump_function_decl): Likewise.
677 (cv_to_string): Likewise.
678 (dump_type_prefix): Likewise. Adjust return void.
679 * cxx-pretty-print.c (pp_cxx_cv_qualifier_seq): Move to
681 (pp_cxx_template_keyword_if_needed): Document.
682 (pp_cxx_qualified_id): Document case FUNCTION_DECL. Tidy.
683 (pp_cxx_expression): Handle NON_DEPENDENT_EXPR and
686 2004-03-21 Mark Mitchell <mark@codesourcery.com>
689 * decl.c (cp_finish_decl): Compute the size of arrays declared in
690 templates, if their type is non-dependent.
692 2004-03-19 Mark Mitchell <mark@codesourcery.com>
694 * call.c (build_op_delete_call): Do not forget the placement
695 arguments when iterating through mutiple delete operators.
697 * cp-tree.h (svaed_scope): Remove last_parms.
698 (NEW_DELETE_OPNAME_P): New macro.
699 (last_function_parms): Remove.
700 (do_friend): Adjust prototype.
701 * decl.c (grokparms): Return the PARM_DECLs directly, rather than
702 using last_function_parms.
703 (grokfndecl): Take the PARM_DECLs as an argument, rather than
704 using last_function_parms.
705 (grokdeclarator): Adjust accordingly. Do not form METHOD_TYPEs
706 for class-specific operator new and operator delete.
707 (grok_op_properties): Do not look for allocation functions with
709 (start_function): Use DECL_ARGUMENTS instead of
711 * decl.h (last_function_parms): Do not declare.
712 * decl2.c (grokclassfn): Do not use last_function_parms.
713 * friend.c (do_friend): Remove parmdecls parameter.
714 * name-lookup.c (push_to_top_level): Do not save last_function_parms.
715 (pop_from_top_level): Do not restore it.
716 * pt.c (check_explicit_specialization): Do not adjust
719 * name-lookup.c (do_local_using_decl): Create a local binding for
720 types brought in via using declarations.
722 * name-lookup.c (lookup_arg_dependent): Handle block-scope
723 function declarations correctly.
725 * semantics.c (finish_id_expression): Correct handling of
726 conversion operators to dependent types.
728 * typeck.c (lookup_destructor): Allow the use of destructors from
731 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
733 * cxx-pretty-print.c (pp_cxx_unqualified_id): Use
734 TEMPLATE_TYPE_PARM_INDEX instead of TYPE_FIELDS.
735 * search.c (dfs_unuse_fields): Add two more TREE_CODES that mean
736 the field is named TEMPLATE_TYPE_PARM_INDEX.
738 2004-03-19 Giovanni Bajo <giovannibajo@gcc.gnu.org>
741 * parser.c (cp_parser_functional_cast): A cast to anything
742 but integral or enumaration type is not an integral constant
744 * pt.c (value_dependent_expression_p): Handle cast expressions
745 without operands (such as "int()").
747 2004-03-18 Mark Mitchell <mark@codesourcery.com>
749 * semantics.c (finish_pseudo_destructor_expr): Allow differing
750 cv-qualification between the type named by the
751 pseudo-destructor-name and the object-type.
753 * search.c (accessible_base_p): Handle non-proper bases.
755 * name-lookup.c (do_nonmember_using_decl): If a using declaration
756 refers to a single overloaded function, set the type of the
758 * tree.c (lvalue_type): Simplify.
759 * typeck.c (type_unknown_p): Do not assume all OVERLOADs have an
761 (build_unary_op): Handle OVERLOADs with known types.
763 * decl.c (duplicate_decls): Do not destroy DECL_ARGUMENTS for
766 * parser.c (cp_parser_postfix_expression): Handle the use of
767 "typename" in non-dependent contexts. Convert appropriately when
768 when using a qualified name after "->" or ".".
770 * call.c (conditional_conversion): Honor the requirement that some
771 conversions refer to the original object.
773 2004-03-18 Mark Mitchell <mark@codesourcery.com>
775 * call.c (build_conditional_expr): Do not call force_rvalue for
776 operands of void_type when the conditional expression itself has
778 * name-lookup.c (pushdecl): Don't consider a declaration of a
779 function named "main" to be an overload of a type named "main".
780 * parser.c (cp_parser_template_name): Perform name lookup when the
781 template name is proceeded by "template" if the qualifying scope
783 * typeck.c (composite_pointer_type_r): Correctly handle
784 pointer-to-member types.
785 (build_const_cast): Likewise.
787 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
789 * cp-tree.def (TEMPLATE_TYPE_PARM, TYPEOF_TYPE): Update comments.
790 * cp-tree.h (NEW_EXPR_USE_GLOBAL, DELETE_EXPR_USE_GLOBAL): Add check.
791 (DELETE_EXPR_USE_VEC, COMPOUND_EXPR_OVERLOADED): Likewise.
792 (KOENIG_LOOKUP_P, PTRMEM_OK_P, TEMPLATE_TYPE_PARM_INDEX): Likewise.
793 (TYPENAME_TYPE_FULLNAME): Add check and use type.values.
794 (TYPEOF_TYPE_EXPR): New macro.
795 * class.c (finish_struct_bits): Use TYPE_VFIELD and TYPE_METHODS.
796 * error.c (dump_type): Use TYPEOF_TYPE_EXPR.
797 * pt.c (tsubst): Likewise.
798 * semantics.c (finish_typeof): Likewise.
799 * search.c (dfs_unuse_fields): Handle TYPENAME_TYPE, TYPEOF_TYPE,
800 and TEMPLATE_TYPE_PARM.
801 * typeck.c (comptypes): Use TYPE_ORIG_SIZE_TYPE, not TYPE_DOMAIN.
802 (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
804 2004-03-16 Mark Mitchell <mark@codesourcery.com>
807 * cp-tree.h (build_new_op): Change prototype.
808 (build_x_binary_op): Likewise.
809 * call.c (build_new_op): Add overloaded_p parameter.
810 * decl2.c (grok_array_decl): Adjust call to build_new_op.
811 * parser.c (cp_parser_binary_expression): Note that uses of
812 overloaded operators prevents an expression from being considered
813 an integral constant.
814 * pt.c (tsubst_copy_and_build): Adjust calls to build_new_op and/or
816 * semantics.c (finish_call_expr): Likewise.
817 * typeck.c (rationalize_conditional_expr): Likewise.
818 (build_x_indirect_ref): Likewise.
819 (build_x_binary_op): Likewise.
820 (build_x_unary_op): Likewise.
821 (build_x_compound_expr): Likewise.
822 (build_modify_expr): Likewise.
823 * typeck2.c (build_x_arrow): Likewise.
825 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
827 * cp-lang.c, ptree.c: Update copyright.
829 2004-03-13 Mark Mitchell <mark@codesourcery.com>
832 * parser.c (cp_parser_non_integral_constant_expression): Encode
833 more of the idiom that surrounded calls to this function within
835 (cp_parser_primary_expression): Adjust accordingly.
836 (cp_parser_postfix_expression): Likewise.
837 (cp_parser_unary_expression): Likewise.
838 (cp_parser_cast_expression): Likewise.
839 (cp_parser_assignment_expression): Likewise.
840 (cp_parser_expression): Likewise.
841 (cp_parser_new_expression): Note that new-expressions are not
842 allowed in integral constant expressions.
843 (cp_parser_delete_expression): Likewise.
845 2004-03-12 Matt Austern <austern@apple.com>
847 * decl2.c (maybe_make_one_only): Look at
848 TARGET_EXPLICIT_INSTANTIATION_ONE_ONLY when deciding whether
849 to make an explicit instantiation weak.
850 * method.c (use_thunk): Make sure we call comdat_linkage
852 * pt.c (do_type_instantiation): On systems where weak symbols
853 don't go in a static archive's TOC, explicit instantiation of a
854 class must imply *explicit* instantiation of its memeber.
856 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
858 * call.c, cp-tree.h, pt.c: Fix comment typos.
860 2004-03-10 Mark Mitchell <mark@codesourcery.com>
863 * decl.c (xref_tag): Disregard non-type declarations when
864 looking up a tagged type.
866 2004-03-09 Nathan Sidwell <nathan@codesourcery.com>
869 * call.c (convert_like_real): Build a const qualified temporary,
870 when testing ctor access.
872 2004-03-09 Mark Mitchell <mark@codesourcery.com>
874 * call.c (initialize_reference): Fix typo.
876 2004-03-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
879 * pt.c (determine_specialization): For member templates, match also
883 * parser.c (cp_parser_initializer_clause): Fold initializer if it is
885 * pt.c (tsubst_copy_and_build): Handle NOP_EXPRs.
887 2004-03-09 Mark Mitchell <mark@codesourcery.com>
890 * call.c (initialize_reference): Handle initializers that are
891 class-member access expressions applies to rvalues.
893 2004-03-09 Mark Mitchell <mark@codesourcery.com>
896 * name-lookup.c (supplement_binding): Ignore functions that are
897 marked DECL_ANTICIPATED.
899 2004-03-08 Mark Mitchell <mark@codesourcery.com>
902 * class.c (check_field_decls): Complain about non-static data
903 members of reference type in unions. Propagate
904 CLASSTYPE_REF_FIELDS_NEED_INIT and
905 CLASSTYPE_READONLY_FIELDS_NEED_INIT from the types of non-static
907 * init.c (perform_member_init): Complain about mbmers with const
908 type that are not explicitly initialized.
910 2004-03-08 Mark Mitchell <mark@codesourcery.com>
912 * class.c (check_methods): Don't use IDENTIFIER_ERROR_LOCUS.
913 * cp-tree.h (DECL_INVALID_OVERRIDER_P): New macro.
914 (lang_identifier): Remove implicit_decl and error_locus.
915 (IDENTIFIER_IMPLICIT_DECL): Remove.
916 (SET_IDENTIFIER_IMPLICTI_DECL): Likewise.
917 (IDENTIFIER_ERROR_LOCUS): Likewise.
918 (SET_IDENTIFIER_ERROR_LOCUS): Likewise.
919 (TYPE_ASSEMBLER_NAME_STRING): Likewise.
920 (TYPE_ASSEMBLER_NAME_LENGTH): Likewise.
921 (implicitly_declare): Remove.
922 * decl.c (warn_extern_redeclared_static): Remove check of
923 IDENTIFIER_IMPLICIT_DECL.
924 (duplicate_decls): Don't check IDENTIFIER_ERROR_LOCUS.
925 (implicitly_declare): Remove.
926 (grok_ctor_properties): Don't set IDENTIFIER_ERROR_LOCUS.
927 (start_function): Don't check IDENTIFIER_IMPLICIT_DECL.
928 (start_method): Don't check IDENTIFIER_ERROR_LOCUS.
929 * lex.c (unqualified_name_lookup_error): Create a dummy VAR_DECL
930 in the innermost scope, rather than at namespace scope.
931 * name-lookup.c (push_local_binding): Give it external linkage.
932 (pushdecl): Remove dead code.
933 * name-lookup.h (push_local_binding): Declare it.
934 * ptree.c (cxx_print_identifier): Don't print
935 IDENTIFIER_IMPLICIT_DECL or IDENTIFIER_ERROR_LOCUS.
936 * search.c (check_final_overrider): Use DECL_INVALID_OVERRIDER_P,
937 not IDENTIFIER_ERROR_LOCUS.
938 * typeck.c (build_function_call): Remove dead code.
940 2004-03-08 Jason Merrill <jason@redhat.com>
943 * decl.c (xref_tag): Remove attribute handling.
944 * cp-tree.h: Adjust prototype.
945 * decl.c, parser.c, rtti.c: Adjust callers.
946 * parser.c (cp_parser_class_head): Pass back attributes in the
948 (cp_parser_class_specifier): Adjust.
950 2004-03-08 Matt Austern <austern@apple.com>
953 * name-lookup.c (add_decl_to_level): Add extern variables, as well
954 as static, to static_decls array.
956 2004-03-05 Jason Merrill <jason@redhat.com>
958 * tree.c (list_hash_pieces): s/TYPE_HASH/TREE_HASH/.
960 2004-03-04 Geoffrey Keating <geoffk@apple.com>
962 * decl.c (grokfndecl): Update old incorrect comment.
963 (grokvardecl): Diagnose C++ variables of type with no linkage.
965 2004-03-01 Mark Mitchell <mark@codesourcery.com>
968 * pt.c (build_non_dependent_expr): Do not create a
969 NON_DEPENDENT_EXPR for a THROW_EXPR.
971 2004-03-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
974 * error.c (dump_expr): Handle THROW_EXPR.
976 2004-03-01 Mark Mitchell <mark@codesourcery.com>
979 * parser.c (cp_parser_postfix_expression): Do not perform Koenig
980 lookup if ordinary name-lookup finds a non-function.
981 * pt.c (tsubst_copy_and_build): Likewise.
984 * parser.c (cp_parser_late_parsing_default_args): Check that there
985 are no extra tokens after the end of the default-argument
988 2004-03-01 Mark Mitchell <mark@codesourcery.com>
991 * lex.c (retrofit_lang_decl): Treat entities with no linkage as
992 having C++ linkage for name-mangling purposes.
995 * parser.c (cp_parser_direct_declarator): Recognize constructor
996 declarators that use a template-id to name the class being
1000 * pt.c (tsubst_qualified_id): Handle dependent qualifying scopes.
1001 (tsubst_expr): Do not call tsubst_copy, even when
1002 processing_template_decl.
1004 2004-03-01 Jeff Law <law@redhat.com>
1006 * init.c (build_vec_delete_1): Convert 2nd argument to NE_EXPR to
1009 2004-02-29 Mark Mitchell <mark@codesourcery.com>
1012 * name-lookup.h (push_scope): Change prototype.
1013 * name-lookup.c (push_scope): Do not reenter the current class
1015 * decl.c (grokfndecl): Check return code from push_scope before
1017 * decl2.c (check_classfn): Likewise.
1018 * parser.c (cp_parser_conversion_function_id): Likewise.
1019 (cp_parser_init_declarator): Likewise.
1020 (cp_parser_direct_declarator): Likewise.
1021 (cp_parser_class_specifier): Likewise.
1022 (cp_parser_class_head): Likewise.
1023 (cp_parser_lookup_name): Likewise.
1024 (cp_parser_constructor_declarator_p): Likewise.
1025 * pt.c (instantiate_class_template): Likewise.
1026 (resolve_typename_type): Likewise.
1028 2004-02-29 Mark Mitchell <mark@codesourcery.com>
1031 * typeck.c (build_modify_expr): Remove more of the cast-as-lvalue
1035 * class.c (update_vtable_entry_for_fn): Do not go through
1036 covariance machinery if the type returned by an overrider is the
1037 same as the original.
1039 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
1041 * call.c: Fix a comment typo.
1043 2004-02-27 Ziemowit Laski <zlaski@apple.com>
1045 * tree.c (pod_type_p): Treat VECTOR_TYPEs as PODs.
1047 2004-02-26 Mark Mitchell <mark@codesourcery.com>
1050 * parser.c (cp_parser_parameter_declaration_list): Commit
1051 to fewer tentative parses.
1053 2004-02-26 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1056 * pt.c (dependent_type_p_r): A template template parameter is a
1059 2004-02-26 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1062 * mangle.c (write_template_arg_literal): Don't rely on identity for
1065 2004-02-24 Jason Merrill <jason@redhat.com>
1067 * tree.c (build_exception_variant): Use check_qualified_type.
1069 2004-02-23 Zack Weinberg <zack@codesourcery.com>
1070 Kazu Hirata <kazu@cs.umass.edu>
1072 * decl.c (cxx_init_decl_processing): Don't check
1073 flag_writable_strings.
1075 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
1078 * typeck.c (maybe_warn_about_returning_address_of_location):
1079 Change check for VAR_DECL to use DECL_P instead.
1081 2004-02-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1084 * cvt.c (build_expr_type_conversion): Type must be complete before
1085 looking up for conversions.
1087 2004-02-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1090 * name-lookup.c (arg_assoc_class): Don't look into template
1091 arguments if it is not a primary template.
1093 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1096 * method.c (use_thunk): Always clone function argument tree.
1098 2004-02-20 Mark Mitchell <mark@codesourcery.com>
1101 * pt.c (tsubst_copy): Call mark_used for a PARM_DECL.
1104 * semantics.c (begin_class_definition): Set TYPE_PACKED correctly
1105 for all type variants.
1107 2004-02-19 Mark Mitchell <mark@codesourcery.com>
1110 * decl.c (duplicate_decls): Return error_mark_node for invalid
1112 * name-lookup.c (push_namespace): Ignore the return value from
1114 * pt.c (push_template_decl_real): Robustify.
1117 * name-lookup.c (push_class_level_binding): Do not complain about
1118 adding a binding for a member whose name is the same as the
1119 enclosing class if the member is located in a base class of the
1122 2004-02-19 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1125 * parser.c (cp_parser_new_expression): Parse an ill-formed
1126 direct-new-declarator after a parenthesized type-id to emit good
1129 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1131 * cp-tree.def, cvt.c: Update copyright.
1133 2004-02-17 Mark Mitchell <mark@codesourcery.com>
1136 * cp-tree.h (abi_version_at_least): Remove.
1137 * mangle.c: Include flags.h.
1139 2004-02-15 Mark Mitchell <mark@codesourcery.com>
1142 * call.c (build_conditional_expr): Handle conversions between
1143 class types which result in differently cv-qualified type
1147 * class.c (delete_duplicate_fields_1): Remove.
1148 (delete_duplicate_fields): Likewise.
1149 (finish_struct_anon): Remove check for members with the same name
1150 as their enclosing class.
1151 (check_field_decls): Do not call duplicate_fields.
1152 * decl.c (grokdeclarator): Remove check for static data members
1153 with the same name as their enclosing class.
1154 * name-lookup.c (push_class_level_binding): Check for members with
1155 the same name as their enclosing class.
1157 2004-02-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
1160 * error.c (dump_decl): Handle TEMPLATE_TYPE_PARM.
1162 2004-02-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1165 * pt.c (push_template_decl_real): Make sure DECL_TI_ARGS of DECL
1166 has full set of arguments.
1168 2004-02-13 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1171 * error.c (dump_decl) <ALIAS_DECL>: Dump as simple declarations.
1173 2004-02-13 Mark Mitchell <mark@codesourcery.com>
1176 * cp-tree.h (delete_sanity): Change prototype.
1177 * decl2.c (delete_sanity): Make doing_vec a bool, not an int.
1178 Remove dead code. Adjust code to warn about deleting an array.
1179 * typekc.c (decay_conversion): Use build_address and build_nop.
1182 * search.c (accessible_p): Do not check access in thunks.
1185 * call.c (build_conditional_expr): Call force_rvalue on the
1186 non-void operand in the case that one result is a throw-expression
1187 and the other is not.
1189 2004-02-13 Ian Lance Taylor <ian@wasabisystems.com>
1192 * parser.c (cp_parser_pseudo_destructor_name): Check for errors on
1193 the type name and look ahead for ::~, and bail out early with a
1194 better error message if the parse is going to fail.
1196 2004-02-12 Mark Mitchell <mark@codesourcery.com>
1198 * call.c (conversion_kind): New type.
1199 (conversion_rank): Likewise.
1200 (conversion): Likewise.
1201 (CONVERSION_RANK): New macro.
1202 (conversion_obstack): New variable.
1203 (obstack_initialized): Likewise.
1204 (z_candidate): Change type of convs and second_conv.
1205 (candidate_warning): New type.
1206 (IDENTITY_RANK): Remove.
1207 (EXACT_RANK): Likewise.
1208 (PROMO_RANK): Likewise.
1209 (STD_RANK): Likewise.
1210 (PBOOL_RANK): Likewise.
1211 (USER_RANK): Likewise.
1212 (ELLIPSIS_RANK): Likewise.
1213 (BAD_RANK): Likewise.
1214 (ICS_RANK): Likewise.
1215 (ICS_STD_RANK): Likewise.
1216 (ICS_USER_FLAG): Likewise.
1217 (ICS_ELLIPSIS_FLAG): Likewise.
1218 (ICS_THIS_FLAG): Likewise.
1219 (ICS_BAD_FLAG): Likewise.
1220 (NEED_TEMPORARY_P): Likewise.
1221 (CHECK_COPY_CONSTRUCTOR_P): Likewise.
1222 (USER_CONV_CAND): Likewise.
1223 (USER_CONV_FN): Likewise.
1224 (conversion_obstack_alloc): New function.
1225 (alloc_conversion): Likewise.
1226 (validate_conversion_obstack): Likewise.
1227 (alloc_conversions): Likewise.
1228 (build_conv): Adjust to deal with new conversion data structures.
1229 (build_identity_conv): New function.
1230 (build_ambiguous_conv): Likewise.
1231 (standard_conversion): Adjust to deal with new conversion data
1233 (convert_class_to_reference): Likewise.
1234 (direct_reference_binding): Likewise.
1235 (reference_binding): Likewise.
1236 (implicit_conversion): Likewise.
1237 (add_candidate): Likewise.
1238 (add_function_candidate): Likewise.
1239 (add_conv_candidate): Likewise.
1240 (build_builtin_candidate): Likewise.
1241 (print_z_candidate): Likewise.
1242 (merge_conversion_sequences): Likewise.
1243 (build_user_type_conversion_1): Likewise.
1244 (build_user_type_conversion): Likewise.
1245 (build_new_function_call): Likewise.
1246 (build_object_call): Likewise.
1247 (conditional_conversion): Likewise.
1248 (build_conditional_expr): Likewise.
1249 (build_new_op): Likewise.
1250 (build_op_delete_call): Likewise.
1251 (convert_like_real): Likewise.
1252 (build_over_call): Likewise.
1253 (build_new_method_call): Likewise.
1254 (is_subseq): Likewise.
1255 (maybe_handle_implicit_object): Likewise.
1256 (maybe_handle_ref_bind): Likewise.
1257 (compare_ics): Likewise.
1258 (source_type): Likewise.
1259 (add_warning): Likewise.
1261 (can_convert_arg): Likewise.
1262 (can_convert_arg_bad): Likewise.
1263 (perform_implicit_conversion): Likewise.
1264 (perform_direct_initialization_if_possible): Likewise.
1265 (initialize_reference): Likewise.
1266 * cp-lang.c (cp_tree_size): Do not handle WRAPPER.
1267 * cp-tree.def (WRAPPER): Likewise.
1268 (IDENTITY_CONV): Remove.
1269 (LVALUE_CONV): Likewise.
1270 (QUAL_CONV): Likewise.
1271 (STD_CONV): Likewise.
1272 (PTR_CONV): Likewise.
1273 (PMEM_CONV): Likewise.
1274 (BASE_CONV): Likewise.
1275 (REF_BIND): Likewise.
1276 (USER_CONV): Likewise.
1277 (AMBIG_CONV): Likewise.
1278 (RVALUE_CONV): Likewise.
1279 * cp-tree.h (tree_wrapper): Remove.
1280 (WRAPPER_ZC): Remove.
1281 (lang_tree_node): Remove wrapper.
1282 (LOOKUP_SPECULATIVELY): Remove.
1283 (build_op_delete_call): Adjust prototype.
1284 (validate_conversion_obstack): Declare.
1285 (build_zc_wrapper): Remove.
1286 * cvt.c (convert_to_reference): Remove dead code.
1287 (ocp_convert): Likewise.
1288 * decl.c (redeclaration_error_message): Correct handling of
1290 (finish_destructor_body): Do not use LOOKUP_SPECULATIVELY.
1291 (cp_tree_node_structure): Remove WRAPPER case.
1292 * decl2.c (finish_file): Call validate_conversion_obstack.
1293 * init.c (build_new_1): Remove use of LOOKUP_SPECULATIVELY.
1294 (build_op_delete_call): Likewise.
1295 (build_x_delete): Likewise.
1296 (build_delete): Adjust call to build_op_delete_call.
1297 * pt.c (tsubst_friend_declaration): Adjust code to determine
1298 whether or not a friend template is a definition.
1299 (tsubst_decl): Clear DECL_INITIAL for new FUNCTION_DECLs.
1300 * tree.c (build_zc_wrapper): Remove.
1302 2004-02-12 Zack Weinberg <zack@codesourcery.com>
1304 * cp-lang.c: Don't define LANG_HOOKS_BUILTIN_TYPE_DECLS.
1305 * cp-tree.h: Don't declare cxx_builtin_type_decls.
1306 * decl.c (builtin_type_decls, cxx_builtin_type_decls): Delete.
1307 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
1309 2004-02-10 Mark Mitchell <mark@codesourcery.com>
1311 * typeck.c (lookup_destructor): Fix typo in error message.
1313 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
1315 * call.c, parser.c, tree.c: Fix comment typos.
1317 2004-02-07 Zack Weinberg <zack@codesourcery.com>
1320 * optimize.c (maybe_clone_body): Don't update DECL_ESTIMATED_INSNS.
1321 * decl.c (duplicate_decls, start_function): Likewise.
1323 2004-02-07 Zack Weinberg <zack@codesourcery.com>
1325 * name-lookup.c (pushdecl): Issue shadow warnings directly.
1326 * parser.c (free_parser_stacks): Delete.
1328 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
1330 * rtti.c: Update copyright.
1332 2003-02-06 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1335 * decl.c (require_complete_types_for_parms): Do not insert
1336 error_mark_node in the parameter list.
1338 2003-02-06 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1341 * parser.c (cp_parser_enclosed_template_argument_list): Emit straight
1342 error when terminator can not be found.
1344 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
1346 Make-lang.in (po-generated): Delete.
1348 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
1350 * call.c (type_passed_as): Replace PROMOTE_PROTOTYPES with
1351 targetm.calls.promote_prototypes.
1353 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1357 2004-01-15 Geoffrey Keating <geoffk@apple.com>
1359 * cp/lex.c (handle_pragma_interface): Duplicate string from tree.
1360 (handle_pragma_implementation): Likewise.
1362 2004-02-05 Mark Mitchell <mark@codesourcery.com>
1365 * typeck.c (lookup_destructor): Tweak error message.
1367 2004-02-05 Jan Hubicka <jh@suse.cz>
1369 * tree.c (cp_cannot_inline_tree_fn): Allow inlining of comdat
1372 2003-02-05 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1375 * parser.c (cp_parser_diagnose_invalid_typename): Removed parsing
1376 code, only emits the diagnostic now. Added lookup of the identifier
1377 and support for qualified ids.
1378 (cp_parser_parse_and_diagnose_invalid_type_name): New function.
1379 Parse an (invalid) type name as id-expression within a declarator.
1380 (cp_parser_simple_declaration): Use it.
1381 (cp_parser_member_declaration): Likewise.
1382 (cp_parser_make_typename_type): New function. Handle errors through
1383 cp_parser_diagnose_invalid_typename.
1384 (cp_parser_elaborated_type_specifier): Use it.
1386 2004-02-04 Mark Mitchell <mark@codesourcery.com>
1389 * call.c (convert_like_real): Use "converting" rather than
1390 "argument" as the descriptive keyword to
1391 dubious_conversion_warnings.
1392 * typeck.c (convert_for_assignment): Do not call
1393 dubious_conversion_warnings.
1395 2004-02-04 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1398 * init.c (build_delete): Emit a more informative error message in
1399 case of an incomplete type, and on the correct source line.
1401 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1403 * error.c, search.c: Update copyright.
1405 2004-02-04 Mark Mitchell <mark@codesourcery.com>
1408 * rtti.c (tinfo_base_init): Use import_export_tinfo to decide the
1409 linkage for the typeinfo name string.
1411 2004-02-04 Mark Mitchell <mark@codesourcery.com>
1414 * cp-tree.h (fold_non_dependent_expr): New function.
1415 * parser.c (cp_parser_fold_non_dependent_expr): Remove.
1416 (cp_parser_template_argument): Use fold_non_dependent_expr.
1417 (cp_parser_direct_declarator): Likewise.
1418 * pt.c (fold_non_dependent_expr): New function.
1419 (convert_nontype_argument): Use it.
1420 (tsubst_qualified_id): Simplify.
1421 (tsubst_copy_and_build): Likewise.
1423 2004-02-04 Mark Mitchell <mark@codesourcery.com>
1425 * decl.c (cxx_push_function_context): Do not set
1426 current_function_is_thunk.
1427 * method.c (use_thunk): Set CALL_FROM_THUNK on the call to the
1430 2003-02-04 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1433 * pt.c (more_specialized_class): Increase processing_template_decl
1434 while partial ordering.
1436 2004-02-03 Mark Mitchell <mark@codesourcery.com>
1439 * decl.c (start_function): Do not call pushdecl for any
1440 instantiation or specialization of a primary template.
1442 2004-02-03 Mark Mitchell <mark@codesourcery.com>
1445 * parser.c (cp_parser_class_name): Robustify.
1448 * parser.c (cp_parser_cache_group): Do not consume the EOF token.
1451 * semantics.c (finish_id_expression): Do not return an
1452 IDENTIFIER_NODE when lookup finds a PARM_DECL.
1454 2004-02-03 Mark Mitchell <mark@codesourcery.com>
1457 * pt.c (build_non_dependent_expr): Do not build
1458 NON_DEPENDENT_EXPRs for FUNCTION_DECLs or TEMPLATE_DECLs.
1461 * semantics.c (finish_id_expression): Do not return an
1462 IDENTIFIER_NODE when lookup finds a VAR_DECL.
1465 * parser.c (cp_parser_simple_declaration): When skipping to the
1466 end of the statement swallow the terminating semicolon.
1468 2004-02-02 Mark Mitchell <mark@codesourcery.com>
1471 * init.c (build_offset_ref): Improve error recovery for invalid
1472 uses of non-static member functions.
1475 * cp-tree.h (cp_build_type_attribute_variant): New function.
1476 * class.c (build_clone): Use cp_build_type_attribute_variant.
1477 * decl.c (duplicate_decls): Likewise.
1478 * pt.c (copy_default_args_to_explicit_spec): Likewise.
1479 (tsubst_function_type): Likewise.
1480 * tree.c (build_exception_variant): Check attributes before
1481 concluding that two types are the same.
1482 (cp_build_type-attribute_variant): New method.
1483 * typeck.c (merge_types): Use cp_build_type_attribute_variant.
1486 * call.c (convert_class_to_reference): Keep better track of
1487 pedantically invalid user-defined conversions.
1489 2004-02-01 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1492 * pt.c (tsubst_qualified_id): Improved error message when a type
1493 is expected but not found.
1495 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
1497 * class.c: Fix comment typos.
1499 * error.c: Likewise.
1500 * parser.c: Likewise.
1502 * search.c: Likewise.
1503 * typeck.c: Likewise.
1505 2004-01-30 Richard Henderson <rth@redhat.com>
1508 * method.c (use_thunk): Don't force_target_expr for void thunks.
1509 * tree.c (build_target_expr_with_type): Assert non-void type.
1510 (force_target_expr): Likewise.
1512 2004-01-30 Michael Matz <matz@suse.de>
1514 * parser.c (cp_parser_labeled_statement): Accept case ranges.
1516 2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1520 * decl.c (grokdeclarator): Check immediatly type completeness for
1521 non-dependent types.
1523 2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1526 * call.c (convert_arg_to_ellipsis): Don't emit a warning if within
1527 a sizeof expression.block
1529 2004-01-29 Mark Mitchell <mark@codesourcery.com>
1532 * mangle.c (write_encoding): Correct encoding of member template
1535 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1537 * parser.c (cp_parser_template_id): Parse tentatively `[:' after a
1538 template name as it was `<::' (digraph typo).
1539 (cp_parser_nth_token_starts_template_argument_list_p): New function.
1540 (cp_parser_id_expression): Use it.
1541 (cp_parser_nested_name_specifier_opt): Likewise.
1542 (cp_parser_template_name): Likewise.
1543 (cp_parser_class_name): Likewise.
1544 (cp_lexer_get_preprocessor_token): Use c_lex_with_flags.
1546 2004-01-28 Mark Mitchell <mark@codesourcery.com>
1549 * typeck.c (merge_types): Do not merge attributes into
1553 * parser.c (cp_parser_direct_declarator): Do not prevent
1554 backtracking inside a parenthesized declarator.
1555 (cp_parser_parameter_declaration): Fix typo in comment.
1557 2004-01-28 Jan Hubicka <jh@suse.cz>
1559 * semantics.c (expand_body) Do emit_associated_thunks before
1562 2004-01-27 Devang Patel <dpatel@apple.com>
1564 * name-lookup.c: Include "debug.h"
1565 (do_namespace_alias): Invoke debug_hooks to emit debug info
1566 for namespace alias.
1567 (do_local_using_decl): Invoke debug_hooks to emit debug info
1569 (do_class_using_decl): Same.
1570 (do_toplevel_using_decl): Same.
1571 (do_using_directive): Same.
1572 (cp_emit_debug_info_for_using): New function.
1573 * Make-lang.in (cp/parser.o): Depend on debug.h
1574 (cp/name-lookup.o): Same.
1576 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1578 * cp-tree.h (language_function, lang_type_header): Use
1580 * name-lookup.h (cp_binding_level): Likewise.
1582 2004-01-26 Mark Mitchell <mark@codesourcery.com>
1585 * semantics.c (finish_for_expr): Check for unresolved overloaded
1588 * class.c (add_method): Just check processing_template_decl to
1589 determine whether or not we are within a template.
1590 * decl2.c (maybe_retrofit_in_chrg): Likewise.
1591 * init.c (decl_constant_value): Check the type of the declaration,
1593 * name-lookup.c (maybe_push_to_top_level): Rename to ...
1594 (push_to_top_level): ... this.
1595 * name-lookup.h (maybe_push_to_top_level): Do not declare it.
1596 * pt.c (push_template_decl_real): Reorder condition for speed.
1597 (convert_template_argument): Use dependency-checking functions in
1598 place of uses_template_parms.
1599 (lookup_template_class): Avoid calling uses_template_parms more
1601 (uses_template_parms): Reimplement, using dependency-checking
1603 (instantiate_class_template): Use push_to_top_level, not
1604 maybe_push_to_top_level.
1605 (type_unification_real): Simplify.
1606 (type_dependent_expression_p): Handle OFFSET_REFs and
1608 (any_dependent_template_arguments_p): Handle multiple levels of
1610 * semantics.c (expand_or_defer_fn): Do not check
1611 uses_template_parms for template instantiations.
1612 * typeck.c (comptypes): Avoid calling cp_type_quals.
1614 2004-01-25 Mark Mitchell <mark@codesourcery.com>
1617 * call.c (build_over_call): Do not convert arguments when
1618 processing a template.
1619 * pt.c (build_non_dependent_expr): Do not build a
1620 NON_DEPENDENT_EXPR for arithmetic constants.
1622 2004-01-25 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1625 * parser.c (cp_parser_type_parameter): When cp_parser_id_expression
1626 returns a TYPE_DECL. no further lookup is required.
1627 * semantics.c (check_template_template_default_arg): A TYPE_DECL
1628 is invalid. Rework to give better diagnostics.
1630 2004-01-25 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1633 * pt.c (instantiate_class_template): Add an error_mark_node
1635 (tsubst_decl) <TEMPLATE_DECL case>: Likewise.
1637 2004-01-23 Andrew Pinski <pinskia@physics.uc.edu>
1640 * decl.c (finish_function): Move the call to
1641 finish_fname_decls below the call to
1642 finish_eh_spec_block.
1644 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
1646 * optimize.c, typeck2.c: Update copyright.
1648 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
1650 * Make-lang.in, call.c, class.c, decl2.c, except.c, expr.c,
1651 init.c, mangle.c, typeck.c: Update copyright.
1653 2004-01-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1655 * parser.c (cp_parser_class_specifier): Prevent garbage collection.
1657 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
1659 * Make-lang.in: Replace $(docdir) with doc.
1660 (c++.info, c++.srcinfo): Dummy entry.
1661 (c++.man, c++.srcman): New rules.
1662 (c++.install-man): Revamp rule.
1664 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
1666 * Make-lang.in (CXX_INSTALL_NAME, GXX_INSTALL_NAME,
1667 CXX_TARGET_INSTALL_NAME, GXX_TARGET_INSTALL_NAME): Define via a
1668 immediate $(shell) instead of deferred backquote.
1670 2004-01-19 Mark Mitchell <mark@codesourcery.com>
1673 * parser.c (cp_parser_postfix_expression): When encountering
1674 incomplete type on left-hand side of "->" or ".", treat the entire
1675 expression as erroneous.
1678 * call.c (build_field_call): Remove.
1679 (n_build_method_call): Likewise.
1680 (build_method_call): Likewise.
1681 (build_new_method_call): Do not call build_field_call.
1682 * class.c (n_build_method_call): Remove.
1683 (print_class_statistics): Do not print it.
1684 * cp-tree.h (build_method_call): Remove declaration.
1685 (finish_object_call_expr): Likewise.
1686 (build_new_1): Do not use build_method_call.
1687 * parser.c (cp_parser_postfix_expression): Use finish_call_expr
1688 when the function appearing on the right-hand-side of "." or "->"
1689 is not actually a function.
1690 * pt.c (tsubst_copy_and_build): Likewise.
1691 * semantics.c (finish_object_call_expr): Remove.
1693 2004-01-18 Mark Mitchell <mark@codesourcery.com>
1696 * pt.c (tsubst): Use finish_typeof.
1698 2004-01-18 Jason Merrill <jason@redhat.com>
1701 * except.c (build_throw): In a template, set
1702 current_function_returns_abnormally.
1704 2004-01-17 Fred Fish <fnf@intrinsity.com>
1707 * decl.c (reshape_init): Handle VECTOR_TYPE like ARRAY_TYPE,
1708 except don't call array_type_nelts() with a VECTOR_TYPE.
1710 2004-01-16 Jan Hubicka <jh@suse.cz>
1712 * mangle.c (write_mangled_name): Remove inline modifier.
1714 2004-01-16 Mark Mitchell <mark@codesourcery.com>
1717 * decl.c (compute_array_index_type): Fix grammar in comment.
1718 * init.c (build_zero_init): Handle zero-sized arrays correctly.
1721 * call.c (name_as_c_string): Print conversion operator names
1725 * call.c (initialize_reference): Pass -1 for inner parameter to
1728 2004-01-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1731 * parser.c (cp_parser_base_specifier): Check for an invalid
1732 keyword `typename' and emit an user-friendly error message.
1734 2004-01-15 Geoffrey Keating <geoffk@apple.com>
1737 * cp/lex.c (handle_pragma_interface): Duplicate string from tree.
1738 (handle_pragma_implementation): Likewise.
1740 2004-01-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1743 * typeck.c (build_class_member_access_expr): Allow to access members
1744 of the currently open class.
1745 (finish_class_member_access_expr): Likewise.
1747 2004-01-15 Alexandre Oliva <aoliva@redhat.com>
1750 * name-lookup.c (validate_nonmember_using_decl): Take scope and
1751 name by value, instead of computing them.
1752 (do_local_using_decl, do_toplevel_using_decl): Add scope and name
1753 arguments. Pass them to validate_nonmember_using_decl.
1754 * name-lookup.h (do_local_using_decl): Adjust.
1755 (do_toplevel_using_decl): Likewise.
1756 * parser.c (cp_parser_using_declaration): Likewise.
1757 * pt.c (tsubst_expr): Likewise.
1759 2004-01-15 Alexandre Oliva <aoliva@redhat.com>
1763 * name-lookup.c (qualified_lookup_using_namespace): Search
1764 strongly-associated namespaces first, and only then try other
1767 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
1769 * Make-lang.in (c++.srcextra): Dummy entry.
1771 2004-01-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1774 * parser.c (cp_parser_template_name): Don't try to parse a
1775 conversion-function-id, as it cannot be a template-name.
1776 (cp_parser_simple_type_specifier): Check for invalid template-ids
1777 even after a built-in type.
1779 2004-01-14 Jan Hubicka <jh@suse.cz>
1782 * pt.c (instantiate_decl): Do not increase function_depth.
1784 2004-01-14 Danny Smith <dannysmith@users,sourceforge.net>
1788 * parser.c (cp_parser_elaborated_type_specifier): Warn about
1789 attributes and discard.
1790 * decl.c (xref_tag): Don't overwite existing attributes with
1793 2004-01-14 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1796 * parser.c (cp_parser_lookup_name): Return error_mark_node if there
1797 is no destructor while looking up a BIT_NOT_EXPR.
1799 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
1801 * cxxfilt.c: Remove unused file.
1803 2004-01-14 Jan Hubicka <jh@suse.cz>
1805 Partial fix to PR c++/12850
1806 * decl2.c (mark_used): Do not proactively instantiate templates
1807 when compiling in unit-at-a-time or not optimizing.
1808 * optimize.c (maybe_clone_body): Do not increase function depth.
1810 2004-01-13 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1813 * pt.c (tsubst) <INTEGER_TYPE>: Remove obsolete array index tweaking.
1815 2003-01-12 Steven Bosscher <stevenb@suse.de>
1818 * parser.c (cp_parser_member_declaration): Any non-type is also
1819 not a class or a function.
1821 2004-01-12 Jason Merrill <jason@redhat.com>
1824 * class.c (build_base_path): Do not mark vtable references as
1826 (build_vtbl_ref_1): Likewise.
1828 2004-01-12 Richard Henderson <rth@redhat.com>
1831 * typeck2.c (split_nonconstant_init_1, split_nonconstant_init): New.
1832 (store_init_value): Use it.
1833 * decl.c (check_initializer): Expect full initialization code
1834 from store_init_value.
1835 * init.c (expand_aggr_init_1): Likewise.
1836 * decl2.c (maybe_emit_vtables): Abort if runtime init needed.
1838 2004-01-12 Mark Mitchell <mark@codesourcery.com>
1840 * class.c (layout_class_type): For non-POD class types, also copy
1841 the DECL_SIZE and DECL_MODE of fields to the base class type.
1843 2004-01-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1846 * pt.c (instantiate_decl): Set DECL_TEMPLATE_INSTANTIATED before
1847 calling regenerate_decl_from_template.
1849 2004-01-12 Scott Brumbaugh <scottb.lists@verizon.net>
1852 * parser.c (cp_parser_decl_specifier_seq): Add check for a friend
1853 decl-specifier occurring along with a class definition.
1855 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1857 * parser.c (cp_parser_decl_specifier_seq): Add parenthetical
1858 clauses to comments describing declares_class_or_enum.
1859 (cp_parser_type_specifier): Set *declares_class_or_enum to 0, not
1862 2004-01-12 Jan Hubicka <jh@suse.cz>
1864 * pt.c (for_each_template_parm): Do not check for duplicates.
1865 (for_each_template_parm): Use walk_tree duplicate checking code.
1867 2004-01-11 Ian Lance Taylor <ian@wasabisystems.com>
1870 * parser.c (cp_parser_decl_specifier_seq): If the first decl_spec
1871 is error_mark_node, don't add any more decl_specs.
1872 (cp_parser_init_declarator): After committing to a declaration, if
1873 the decl_specifiers start with error_mark_node, issue an error and
1874 change the type to "int".
1876 2004-01-09 Nathanael Nerode <neroden@gcc.gnu.org>
1879 * Make-lang.in: Copy gcc.1 to g++.1 rather than using .so.
1881 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1885 * pt.c (tsubst): Substitution must fail if we are attempting to
1886 create an array with element type that is an abstract class type.
1887 * decl.c (cp_finish_decl): Strip pointers and array types recursively
1888 before calling abstract_virtuals_error.
1890 2004-01-09 Alexandre Oliva <aoliva@redhat.com>
1892 * name-lookup.c (qualified_lookup_using_namespace): Consider
1893 strong using directives even if we've already found a binding.
1895 2004-01-09 Mark Mitchell <mark@codesourcery.com>
1897 * cp-tree.h (cxx_expand_expr): Change prototype.
1898 * expr.c (cxx_expand_expr): Add alt_rtl parameter.
1900 2004-01-08 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1903 * pt.c (value_dependent_expression_p): Handle COMPONENT_REFs by
1904 looking into them recursively. They can be there because of the
1905 new __offsetof__ extension.
1907 2004-01-07 Zack Weinberg <zack@codesourcery.com>
1909 * parser.c (cp_parser_save_member_function_body): Mark the
1912 2004-01-05 Mark Mitchell <mark@codesourcery.com>
1915 * class.c (build_clone): Copy type attributes from the original
1916 function to the clone.
1919 * class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
1920 references as constant.
1923 * parser.c (cp_parser_explicit_instantiation): Improve error
1925 (cp_parser_require): Improve indication of the error location.
1928 * parser.c (cp_parser_class_head): Reorder logic to check for
1929 invalid qualification.
1931 2004-01-04 Mark Mitchell <mark@codesourcery.com>
1934 * name-lookup.c (lookup_using_namespace): Remove spacesp
1936 (unqualified_namespace_lookup): Likewise.
1937 (lookup_qualified_name): Adjust accordingly.
1938 (lookup_name_real): Likewise.
1939 (lookup_arg_dependent): Do not eliminate the namespace of the
1940 functions found by unqualified name lookup unless that is the
1943 2004-01-04 Andrew Pinski <pinskia@physics.uc.edu>
1945 * semantics.c (push_deferring_access_checks): Fix format.
1946 (resume_deferring_access_checks): Likewise.
1947 (stop_deferring_access_checks): Likewise.
1948 (pop_deferring_access_checks): Likewise.
1949 (get_deferred_access_checks): Likewise.
1950 (pop_to_parent_deferring_access_checks): Likewise.
1951 (perform_deferred_access_checks): Likewise.
1952 (perform_or_defer_access_check): Likewise.
1954 2004-01-04 Richard Henderson <rth@redhat.com>
1956 * call.c (build_over_call): Don't create a save_expr of an
1957 aggregate, but rather its address.
1959 2004-01-04 Mark Mitchell <mark@codesourcery.com>
1962 * parser.c (cp_parser_postfix_expression): Allow "." to appear in
1963 an offsetof expression.
1965 * parser.c (cp_parser_parameter_declaration): Fix comment.
1968 * call.c (CHECK_COPY_CONSTRUCTOR_P): New macro.
1969 (reference_binding): Set it when appropriate.
1970 (build_temp): New function, split out from ...
1971 (convert_like_real): ... here. Honor CHECK_COPY_CONSTRUCTOR_P.
1972 (initialize_reference): Likewise.
1975 * parser.c (cp_parser): Add in_type_id_in_expr_p.
1976 (cp_parser_new): Initialize it.
1977 (cp_parser_postfix_expression): Set it.
1978 (cp_parser_sizeof_operand): Likewise.
1979 (cp_parser_parameteR_declaration): Do not commit early to tenative
1980 parsers when in_type_id_in_expr_p is set.
1982 2004-01-03 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1985 * parser.c (cp_parser_template_argument): Don't call
1986 make_unbound_class_template directly.
1987 (cp_parser_lookup_name): Don't extract TEMPLATE_DECL from
1988 UNBOUND_CLASS_TEMPLATE tree node.
1990 2004-01-02 Richard Sandiford <rsandifo@redhat.com>
1993 * method.c (use_thunk): Pass the CALL_EXPR through force_target_expr.
1995 2004-01-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1998 * cp-tree.h (DECL_UNBOUND_CLASS_TEMPLATE_P): New macro.
1999 (DECL_FUNCTION_TEMPLATE_P): Use it.
2000 (DECL_CLASS_TEMPLATE_P): Likewise.
2001 * parser.c (cp_parser_lookup_name): Add is_template parameter.
2002 (cp_parser_type_parameter): Adjust call to cp_parser_lookup_name.
2003 (cp_parser_template_name): Likewise.
2004 (cp_parser_elaborated_type_specifier): Likewise.
2005 (cp_parser_namespace_name): Likewise.
2006 (cp_parser_class_name): Likewise.
2007 (cp_parser_lookup_name_simple): Likewise.
2009 See ChangeLog.3 for earlier changes.