gcc/
[official-gcc.git] / gcc / cp / ChangeLog
blob1279a44ebb6c3605f8e46ba2fc78fdf000939e11
1 2005-12-23  Mark Mitchell  <mark@codesourcery.com>
3         PR c++/24671
4         * pt.c (instantiate_template): Handle SFINAE.
6 2005-12-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8         * decl.c (grokdeclarator): Improve diagnostic for friend
9         declarations of class members.
11 2005-12-22  Mark Mitchell  <mark@codesourcery.com>
13         PR c++/25369
14         * tree.c (really_overloaded_fn): Tweak comment.
15         * pt.c (tsubst_call_declarator_parms): Remove.
16         (tsubst_copy): Call mark_used on the member referenced by an
17         OFFSET_REF.
18         * semantics.c (finish_qualified_id_expr): Simplify.
19         * decl2.c (mark_used): Accept BASELINKs.
21         PR c++/25364
22         * typeck.c (build_unary_op): Pass DECLs not names to
23         build_offset_refs.
24         * init.c (build_offset_ref): Do not do name lookup.  Do not call
25         mark_used.
26         * call.c (build_call): Simplify and tidy.
27         * semantics.c (finish_qualified_id_expr): Call mark_used.
29 2005-12-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
31         PR c++/23333
32         * parser.c (cp_parser_pure_specifier): Check for PURE_ZERO to
33         identify a single '0'.
35 2005-12-20  Mark Mitchell  <mark@codesourcery.com>
37         PR c++/21228
38         * decl.c (use_eh_spec_block): New function.
39         (store_parm_decls): Use it.
40         (finish_function): Likewise.
41         
42 2005-12-19  Mark Mitchell  <mark@codesourcery.com>
44         PR c++/24278
45         * init.c (expand_member_init): Print messages about baseclasses
46         using %T rather than %D.
48         PR c++/24915
49         * class.c (add_method): Do not treat templates as identical unless
50         their return types are the same.
51         
52 2005-12-12  Mark Mitchell  <mark@codesourcery.com>
54         PR c++/25300
55         * tree.c (build_qualified_name): Return error_mark_node for
56         erroneous input.
58 2005-12-10  Mark Mitchell  <mark@codesourcery.com>
60         PR c++/25337 
61         * pt.c (tsubst_copy_and_build): Permit dependent types for the
62         object in a class member access expression.
64 2005-12-10  Terry Laurenzo  <tlaurenzo@gmail.com>
66         PR java/9861
67         * mangle.c (write_bare_function_type): Mangle return type for
68         methods of Java classes
70 2005-12-08  Théodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
71         
72         * call.c (build_conditional_expr): Print types in error messages.
73         
74 2005-12-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
76         * expr.c (cxx_expand_expr): Call gcc_unreachable instead of abort.
78 2005-12-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
80         * cp-gimplify.c (gimplify_cp_loop): Use fold_build3.
82 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
84         * Make-lang.in (c++.all.build, c++.install-normal): Remove.
86 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
88         * Make-lang.in: Remove all dependencies on s-gtype.
90 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
92        PR C++/24138
93         * decl.c (reshape_init_array_1): Handle max_index of -1.
95 2005-12-06  Roger Sayle  <roger@eyesopen.com>
97         * typeck.c (build_binary_op): Issue warning if either operand of a
98         comparison operator is a string literal, except for testing equality
99         or inequality against NULL.
101 2005-12-06  Roger Sayle  <roger@eyesopen.com>
103         PR c++/25263
104         * decl.c (compute_array_index_type): Check that itype is an
105         INTEGER_CST node before testing/clearing TREE_OVERFLOW.
107 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
109         * ptree.c (cxx_print_decl): Update to check for decl_common
110         structure.
112 2005-12-02  Mark Mitchell  <mark@codesourcery.com>
114         PR c++/24173
115         * decl.c (duplicate_decls): Don't rely on DECL_TEMPLATE_INFO after
116         clobbering newdecl.
118 2005-12-02  Richard Guenther  <rguenther@suse.de>
120         * semantics.c (simplify_aggr_init_expr): Use buildN instead
121         of build.
123 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
125         * parser.c (cp_lexer_new_main): Usr GGC_RESIZEVEC instead of
126         ggc_realloc. 
127         (cp_parser_template_argument_list): Use XRESIZEVEC instead of
128         xrealloc. 
129         * class.c (pushclass): Likewise.
131 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
133         * decl2.c (get_priority_info): Use XNEW, not xmalloc.
134         * decl.c (push_switch): Likewise.
135         * lex.c (handle_pragma_implementation): Likewise.
136         * cp-objcp-common.c (decl_shadowed_for_var_insert): Use GGC_NEW,
137         not ggc_alloc.
138         (cxx_initialize_diagnostics): Use XNEW, not xmalloc.
139         * class.c (init_class_processing): Use XNEWVEC, not xmalloc.
140         * g++spec.c (lang_specific_driver): Likewise.
141         * mangle.c (save_partially_mangled_name): Likewise.
142         * parser.c (cp_lexer_new_main): Use GGC_NEWVEC, not ggc_alloc.
143         (cp_parser_template_argument_list): Use XNEWVEC, nto xmalloc.
144         (cp_parser_sizeof_operand): Likewise.
145         * repo.c (open_repo_file, open_repo_file): Likewise.
146         
147 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
149         * parser.c (cp_parser_make_typename_type): Call make_typename_type
150         with tf_none instead of magic value 0.
151         (cp_parser_explicit_instantiation): Call do_type_instantiation
152         with tf_error instead of magic value 1.
153         (cp_parser_elaborated_type_specifier): Call make_typename_type
154         with tf_error instead of magic value 1.
155         (cp_parser_class_name): Likewise.
156         (cp_parser_lookup_name): Likewise.
158 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
160         * parser.c (cp_parser_declaration): Set token2.type to CPP_EOF,
161         not RID_MAX.
163 2005-11-30  Jason Merrill  <jason@redhat.com>
165         PR c++/21123
166         * cp-gimplify.c (cp_genericize_r): Don't dereference invisible reference 
167         parms in a thunk.
169 2005-11-30  Ben Elliston  <bje@au.ibm.com>
171         * typeck.c (build_x_unary_op): Correct spelling in error message.
173 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
175         PR c++/21166
176         * class.c (check_field_decls): Only set DECL_PACKED on a field
177         when its natural alignment is > BITS_PER_UNIT.
179 2005-11-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
181         PR c++/24979
182         * cp-tree.h (DECL_MAIN_P): Remove duplicate definition.
184 2005-11-26  Richard Henderson  <rth@redhat.com>
186         * lex.c: Update for pragma_lex rename.
187         * parser.c: Likewise.
189 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
191         PR c++/9278
192         * decl.c (grokparms): Do not allow typedef-names in a '(void)'
193         parmlist.
195 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
197         * typeck2.c (process_init_constructor_union): Remove check for
198         unnamed union members.
200 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
202         * name-lookup.c (lookup_name_real): Merge two if's.
204 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
206         * pt.c (instantiate_class_template): Clean-up.
208 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
210         * pt.c (template_class_depth_real): Remove. Move functionality to ...
211         (template_class_depth): ... here, replacing count_specializations
212         with 0.  Adjust comment.
214 2005-11-24  Richard Guenther  <rguenther@suse.de>
215         Dirk Mueller <dmueller@suse.de>
217         PR c++/14024
218         * typeck.c (build_reinterpret_cast_1): Use
219         strict_aliasing_warning.
221 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
223         PR c++/24235
224         * pt.c (check_instantiated_args): Reword diagnostic message about
225         template argument involving local types.
227 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
229         PR c++/21667
230         * typeck.c (build_array_ref): Avoid code duplicate.  Use common
231         C/C++ diagnostic function warn_array_subscript_with_type_char. 
233 2005-11-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
235         PR c++/22238
236         * error.c (resolve_virtual_fun_from_obj_type_ref): New.
237         (dump_expr): Use it in <case CALL_EXPR>.
239 2005-11-21  Richard Henderson  <rth@redhat.com>
241         * cp-objcp-common.h, name-lookup.c, name-lookup.h: Revert 11-18 patch.
243         * name-lookup.c (lookup_name): Remove prefer_type argument.
244         (lookup_name_prefer_type): New.
245         * decl.c (lookup_and_check_tag): Use them.
246         * pt.c (tsubst_friend_class): Likewise.
247         (lookup_template_class): Likewise.
248         (tsubst_copy_and_build): Likewise.
249         * name-lookup.h (lookup_name_prefer_type): New.
250         (lookup_name): Remove declaration.
252 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
254         PR c++/8355
255         * decl.c (grokfndecl): Set up DECL_TEMPLATE_INFO before calling
256         set_decl_namespace.
257         * name-lookup.c (set_decl_namespace): 
259 2005-11-18  Mike Stump  <mrs@apple.com>
261         * cp-objcp-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
262         * name-lookup.c (lookup_name_two): Remove.
263         (lookup_name_one): Add.
264         * name-lookup.h (lookup_name_two): Remove.
265         (lookup_name_one): Add.
267 2005-11-15  Jason Merrill  <jason@redhat.com>
269         PR c++/24580
270         * method.c (locate_copy): Also use skip_artificial_parms here.
271         (synthesize_exception_spec): Use CLASS_TYPE_P rather than checking
272         for RECORD_TYPE.
273         (locate_ctor): Abort if we fail to find a default constructor.
275 2005-11-15  Mike Stump  <mrs@apple.com>
277         * name-lookup.c (lookup_name_two): Add.
278         * name-lookup.h: Likewise.
280 2005-11-15  Mark Mitchell  <mark@codesourcery.com>
282         PR c++/24667
283         * typeck.c (check_for_casting_away_constness): Use the diag_fn.
284         (build_const_cast_1): Call it, for C-style casts.
286 2005-11-14  Mark Mitchell  <mark@codesourcery.com>
288         PR c++/24687
289         * pt.c (check_explicit_specialization): Don't check for C linkage.
290         (push_template_decl_real): Likewise.
291         * parser.c (cp_parser_explicit_specialization): Check here.
292         (cp_parser_template_declaration_after_export): And here.
294         * parser.c (cp_lexer_get_preprocessor_token): Initialize keyword
295         field.
297 2005-11-14  Jason Merrill  <jason@redhat.com>
299         PR c++/24580
300         * method.c (locate_ctor): Skip all artificial parms, not just
301         'this'.
303 2005-11-14  Mark Mitchell  <mark@codesourcery.com>
305         * parser.c (eof_token): Add initializer for ambiguous_p.
307 2005-11-13  Mark Mitchell  <mark@codesourcery.com>
309         PR c++/24817
310         * decl.c (check_redeclaration_exception_specification): New
311         function.
312         (duplicate_decls): Use it.
313         * error.c (fndecl_to_string): Print the template parameter list.
315         PR c++/20293
316         * cxx-pretty-print.c (pp_cxx_statement): Print qualifying scopes
317         for namespaces.
318         (pp_cxx_original_namespace_definition): Likewise.
319         * name-lookup.c (ambiguous_decl): Don't issue error messages;
320         instead return lists of ambiguous candidates.
321         (select_decl): Handle ambiguous namespace lookups.
322         * parser.c (cp_token): Add ambiguous_p.
323         (cp_lexer_get_preprocessor_token): Set it.
324         (cp_parser_diagnose_invalid_type_name): Avoid duplicate messages
325         when a qualified name uses an invalid scope. 
326         (cp_parser_primary_expression): Print ambiguous candidates.
327         (cp_parser_type_parameter): Adjust comment to reflect new
328         parameter name for cp_parser_lookup_name.
329         (cp_parser_template_argument): Likewise.
330         (cp_parser_elaborated_type_specifier): Likewise.
331         (cp_parser_namespace_name): Likewise.
332         (cp_parser_class_name): Print ambiguous candidates.
333         (cp_parser_lookup_name): Rename ambiguous_p parameter to
334         ambiguous_decls.  Use it to return a list of ambiguous candiates
335         when a lookup is ambiguous.
336         (cp_parser_lookup_name_simple): Adjust comment to reflect new
337         parameter name for cp_parser_lookup_name.
338         
339 2005-11-12  Jakub Jelinek  <jakub@redhat.com>
341         PR c++/24780
342         * typeck.c (complete_type): Set TYPE_NEEDS_CONSTRUCTING
343         and TYPE_HAS_NONTRIVIAL_DESTRUCTOR flags for all variants
344         of array type.
346         PR c++/24761
347         * pt.c (tsubst_copy_asm_operands): New function.
348         (tsubst_expr) <case ASM_EXPR>: Use it.
350 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
352         PR c++/19450
353         * decl.c (redeclaration_error_message): Issue diagnostics about
354         olddecl and newdecl disagreement on __thread property.
355         (grokdeclarator): Set DECL_TLS_MODEL on class static variables.
357 2005-11-08  Jason Merrill  <jason@redhat.com>
359         PR c++/21123
360         * method.c (use_thunk): Use build_cplus_new instead of 
361         force_target_expr.
363 2005-11-06  Jason Merrill  <jason@redhat.com>
364             James A. Morrison <phython@gcc.gnu.org>
366         PR c++/17256
367         * decl2.c (cp_finish_file): Fix conditions for undefined warning.
368         Set TREE_NO_WARNING instead of TREE_PUBLIC.
369         * pt.c (instantiate_pending_templates): Set DECL_INITIAL to avoid
370         a warning on a function we didn't instantiate because of excessive
371         recursion.
373 2005-11-06  Mark Mitchell  <mark@codesourcery.com>
375         * class.c (record_subobject_offsets): Don't record offsets past
376         biggest empty class for non-empty base classes.
377         (layout_class_type): Use TYPE_SIZE_UNIT, not TYPE_SIZE, when
378         keeping track of the size of emptyclasses.
380         PR c++/21308
381         * class.c (sizeof_biggest_empty_class): New variable.
382         (record_subobject_offsets): Don't record offsets past biggest
383         empty class for data members.  Replace vbases_p parameter with
384         is_data_member parameter.
385         (build_base_field): Adjust call.
386         (layout_class_type): Likewise.  Maintain
387         sizeof_biggest_empty_class.
388         
389 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
391         * decl2.c, init.c, typeck.c: Fix comment typos.
393 2005-11-04  Richard Guenther  <rguenther@suse.de>
395         PR c++/22487
396         * init.c (build_vec_init): Build comparison of matching
397         types.
399 2005-11-03  Josh Conner  <jconner@apple.com>
401         PR c++/19989
402         pt.c (tsubst): Accept zero-length array if tf_error is set
403         in complain flags.  Change error message for negative-
404         length array.
406 2005-11-04  Joseph S. Myers  <joseph@codesourcery.com>
408         * cp-tree.h (cp_cpp_error), error.c (cp_cpp_error): Take va_list*
409         parameter.
411 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
413         PR c++/17964
414         * error.c (cp_cpp_error): New function.
415         * cp-tree.h (cp_cpp_error): Declare.
416         * parser.c (cp_lexer_new_main): Set CPP option client_diagnostic
417         and error callback after lexing.
419 2005-11-03  Mark Mitchell  <mark@codesourcery.com>
421         PR c++/21627
422         * pt.c (register_specialization): Update inline flags on clones.y
424 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
426         PR c++/24582
427         * decl.c (declare_local_label): Return 0 for variables
428         with error_mark_node as their types.
430 2005-11-02  Mark Mitchell  <mark@codesourcery.com>
432         PR c++/22434
433         * call.c (build_conditional_expr): Do bad conversions, if there's
434         no other choice.
436         PR c++/24560
437         * parser.c (cp_parser_postfix_dot_deref_expression): Improve error
438         message for use of overloaded functions on LHS of "." operator.
440         PR c++/19253
441         * parser.c (cp_parser_postfix_expression): Use
442         cp_parser_elaborated_type_specifier to handle typename-types in
443         functional casts.
444         (cp_parser_enclosed_argument_list): Skip ahead to the end of the
445         template argument list if the closing ">" is not found.
447         PR c++/24569
448         * pt.c (instantiate_decl): Use cp_finish_decl, not
449         finish_static_data_member_decl. 
451 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
453         * decl.c (grokfndecl): Remove the setting
454         of the return type of the function type
455         of main after erroring about must returning
456         int.
458 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
460         PR C++/23229
461         * decl.c (grokfndecl): Create a new function type
462         after erroring out about main not returning int.
464 2005-10-28  Josh Conner  <jconner@apple.com>
466         PR c++/22153
467         * parser.c (cp_parser_member_declaration): Detect and handle
468         a template specialization.
470 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
472         PR C++/23426
473         * decl.c (start_decl): Check that the decl is an
474         error_mark_node before getting the type.
475         Remove the check for the decl's type being an
476         error_mark_node.  
478 2005-10-21  Mark Mitchell  <mark@codesourcery.com>
480         PR c++/24260
481         * parser.c (cp_parser_init_declarator): Pass attributes to
482         grokfield. 
484 2005-10-20  Mark Mitchell  <mark@codesourcery.com>
486         PR c++/22618
487         * search.c (accessible_p): Check access in the outermost set of
488         template parameters.
490 2005-10-20  Richard Guenther  <rguenther@suse.de>
492         * decl.c (grokdeclarator): Fix ambiguous pedwarn message.
494 2005-10-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
496         PR c++/22293
497         * decl.c (grokdeclarator): Reject unqualified destructors in
498         friend declarations.
500 2005-10-18  Mark Mitchell  <mark@codesourcery.com>
502         PR c++/23293
503         * pt.c (convert_template_argument): Use canonical type variants in
504         template specializations.
506 2005-10-18  Nathan Sidwell  <nathan@codesourcery.com>
508         PR c++/21383
509         * name-lookup.c (arg_assoc): Template args can be null in a
510         template-id-expr.
512         PR c++/22604
513         * class.c (update_vtable_entry_for_fn): Don't process invalid
514         covariant overriders.
516         PR c++/23118
517         * cp-tree.h (add_method): Add return value.
518         * class.c (add_method): Return success indicator.
519         * semantics.c (finish_member_declaration): Don't add an invalid
520         method to the method list.
522 2005-10-17  Mark Mitchell  <mark@codesourcery.com>
524         PR c++/21908
525         * call.c (build_new_method_call): Do not show VTT parameters to
526         the user.
528 2005-10-17  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
530         PR c++/23440
531         * parser.c (cp_parser_statement): If the parser reached CPP_EOF,
532         only complain about missing statement.
534 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
536         PR c++/24386
537         * cp-tree.h (BASELINK_QUALIFIED_P): New.
538         * pt.c (tsubst_copy_and_build): <CALL_EXPR case>: Use it.
539         * typeck.c (finish_class_member_access_expr): Set it.
541         PR c++/21353
542         * decl.c (check_default_argument): Don't check
543         processing_template_decl or uses_template_parms here.
544         (grokparms): Only call check_default_argument when not processing
545         a template decl.
546         * parser.c (cp_parser_late_parsing_default_arg): Call
547         check_default_argument when not processing a template decl.
549 2005-10-16  Mark Mitchell  <mark@codesourcery.com>
551         PR c++/24389
552         * decl2.c (mark_used): Use uses_template_parms instead of
553         dependent_type_p.
554         * init.c (constant_value_1): Handle uninstantiated templates
555         specially.
556         * pt.c (instantiate_decl): Add sanity check.
558 2005-10-16  Mark Mitchell  <mark@codesourcery.com>
560         PR c++/22173
561         * typeck.c (check_template_keyword): Fix thinko.
562                 
563 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
565         PR c++/23959
566         * decl.c (pop_switch): Only call c_do_switch_warnings
567         when not processing templates.
569 2005-10-16  Mark Mitchell  <mark@codesourcery.com>
571         PR c++/22173
572         * cp-tree.h (QUALIFIED_NAME_IS_TEMPLATE): New macro.
573         (check_template_keyword): New function.
574         (finish_id_expression): Change prototoype.
575         (finish_qualified_id_expr): Change prototype.
576         (build_qualified_name): New function.
577         (finish_class_member_access_expr): Change prototype.
578         * init.c (build_offset_ref): Use build_qualified_name.
579         * mangle.c (write_expression): Likewise.
580         * parser.c (cp_parser_primary_expression): Remove qualifying_class
581         parameter.  Add address_p and template_arg_p.  Use
582         build_qualified_name.
583         (cp_parser_id_expression): Default *template_p to
584         template_keyword_p.  Check for invalid uses of the template
585         keyword.  
586         (cp_parser_postfix_expression): Eliminate special handling for
587         qualified names.  Adjust call to cp_parser_primary_expression.
588         (cp_parser_postfix_dot_deref_expression): Adjust call to
589         cp_parser_id_expression and finish_class_member_access_expr.
590         (cp_parser_template_argument_list): Add comment.
591         (cp_parser_template_argument): Adjust use of
592         cp_parser_primary_expression.  Remove call to
593         finish_qualified_id_expr.
594         (cp_parser_lookup_name): Use build_qualified_name. 
595         * pt.c (tsubst): Use build_qualified_name.
596         (tsubst_qualified_id): Likewise.  Adjust call to
597         finish_qualified_id_expr.
598         (tsubst_copy): Use build_qualified_name.
599         (tsubst_copy_and_build): Adjusts call to finish_id_expression and
600         finish_class_member_access_expr. 
601         * semantics.c (finish_non_static_data_member): Use
602         build_qualified_name.
603         (finish_qualified_id_expr): Add template_p and template_arg_p
604         parameters. 
605         (finish_id_expression): Remove qualifiying_class parameter.  Add
606         template_p, done, address_p, and template_arg_p.  Use
607         build_qualified_name.  Adjust calls to
608         finish_class_member_acess_expr.  
609         * tree.c (build_qualified_name): New function.
610         * typeck.c (check_template_keyword): New function.
611         (finish_class_member_access_expr): Add template_p argument.  Check
612         for invalid uses of the template keyword.
614 2005-10-15  Mark Mitchell  <mark@codesourcery.com>
616         PR c++/21347
617         * class.c (maybe_warn_about_overly_private_class): Lazy
618         constructors are public.
620 2005-10-14  Mark Mitchell  <mark@codesourcery.com>
622         PR c++/19565
623         * call.c (convert_like_real): Rely on convert_and_check to issue
624         warnings about overflow and conversion to unsigned.
625         * decl.c (finish_enum): Use the location of the enumerators, not
626         the closing brace of the enumeration, when reporting warnings
627         about conversions.
628         (build_enumerator): Use error_mark_node for erroneous values.
629         * typeck2.c (digest_init): Remove reference to "signature pointer"
630         from comment.
632 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
634         PR c++/17796
635         * optimize.c (update_cloned_parm): Add FIRST parameter. Use it.
636         (maybe_clone_body): Track the first clone.
638 2005-10-13  Nathan Sidwell  <nathan@codesourcery.com>
640         PR c++/23984
641         * class.c (build_base_path): The vtable is always the first thing
642         in the vtt.
644 2005-10-13  Mark Mitchell  <mark@codesourcery.com>
646         PR c++/20721
647         * cp-tree.h (DECL_NONTRIVIALLY_INITIALIZED_P): New macro.
648         * decl.c (duplicate_decls): Merge it into new declarations.
649         (decl_jump_unsafe): Use it, rather than DECL_INITIAL.
650         (cp_finish_decl): Set it, when appropriate.
652         PR c++/22180
653         * call.c (build_new_method_call): Correct pretty-printing of
654         destructor names.
655         * pt.c (tsubst_qualified_id): Recognize invalid uses of "~T" as an
656         identifier. 
658         PR c++/23694
659         * decl.c (start_method): Return error_mark_node for errors.
661         PR c++/23307
662         * pt.c (push_template_decl_real): Complain about attempts to
663         declare template variables.
665         PR c++/22352
666         * pt.c (tsubst_template_parms): Set processing_template_decl while
667         processing the parameters.
668         (tsubst_decl): Set processing_template_decl when substituting into
669         a TEMPLATE_DECL.
671         PR c++/22405
672         * pt.c (most_specialized_instantiation): Robustify.
674         PR c++/22464
675         * semantics.c (finish_id_expression): Issue errors about uses of
676         local variables in containing functions even in templates.
678 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
680         PR target/21801
681         PR target/23589
682         * class.c (finish_struct_1): Call
683         targetm.cxx.adjust_class_at_definition.
686 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
688         PR c++/21592
689         * pt.c (build_non_dependent_expr): Don't wrap a COMPONENT_REF
690         with already looked up member functions.  Assert we're not
691         returning a NON_DEPENDENT_EXPR with unknown type.
692         * typeck.c (finish_class_member_access_expr):  We can get
693         non-template-id-expr baselinks.  If the lookup finds a baselink,
694         remember it even inside templates.
696         PR c++/23797
697         * parser.c (cp_parser_functional_cast): Cope when TYPE is not a
698         TYPE_DECL.  Use dependent_type_p to check type.
699         * pt.c (uses_template_parms_p): Use dependent_type_p for a
700         TYPE_DECL.
701         (type_dependent_expression_p): Assert we've not been given a
702         TYPE_DECL.
704         PR c++/21117
705         * decl.c (check_function_type): Correctly overwrite incomplete
706         return type with void type.
707         * typeck.c (check_return_expr): If the function's return type is
708         void, don't try and convert a return expr.
710 2005-10-12  David Edelsohn  <edelsohn@gnu.org>
712         PR c++/23730
713         * call.c (build_object_call): If BINFO is NULL, bypass
714         lookup_fnfields and set fns to NULL_TREE.
716 2005-10-12  Paolo Bonzini  <bonzini@gnu.org>
718         PR c++/24052
719         * error.c (dump_expr): Pass LABEL_DECL to dump_decl.  Print
720         an ADDR_EXPR of a LABEL_DECL as &&. 
722 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
724         PR c++/19964
725         * class.c (walk_subobject_offsets): Don't walk error_mark_node.
727 2005-10-11  Ian Lance Taylor  <ian@airs.com>
729         PR c++/8057
730         * cvt.c (convert_to_void): Don't warn about unused values when
731         processing a template declaration.
733 2005-10-11  Mark Mitchell  <mark@codesourcery.com>
735         PR c++/21089
736         * call.c (convert_like_real): Use decl_constant_value, not
737         integral_constant_value.
738         * init.c (constant_value_1): New function.
739         (integral_constant_value): Use it.
740         (decl_constant_value): Likewise.
741         * typeck.c (decay_conversion): Use decl_constant_value, not
742         integral_constant_value.
744         PR c++/21369
745         * parser.c (cp_parser_elaborated_type_specifier): Don't treat
746         class types as templates if the type is not appearing as part of a
747         type definition or declaration.
749 2005-10-10  Mark Mitchell  <mark@codesourcery.com>
751         PR c++/24277
752         * pt.c (instantiate_decl): Call finish_static_data_member_decl for
753         static data members.
755 2005-10-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
756             Mark Mitchell  <mark@codesourcery.com>
758         PR c++/23437
759         * parser.c (cp_parser_template_argument_list): Do not treat
760         contents of argument list as part of a constant expression.
762 2005-10-10  Mark Mitchell  <mark@codesourcery.com>
764         PR c++/24139
765         * decl.c (grokdeclarator): Do not require template parameter lists
766         for explicitly specialized class.
767         * error.c (dump_aggr_type): Do not dump template arguments for
768         non-primary specializations.
769         (dump_function_name): Likewise.
771         PR c++/24275
772         * pt.c (instantiate_decl): Instantiate the initializer of
773         a static data member in the namespace containing the class
774         containing the static data member.
776 2005-10-08  James A. Morrison  <phython@gcc.gnu.org>
778         PR c++/22172
779         * parser.c (cp_parser_postfix_expression) <RID_TYPENAME>: Treat nontype
780         scopes as nondependent.
782 2005-10-06  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
784         * call.c (resolve_args): Remove redundant test.
786 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
788         PR tree-optimization/21419
789         PR tree-optimization/24146
790         PR tree-optimization/24151
792         * semantics.c (finish_asm_stmt): Call readonly_error if outputs are
793         read-only.  Set ASM_VOLATILE_P for asms without outputs.
795 2005-10-05  Nathan Sidwell  <nathan@codesourcery.com>
797         PR c++/23513
798         * call.c (joust): Adjust length count to more_specialized_fn.
799         * pt.c (more_specialized_fn): Cope with non-static member vs
800         non-member.
802 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
804         PR middle-end/23125
805         * decl.c (make_rtl_for_nonlocal_decl): Use set_user_assembler_name
806         instead of change_decl_assembler_name.
808 2005-10-03  Alexandre Oliva  <aoliva@redhat.com>
810         * error.c (dump_type) <UNKNOWN_TYPE>: Print reworded message.
812 2005-10-03  Mark Mitchell  <mark@codesourcery.com>
814         PR c++/17775
815         * repo.c: Include flags.h.
816         (finish_repo): Add -frandom-seed to the arguments.
818 2005-10-02  Mark Mitchell  <mark@codesourcery.com>
820         PR c++/22621
821         * parser.c (cp_parser_template_argument): Don't turn "T::f" into
822         "(*this).T::f".
823         * pt.c (convert_nontype_argument): Remove ??? comment.
825         PR c++/23840
826         * tree.c (lvalue_p_1): A VA_ARG_EXPR with class type is an lvalue,
827         when class rvalues are lvalues.
829 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
831         PR c++/16782
832         * decl.c (grokdeclarator): Always pedwarn about overqualified
833         member names.
835 2005-09-27  Mark Mitchell  <mark@codesourcery.com>
837         PR c++/22147
838         * name-lookup.c (maybe_process_template_type_declaration): Don't
839         treat forward declarations of classes as templates just because
840         we're processing_template_decl.
841         * pt.c (tsubst_decl): Clear DECL_TEMPLATE_INFO for friend
842         functions. 
844 2005-09-26  Jason Merrill  <jason@redhat.com>
846         PR c++/13764
847         * cp-tree.h (FUNCTION_NEEDS_BODY_BLOCK): New macro.
848         * name-lookup.c (pushdecl_maybe_friend): Check it.
849         * decl.c (begin_function_body): Do nothing if it's false.
850         (finish_function_body): Ditto.
851         (outer_curly_brace_block): New fn.
852         (finish_function): Use it.
854 2005-09-26  Richard Guenther  <rguenther@suse.de>
856         PR middle-end/15855
857         * decl2.c (do_static_destruction): Remove.
858         (finish_static_initialization_or_destruction): Likewise.
859         (DECL_EFFECTIVE_INIT_PRIORITY): New macro.
860         (NEEDS_GUARD_P): Likewise.
861         (do_static_initialization): Rename to
862         do_static_initialization_or_destruction.  Process all
863         initializers/destructors and handle common conditionalizing.
864         (start_static_initialization_or_destruction): Rename to
865         one_static_initialization_or_destruction.  Handle only
866         decl-specific conditionalizing.
867         (cp_finish_file): Call do_static_initialization_or_destruction.
869 2005-09-22  Jakub Jelinek  <jakub@redhat.com>
871         PR c++/21983
872         * class.c (find_final_overrider): Move diagnostic about no unique final
873         overrider to...
874         (update_vtable_entry_for_fn): ... here.
876 2005-09-21  Mark Mitchell  <mark@codesourcery.com>
878         PR c++/23993
879         * init.c (integral_constant_value): Use DECL_INTEGRAL_CONSTANT_VAR_P.
881 2005-09-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
883         PR c++/23965
884         * call.c (resolve_args): Return error_mark_node on arguments
885         whose TREE_TYPE is error_mark_node.
887 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
889         PR c++/23947
890         * rtti.c (get_pseudo_ti_init): Recompute ti pointer after
891         get_tinfo_ptr calls.
893 2005-09-16  Mark Mitchell  <mark@codesourcery.com>
895         PR c++/23914
896         * parser.c (cp_parser_enclosed_template_argument_list): Make sure
897         skip_evaluation is false when processing template arguments.
899         PR c++/21514
900         * pt.c (check_instantiated_args): Treat uses of anonymous types as
901         causing type-deduction failure.
903 2005-09-15  Jason Merrill  <jason@redhat.com>
905         PR c++/23357
906         * cp-tree.def (SIZEOF_EXPR, ALIGNOF_EXPR): Change code class to
907         tcc_expression.
909 2005-09-15  Mark Mitchell  <mark@codesourcery.com>
911         PR c++/23896
912         * pt.c (tsubst_aggr_type): Make sure skip_evaluation is false when
913         processing template arguments.
915         * pt.c (check_explicit_instantiation_namespace): Fix typo.
917         PR c++/13140
918         * decl.c (check_class_member_definition_namespace): New function.
919         (grokfndecl): Use it.
920         (grokvardecl): Likewise.
921         (grokdecl): Improve documentation.
922         * pt.c (check_explicit_instantiation_namespace): New function.
923         (register_specialization): Call check_specialization_namespace
924         when replacing an implicitly instantiated function.
925         (check_explicit_specialization): Ensure that DECL_CONTEXT is set
926         correctly for namespace-scope specializations.
927         (do_decl_instantiation): Use
928         check_explicit_instantiation_namespace.
929         (do_type_instantiation): Likewise.
931 2005-09-15  Nathan Sidwell  <nathan@codesourcery.com>
933         PR c++/23725
934         * error.c (dump_decl): <USING_DECL case> Use USING_DECL_SCOPE.
936 2005-09-13  Bastian Blank <waldi@debian.org>
938         PR c++/16171
939         * mangle.c (find_substitution): Do not use special substitutions
940         for identifiers not in std::.
941         
942 2005-09-13  Mark Mitchell  <mark@codesourcery.com>
944         PR c++/23839
945         * typeck.c (cxx_mark_addressable): Only check DECL_HARD_REGISTER
946         for VAR_DECLs.
948 2005-09-13  Mark Mitchell  <mark@codesourcery.com>
950         PR c++/23842
951         * pt.c (tsubst_default_argument): Do treat default argument
952         expressions as occurring in the context of the function called. 
954 2005-09-12  Mark Mitchell  <mark@codesourcery.com>
956         PR c++/23841
957         * parser.c (cp_parser_primary_expression): Recognize the closing
958         ">" of a template-argument-list after a floating-point literal as
959         the end of a cast expression.
961 2005-09-12  Mark Mitchell  <mark@codesourcery.com>
963         PR c++/23789
964         * cvt.c (perform_qualification_conversions): Don't create
965         unnecessary NOP_EXPRs.
966         * pt.c (tsubst_template_arg): Use fold_non_dependent_expr.
968 2005-09-12  Ian Lance Taylor  <ian@airs.com>
970         PR g++/7874
971         * cp-tree.h (struct lang_decl_flags): Add hidden_friend_p
972         bitfield.  Make dummy bitfield one bit smaller.
973         (DECL_HIDDEN_FRIEND_P): Define.
974         (pushdecl_maybe_friend): Declare.
975         (pushdecl_top_level_maybe_friend): Declare.
976         * decl.c (duplicate_decls): Add newdecl_is_friend parameter.
977         Change prototype and all callers.  Add assertion that a
978         DECL_ARTIFICIAL FUNCTION_DECL is not DECL_HIDDEN_FRIEND_P.  Set
979         DECL_ANTICIPATED and DECL_HIDDEN_FRIEND_P in duplicated decl if
980         appropriate.
981         * name-lookup.c (supplement_binding): Don't ignore a
982         DECL_HIDDEN_FRIEND_P.
983         (pushdecl_maybe_friend): Break out contents of pushdecl.  Add
984         is_friend parameter.  Set DECL_ANTICIPATED and
985         DECL_HIDDEN_FRIEND_P for a friend function.
986         (pushdecl): Just call pushdecl_maybe_friend.
987         (pushdecl_with_scope): Add is_friend parameter.  Change prototype
988         and all callers.
989         (pushdecl_namespace_level): Likewise.
990         (push_overloaded_decl): Likewise.  Check DECL_HIDDEN_FRIEND_P as
991         well as DECL_ANTICIPATED when checking for a builtin.
992         (do_nonmember_using_decl): Check DECL_HIDDEN_FRIEND_P as well as
993         DECL_ANTICIPATED when checking for a builtin.
994         (do_nonmember_using_decl): Likewise.
995         (pushdecl_top_level_1): Add is_friend parameter.  Change all
996         callers.
997         (pushdecl_top_level_maybe_friend): New function.
998         (remove_hidden_names): New function.
999         (struct arg_lookup): Add args field.
1000         (friend_of_associated_class_p): New static function.
1001         (arg_assoc_namespace): Ignore hidden functions which are not
1002         friends of an associated class of some argument.
1003         (lookup_arg_dependent): Remove hidden functions from list passed
1004         in.  Initialize k.args.
1005         * name-lookup.h (remove_hidden_names): Declare.
1006         * friend.c (do_friend): Call pushdecl_maybe_friend instead of
1007         pushdecl.
1008         * call.c (add_function_candidate): Change DECL_ANTICIPATED test to
1009         an assertion, with a check for DECL_HIDDEN_FRIEND_P.
1010         (build_new_function_call): Add koenig_p parameter.  Change
1011         prototype and callers.
1012         * pt.c (register_specialization): Add is_friend parameter.  Change
1013         all callers.
1014         (push_template_decl_real): Change is_friend parameter to bool.
1015         Change prototype and all callers.
1016         (tsubst_friend_class): Call pushdecl_top_level_maybe_friend
1017         instead of pushdecl_top_level.
1019 2005-09-11  Richard Henderson  <rth@redhat.com>
1021         * decl2.c (build_anon_union_vars): Copy attributes from the base addr.
1022         * pt.c (tsubst_decl): Substitute in DECL_VALUE_EXPR.
1024 2005-09-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1026         * parser.c (cp_parser_translation_unit): Simplify.  The while-block
1027         was actually executed at most once.
1029 2005-09-09  Richard Henderson  <rth@redhat.com>
1031         PR debug/20998
1032         * cp-tree.def (ALIAS_DECL): Remove.
1033         * cp-lang.c (cp_init_ts): Remove support for it.
1034         * error.c (dump_decl): Likewise.
1035         * name-lookup.c (pushdecl): Likewise.
1036         * semantics.c (finish_id_expression): Likewise.
1037         * decl2.c (build_anon_union_vars): Use a VAR_DECL with
1038         DECL_VALUE_EXPR instead.
1040 2005-09-09  Mark Mitchell  <mark@codesourcery.com>
1042         PR c++/22252
1043         * decl.c (start_preparsed_function): Do not pay attention to
1044         #pragma interface for implicitly-defined methods.
1045         * decl2.c (cp_finish_file): Do not complain about uses of inline
1046         functions that have bodies, even if we decided not to emit the
1047         body in this translation unit.
1048         * semantics.c (note_decl_for_pch): Do not mess with linkage.
1049         (expand_or_defer_fn): Make inline, non-template functions COMDAT
1050         at this point.
1052 2005-09-08  Richard Henderson  <rth@redhat.com>
1054         PR debug/23190
1055         * decl.c (wrapup_globals_for_namespace): Call
1056         emit_debug_global_declarations.
1057         * decl2.c (cp_finish_file): Likewise.
1059 2005-09-08  Mark Mitchell  <mark@codesourcery.com>
1061         PR c++/23691
1062         * decl2.c (mark_used): Instantiate static data members initialized
1063         by constants, even in a template.
1065 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
1067         PR obj-c++/16816
1068         * parser.c (cp_parser_objc_selector_expression): Treat CPP_SCOPE as
1069         two CPP_COLON.
1071 2005-09-07  Richard Guenther  <rguenther@suse.de>
1073         * cp-gimplify.c (cp_gimplify_expr): Create empty CONSTRUCTOR
1074         for EMPTY_CLASS_EXPR.
1076 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
1078         PR c/23075
1079         * typeck.c (check_return_expr): Add no_warning argument.  Set
1080         *no_warning to true if "return-statement with no value, in function
1081         returning" warning has been issued.
1082         * cp-tree.h (check_return_expr): Adjust prototype.
1083         * semantics.c (finish_return_stmt): Set TREE_NO_WARNING if
1084         check_return_expr set *no_warning to true.
1086 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
1088         * cp-tree.h (rvalue): New function.
1089         * call.c (build_conditional_expr): Use it.
1090         * init.c (build_new_1): Likewise.
1091         * rtti.c (build_dynamic_cast_1): Likewise.
1092         * tree.c (rvalue): New function.
1093         * typeck.c (build_unary_op): Use it.
1094         (build_static_cast_1): Likewise.
1096         PR c++/9782
1097         * init.c (build_new_1): Make sure the entire array type is
1098         complete, not just its element types.
1100 2005-09-06  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1102         * decl.c (check_elaborated_type_specifier): Remove redundant check.
1104 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
1106         PR c++/23056
1107         * typeck.c (ignore_overflows): New helper function.
1108         (build_static_cast_1): Use it.
1110 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
1112         * cp-tree.h, decl.c, decl2.c, semantics.c: Fix comment typos.
1113         Follow spelling conventions.
1115 2005-09-05  Mark Mitchell  <mark@codesourcery.com>
1117         PR c++/23667
1118         * pt.c (tsubst_decl): Clear DECL_TEMPLATE_INSTANTIATED when
1119         copying a VAR_DECL.
1121 2005-09-05  Mark Mitchell  <mark@codesourcery.com>
1123         PR c++/21440
1124         * semantics.c (finish_stmt_expr_expr): Add an explicit
1125         initialization to the last statement in the statement-expression.
1126         * (finish_stmt_expr): Adjust accordingly.
1128 2005-09-03  Mark Mitchell  <mark@codesourcery.com>
1130         PR c++/23699
1131         * decl2.c (mark_used): Always instantiate static data members
1132         initialized by constant expressions.
1133         * pt.c (instantiate_decl): Instantiate the initializers for static
1134         data members initialized by constant expressions.
1136         PR c++/21687
1137         * semantics.c (expand_or_defer_fn): Do not call ggc_collect when
1138         finishing processing for a template function in a local class.
1139         Revert:
1140         2005-09-02  Mark Mitchell  <mark@codesourcery.com>
1141         * parser.c (cp_parser_class_specifier): Push/pop GC contexts
1142         around functions in local classes.
1144 2005-09-02  Mark Mitchell  <mark@codesourcery.com>
1146         PR c++/21687
1147         * parser.c (cp_parser_class_specifier): Push/pop GC contexts
1148         around functions in local classes.
1150 2005-08-31  Andrew Pinski  <pinskia@physics.uc.edu>
1152         PR obj-c++/23640
1153         * decl2.c (cp_finish_file): If this is obj-c++ and we need a static
1154         init, call generate_ctor_or_dtor_function.
1156 2005-08-31  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1158         PR c++/13377
1159         * parser.c (cp_parser_lookup_name): Pass LOOKUP_COMPLAIN to
1160         lookup_name_real on final parse.
1162 2005-08-31  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1164         PR c++/23639
1165         * semantics.c (qualified_name_lookup_error): Do not complain again
1166         on invalid scope.
1168 2005-08-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1170         PR c++/23586
1171         * parser.c (cp_parser_namespace_name): Move diagnostic for
1172         invalid namespace-name to here from ...
1173         * name-lookup.c (do_namespace_alias): ... here and ...
1174         (do_using_directive): ... here.  Remove dead code.
1176 2005-08-28  Mark Mitchell  <mark@codesourcery.com>
1178         PR c++/23099
1179         * cp-tree.h (saved_scope): Add skip_evaluation.
1180         * decl.c (start_decl): Use DECL_INITIALIZED_IN_CLASS_P, not
1181         DECL_INITIAL, to determine whether or not a static data member was
1182         initialized in the class-specifier.
1183         (cp_finish_decl): Add comment.
1184         * init.c (integral_constant_value): Subtitute into the
1185         initializers for static data members in templates.
1186         * name-lookup.c (push_to_top_level): Save skip_evaluation.
1187         (pop_from_top_level): Restore it.
1188         * pt.c (instantiate_class_template): Do not substitute into the
1189         intializers of static data members when instantiating a class.
1190         (regenerate_decl_from_template): Simplify.
1191         (instantiate_decl): Tidy.  Substitute into the initializer for a
1192         static data member even when the definition of the data member is
1193         not available.
1195 2005-08-26  Mark Mitchell  <mark@codesourcery.com>
1197         PR c++/19004
1198         * pt.c (uses_template_parms): Handle IDENTIFIER_NODE.
1199         (type_dependent_expression_p): Allow BASELINKs whose associated
1200         functions are simply a FUNCTION_DECL.
1202         PR c++/23491
1203         * cp-tree.h (build_vec_init): Adjust prototype.
1204         * init.c (perform_member_init): Adjust call to build_vec_init.
1205         (build_aggr_init): Likewise.
1206         (build_new_1): Do not call build_default_init for array types.
1207         (build_vec_init): Add explicit_default_init_p parameter.  Perform
1208         default initialization of vector elements when set.
1209         * typeck.c (build_modify_expr): Adjust call to build_vec_init.
1211 2005-08-25  Nathan Sidwell  <nathan@codesourcery.com>
1213         PR c++/20817
1214         * typeck.c (build_x_unary_op): Make sure OFFSET_REF is not for a
1215         ->*.
1217 2005-08-24  Nathan Sidwell  <nathan@codesourcery.com>
1219         PR c++/22454
1220         * parser.c (cp_lexer_peek_nth_token): Relax assert.
1222 2005-08-23  Nathan Sidwell  <nathan@codesourcery.com>
1224         PR c++/23044
1225         * pt.c (tsubst_qualified_id): A SCOPE_REF can still remain.
1227 2005-08-22  James E Wilson  <wilson@specifix.com>
1229         PR tree-optimization/23426
1230         * decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
1231         array size check.
1233 2005-08-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1235         PR c++/22233
1236         * pt.c (push_template_decl_real): Return error_mark_node if the
1237         number of template parameters does not match previous definition.
1239 2005-08-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1241         PR c++/23089
1242         * decl.c (require_complete_types_for_parms): Mark incomplete types
1243         as invalid.
1245 2005-08-19  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1247         * parser.c (cp_parser_nth_token_starts_template_argument_list_p):
1248         Fix typo in leading comment.
1250 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1252         * name-lookup.c, ptree.c: Delete HOST_PTR_PRINTF.
1254 2005-08-15 Fariborz Jahanian <fjahanian@apple.com>
1256         * cp-tree.h (can_convert_arg, fn_type_unification): New argument.
1257         * call.c (add_template_candidate_real): Pass down 'flags' to
1258         fn_type_unification.
1259         (can_convert_arg): New 'flags' argument. Pass it to call to
1260         implicit_conversion instead of LOOKUP_NORMAL.
1261         (can_convert): Add LOOKUP_NORMAL to call to can_convert_arg.
1262         * class.c (resolve_address_of_overloaded_function): Ditto.
1263         (resolve_address_of_overloaded_function): Ditto.
1264         * decl.c (reshape_init, check_default_argument): Ditto.
1265         * typeck.c (build_ptrmemfunc): Ditto.
1266         * pt.c (type_unification_real): Add 'flags' argument.
1267         (fn_type_unification): Pass 'flags' to type_unification_real.
1268         (type_unification_real): Pass new 'flags' argument to call to
1269         can_convert_arg.
1271 2005-08-12  Giovanni Bajo  <giovannibajo@libero.it>
1272             Nathan Sidwell  <nathan@codesourcery.com>
1274         PR c++/21799
1275         PR c++/8271
1276         * pt.c (unify) <METHOD_TYPE>: Check this-pointer cv-qualifiers
1277         explicitly.
1278         
1279 2005-08-12  Nathan Sidwell  <nathan@codesourcery.com>
1281         PR c++/21799
1282         Revert my 2005-07-08 patch
1283         * pt.c (type_unification_real): Remove is_method_argument and
1284         assoicated checks.
1285         (fn_type_unification, unify): Adjust type_unification_real calls.
1287 2005-08-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1289         PR c++/23266
1290         * decl2.c (grokfield): Check that method is not static before
1291         marking it as pure.
1293 2005-08-11  Nathan Sidwell  <nathan@codesourcery.com>
1295         PR c++/23219
1296         * name-lookup.c (pushtag): Process the template type before
1297         altering the identifier lookup fields.  Remove unreachable code
1298         creating an empty stub decl.
1300 2005-08-10  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1302         PR c++/20646
1303         * decl.c (grokdeclarator): Reset storage_class after error.
1305 2005-08-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1307         PR c++/22508
1308         * init.c (build_new_1): Check for empty candidate list.
1310 2005-08-06  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1312         PR c++/23191
1313         * pt.c (tsubst) <case METHOD_TYPE>: Check for error_mark_node
1314         before calling build_exception_variant.
1316 2005-08-06  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1318         PR c++/19498
1319         * pt.c (tsubst_decl) <case TEMPLATE_DECL>: Return ERROR_MARK_NODE
1320         if substitution of template args did not succeed.
1322 2005-08-06  Michael Matz  <matz@suse.de>
1324         * method.c (use_thunk): Call init_insn_lengths.
1326 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
1328         PR c++/22514
1329         * name-lookup.c (cp_emit_debug_info_for_using): Do nothing if
1330         sorrycount or errorcount are nonzero.
1332 2005-08-05  Mark Mitchell  <mark@codesourcery.com>
1334         * name-lookup.c (pushtag): Remove accidental commit from:
1335         2004-12-21  Mark Mitchell  <mark@codesourcery.com>
1336         PR c++/19063
1337         * decl.c (grokdeclarator): Return error_mark_node, not
1338         void_type_node, to indicate errors.
1339         * parser.c (cp_parser_template_parameter_list): Robustify.
1340         (cp_parser_template_parameter): Likewise.
1342 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
1344         * class.c, decl.c, name-lookup.c, pt.c, typeck.c, typeck2.c:
1345         Fix comment typos.
1347 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
1349         * method.c: Fix a comment typo.
1351 2005-07-28  Mark Mitchell  <mark@codesourcery.com>
1353         PR c++/22545
1354         * call.c (add_builtin_candidate): Adjust for changes in
1355         representation of pointer-to-member types.
1357 2005-07-28  Mike Stump  <mrs@apple.com>
1359         * pt.c (check_explicit_specialization): Add visibility logic.
1360         (lookup_template_class): Likewise.
1361         (instantiate_class_template): Likewise.
1363 2005-07-27  Devang Patel  <dpatel@apple.com>
1365         * name-lookup.c (pushtag): Do no set DECL_IGNORED_P bit.
1366         
1367 2005-07-25  Ian Lance Taylor  <ian@airs.com>
1369         * ptree.c (cxx_print_identifier): Print a leading space if the
1370         indent level is 0.
1372 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1374         * call.c (convert_for_arg_passing): Check function pointers when
1375         -Wmissing-format-attribute is activated.
1376         * typeck.c (convert_for_assignment): Likewise.
1378 2005-07-22  Manfred Hollstein  <mh@suse.com>
1380         * parser.c (cp_parser_declaration): Fix unitialised warnings.
1382 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
1384         * class.c (build_base_path): Fix typo.
1386 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
1388         PR C++/22358
1389         * class.c (build_base_path): Convert BINFO_OFFSET to the correct type.
1391 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1393         * call.c: Fix comment typo(s).
1394         * cxx-pretty-print.h: Likewise.
1395         * name-lookup.c: Likewise.
1396         * parser.c: Likewise.
1398 2005-07-20  Douglas Gregor <doug.gregor@gmail.com>
1400         PR c++/2922
1401         * semantics.c (perform_koenig_lookup): For dependent calls, just
1402         return the set of functions we've found so far. Later, it will be
1403         augmented by those found through argument-dependent lookup.
1404         * name-lookup.c (lookup_arg_dependent): Implement DR 164 by removing 
1405         the optimization that skips namespaces where the functions were
1406         originally found.
1408 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
1410         Make CONSTRUCTOR use VEC to store initializers.
1411         * call.c (convert_default_arg): Update call to digest_init.
1412         * class.c (dump_class_hierarchy, dump_array): Update to cope with
1413         VEC in CONSTRUCTOR_ELTS.
1414         * cp-tree.h (EMPTY_CONSTRUCTOR_P): Likewise.
1415         (finish_compound_literal, digest_init): Update declaration.
1416         * decl.c (struct reshape_iter): New data type.
1417         (reshape_init_array): Rename to...
1418         (reshape_init_array_1): Update to cope with VEC in CONSTRUCTOR_ELTS.
1419         (reshape_init): Rewrite from scratch. Split parts into...
1420         (reshape_init_array, reshape_init_vector, reshape_init_class,
1421         reshape_init_r): New functions.
1422         (check_initializer): Update call to reshape_init. Remove obsolete
1423         code.
1424         (initialize_artificial_var, cp_complete_array_type): Update to cope
1425         with VEC in CONSTRUCTOR_ELTS.
1426         * decl2.c (grokfield): Update calls to digest_init.
1427         (mark_vtable_entries): Update to cope with VEC in CONSTRUCTOR_ELTS.
1428         * error.c (dump_expr_init_vec): New function.
1429         (dump_expr): Use dump_expr_init_vec.
1430         * init.c (build_zero_init, build_vec_init): Update to cope with VEC
1431         in CONSTRUCTOR_ELTS.
1432         (expand_default_init): Update call to digest_init.
1433         * parser.c  (cp_parser_postfix_expression): Use a VEC for the
1434         initializers.
1435         (cp_parser_initializer_list): Build a VEC of initializers.
1436         * pt.c (tsubst_copy, tsubst_copy_and_build): Update to cope with VEC
1437         in CONSTRUCTOR_ELTS.
1438         * rtti.c (tinfo_base_init, generic_initializer, ptr_initializer,
1439         ptm_initializer, class_initializer, get_pseudo_ti_init): Use
1440         build_constructor_from_list instead of build_constructor.
1441         * semantics.c (finish_compound_literal): Update call to digest_init.
1442         * tree.c (stabilize_init): Update to cope with VEC in
1443         CONSTRUCTOR_ELTS.
1444         * typeck.c (build_ptrmemfunc1): Likewise.
1445         * typeck2.c: (cxx_incomplete_type_error, split_nonconstant_init_1):
1446         Likewise.
1447         (store_init_value): Use build_constructor_from_list and update call
1448         to digest_init.
1449         (digest_init): Rewrite.
1450         (process_init_constructor): Rewrite from scratch. Split into...
1451         (process_init_constructor_array, picflag_from_initializer,
1452         process_init_constructor_record, process_init_constructor_union):
1453         New functions.
1454         (PICFLAG_ERRONEOUS, PICFLAG_NOT_ALL_CONSTANT, PICFLAG_NOT_ALL_SIMPLE):
1455         New macros.
1456         (build_functional_cast): Use build_constructor_from_list instead of
1457         build_constructor.
1459 2005-07-18  Mark Mitchell  <mark@codesourcery.com>
1461         PR c++/22263
1462         * cp-tree.h (instantiate_decl): Change prototype.
1463         * decl2.c (mark_used): Adjust accordingly.
1464         * pt.c (do_decl_instantiation): Likewise.
1465         (instantiate_class_member): Likewise.
1466         (instantiate_decl): Rename undefined_ok as expl_inst_class_mem_p.
1467         Clear DECL_INTERFACE_KNOWN for an explicitly instantiated template
1468         that has no definition available.
1469         (instantiate_pending_templates): Adjust call to instantiate_decl.
1471 2005-07-17  Mark Mitchell  <mark@codesourcery.com>
1473         PR c++/22139
1474         * cp-tree.h (DECL_TEMPLATE_INFO): Improve documentation.
1475         * decl.c (duplicate_decls): Re-register template specializations
1476         for functions that have DECL_TEMLPLATE_INFO, even if they do not
1477         have DECL_TEMPLATE_INSTANTIATION set.
1479 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1481         * call.c (diagnostic_fn_t): New.
1482         (build_temp, convert_like_real): Use diagnostic_fn_t.
1484 2005-07-15  Mark Mitchell  <mark@codesourcery.com>
1486         PR c++/22204
1487         * repo.c (repo_emit_p): Robustify.
1489 2005-07-14  Daniel Berlin  <dberlin@dberlin.org>
1491         Fix PR c++/22452
1492         * tree.c (decl_linkage): Don't check DECL_COMDAT on CONST_DECL.
1494 2005-07-15  Mark Mitchell  <mark@codesourcery.com>
1496         PR c++/22132
1497         * call.c (implicit_conversion): Add c_cast_p parameter.
1498         (standard_conversion): Likewise.  Allow conversions between
1499         differently-qualified pointer types when performing a C-style
1500         cast.
1501         (add_function_candidate): Adjust callee.
1502         (build_builtin_candidate): Likewise.
1503         (build_user_type_conversion_1): Likewise.
1504         (conditional_conversion): Likewise.
1505         (can_convert_arg): Likewise.
1506         (can_convert_arg_bad): Likewise.
1507         (perform_implicit_conversion): Likewise.
1508         * cp-tree.h (comp_ptr_ttypes_const): Declare.
1509         * typeck.c (comp_ptr_ttypes_const): Give it external linkage.
1510         Return bool.
1511         
1512 2005-07-12  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1513             Nathan Sidwell  <nathan@codesourcery.com>
1515         PR c++/20172
1516         * pt.c (tsubst_template_parms): Check for invalid non-type
1517         parameters.
1519 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
1521         * cp-lang.c (shadowed_var_for_decl, decl_shadowed_for_var_lookup,
1522         decl_shadowed_for_var_insert): Move over to cp-objcp-common.c.
1523         (cp_init_ts): Call init_shadowed_var_for_decl.
1524         Remove include of gt-cp-cp-lang.h.
1525         * cp-objcp-common.c (shadowed_var_for_decl,
1526         decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Moved from
1527         cp-lang.c.
1528         (init_shadowed_var_for_decl): New function to initialize
1529         shadowed_var_for_decl.
1530         Include gt-cp-cp-objcp-common.h.
1531         * Make-lang.in (gt-cp-lang.h): Remove.
1532         (gt-cp-cp-objcp-common.h): Add.
1533         (cp/cp-lang.o): Remove dependancy on gt-cp-lang.h.
1534         (cp/cp-objcp-common.o): Add dependancy on gt-cp-cp-objcp-common.h.
1535         * config-lang.in (gtfiles): Remove cp-lang.c and Add cp-objcp-common.c.
1536         * cp-tree (init_shadowed_var_for_decl): Add prototype.
1538 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
1539         
1540         * Make-lang.in: Add gt-cp-lang.h.
1541         (cp-lang.o): Ditto.     
1542         * class.c (create_vtable_ptr): Stop setting DECL_ASSEMBLER_NAME on
1543         the field.
1544         * config-lang.in: Add cp-lang.c to gtfiles.
1545         * cp-lang.c: Include hashtab.h.
1546         (cp_init_ts): New function.
1547         (LANG_HOOK_INIT_TS): Use macro.
1548         (decl_shadowed_for_var_lookup): New function.
1549         (decl_shadowed_for_var_insert): Ditto.
1550         * cp-tree.h (THUNK_FUNCTION_CHECK): Use decl_common.
1551         (NON_THUNK_FUNCTION_CHECK): Ditto.
1552         (DECL_NAMESPACE_ASSOCIATIONS): Use decl_non_common.
1553         (DECL_INIT_PRIORITY): Ditto.
1554         (DECL_HAS_SHADOWED_FOR_VAR_P): Ditto.
1555         (DECL_SHADOWED_FOR_VAR): Use hashtable.
1556         (SET_DECL_SHADOWED_FOR_VAR): Ditto.
1557         * decl.c (duplicate_decls): Update for new/updated structures.
1558         (poplevel): Use SET_DECL_SHADOWED_FOR_VAR.
1559         * decl2.c (start_static_initialization_or_destruction): Deal with
1560         priority. 
1561         * pt.c (tsubst_decl): Check TS_DECL_WRTL before doing
1562         SET_DECL_RTL.
1563         * tree.c (handle_init_priority_attribute): Handle priority.
1565 2005-07-08  Nathan Sidwell  <nathan@codesourcery.com>
1567         PR c++/21799
1568         * pt.c (type_unification_real): Add is_method argument.  Use it
1569         for this pointer unification.
1570         (fn_type_unification): Adjust type_unification_real call.
1571         (unify): Likewise.
1573 2005-07-07  Nathan Sidwell  <nathan@codesourcery.com>
1575         * pt.c (type_unification_real): Remove allow_incomplete argument.
1576         Remove unreachable code.
1577         (fn_type_unification): Adjust call to type_unification_real.
1578         (unify): Likewise.
1580 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
1582         * Makefile.in (class.o, decl2.o): Adjust dependencies.
1583         * class.c: Include tree-dump.h.
1584         * decl2.c: Include tree-dump.h.
1585         
1586 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1588         * dump.c: Use dump_string_field.
1590 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
1592         * cp-tree.h (GCC_DIAG_STYLE): #undef before defining.  Change
1593         minimum GCC version for format checking to 4.1.
1595 2005-07-02  Kazu Hirata  <kazu@codesourcery.com>
1597         * Make-lang.in (cc1plus-checksum.c): Use
1598         build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
1600 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
1602         * name-lookup.c, parser.c: Use %q, %< and %> to quote in
1603         diagnostics.
1605 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
1606             Joseph S. Myers  <joseph@codesourcery.com>
1608         * error.c (location_of): Add comment.
1609         (locate_error, cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
1610         * cp-tree.h (cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
1611         * call.c, class.c, decl.c, decl2.c, friend.c, init.c,
1612         name-lookup.c, parser.c, pt.c, search.c, semantics.c, typeck.c,
1613         typeck2.c: Use '+' flag instead of %J, cp_error_at, cp_warning_at
1614         or cp_pedwarn_at.  Mark up some diagnostic strings with N_.
1616 2005-06-30  Daniel Berlin  <dberlin@dberlin.org> 
1617         
1618         * decl.c (require_complete_types_for_parms): Call relayout_decl
1619         instead of layout_decl.
1621 2005-06-30  Zack Weinberg  <zack@codesourcery.com>
1622             Jakub Jelinek  <jakub@redhat.com>
1624         * cp-lang.c: No need to include cxx-pretty-print.h.
1625         * error.c (cp_printer): Update signature.  No need to process
1626         flags.
1627         (print_instantiation_partial_context): Output last newline
1628         with pp_base_newline.
1629         * Make-lang.in: Update dependencies.
1631 2005-06-30  Steven Bosscher  <stevenb@suse.de>
1633         * decl.c (start_decl): Replace DECL_THREAD_LOCAL with
1634         DECL_THREAD_LOCAL_P.
1635         (cp_finish_decl): Likewise.
1636         (grokvardecl): Set the default DECL_TLS_MODEL here.
1638 2005-06-28  Joseph S. Myers  <joseph@codesourcery.com>
1640         * cvt.c (ocp_convert): Use invalid_conversion hook.
1641         * typeck.c (build_binary_op): Use invalid_binary_op hook.
1642         (build_unary_op): Use invalid_unary_op hook.
1644 2005-06-28  Paul Brook  <paul@codesourcery.com>
1646         * Make-lang.in (cp/except.o): Depend on $(TARGET_H)
1647         * except.c: Include target.h.
1648         (init_exception_processing): Initialize unwind_resume_libfunc.
1649         * doc/tm.texi: Document TARGET_ASM_TTYPE
1651 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1653         * call.c (build_over_call): Pass in named argument list to
1654         `check_function_arguments'.
1655         * typeck.c (build_function_call): Likewise.
1657 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1659         * cp-tree.h (lang_check_failed): Add noreturn attribute.
1661 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
1663         * all files: Update FSF address in copyright headers.
1665 2005-06-23  Jason Merrill  <jason@redhat.com>
1667         PR c++/19317
1668         * semantics.c (simplify_aggr_init_expr): Use
1669         CALL_EXPR_RETURN_SLOT_OPT, not CALL_EXPR_HAS_RETURN_SLOT_ADDR.
1671 2005-06-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1673         * pt.c (register_specialization): Remove superfluous assertion.
1675 2005-06-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1677         * call.c (convert_like_real): Add format attribute.
1678         * typeck.c (check_for_casting_away_constness,
1679         build_static_cast_1): Likewise.
1680         * typeck2.c (readonly_error, cxx_incomplete_type_diagnostic):
1681         Likewise.
1683 2005-06-17  Geoffrey Keating  <geoffk@apple.com>
1685         PR c++/17413
1686         * pt.c (type_unification_real): Apply template type deduction even
1687         to procedure parameters that are not dependent on a template
1688         parameter.
1690 2005-06-16  Nathan Sidwell  <nathan@codesourcery.com>
1692         * rtti.c (get_tinfo_decl): Avoid caching tinfo_descs when it might
1693         change.
1694         (create_pseudo_type_info): First parameter is an int.
1696 2005-06-15  Nathan Sidwell  <nathan@codesourcery.com>
1698         PR c++/20678
1699         * error.c (dump_expr) <COMPONENT_REF case>: Check DECL_NAME is not
1700         null.
1702         * Make-lang.in: Reformat some long lines.
1703         (gt-cp-rtti.h): New target.
1704         (cp/rtti.o): Add dependency.
1705         * config-lang.in (gtfiles): Add cp/rtti.c.
1706         * cp-tree.h (CPTI_TI_DESC_TYPE, CPTI_BLTN_DESC_TYPE,
1707         CPTI_PTR_DESC_TYPE, CPTI_ARY_DESC_TYPE, CPTI_FUNC_DESC_TYPE,
1708         CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE,
1709         CPTI_SI_CLASS_DESC_TYPE, CPTI_VMI_CLASS_DESC_TYPE,
1710         CPTI_PTM_DESC_TYPE, CPTI_BASE_DESC_TYPE): Remove.
1711         (ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
1712         ary_desc_type_node, func_desc_type_node, enum_desc_type_node,
1713         class_desc_type_node, si_class_desc_type_node,
1714         vmi_class_desc_type_node, ptm_desc_type_node,
1715         base_desc_type_node): Remove.
1716         * decl.c: Adjust documentation of global trees.
1717         * rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL,
1718         TINFO_REAL_NAME): Remove.
1719         (struct tinfo_s): New.
1720         (enum tinfo_kind): New.
1721         (tinfo_descs): New.
1722         (get_tinfo_decl): Adjust use of tinfo descriptor.
1723         (tinfo_base_init, generic_initializer, ptr_initializer,
1724         ptm_initializer, class_initializer): Likewise.
1725         (get_pseudo_ti_init): Take descriptor index. Adjust.
1726         (create_pseudo_type_info): Likewise.
1727         (get_pseudo_ti_desc): Return descriptor index. Adjust.
1728         (create_tinfo_types): Adjust use of create_pseudo_type_info.
1729         (emit_tinfo_decl): Adjust use of tinfo descriptor.
1731 2005-06-14  Roger Sayle  <roger@eyesopen.com>
1733         * decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
1735 2005-06-13  Geoffrey Keating  <geoffk@apple.com>
1737         * Make-lang.in (c++.install-man): Doesn't really depend on installdirs.
1738         (rule for installing g++.1 manpage): Does depend on installdirs.
1740 2005-06-13  Nathan Sidwell  <nathan@codesourcery.com>
1742         PR c++/20789
1743         * decl.c (cp_finish_decl): Clear runtime runtime initialization if
1744         in-class decl's initializer is bad.
1746         PR c++/21929
1747         * parser.c (struct cp_parser): Document that scope could be
1748         error_mark.
1749         (cp_parser_diagnose_invalid_type_name): Cope with error_mark for
1750         scope.
1751         (cp_parser_nested_name_specifier): Return NULL_TREE on error.
1752         (cp_parser_postfix_expression): Deal with null or error_mark
1753         scope.
1754         (cp_parser_elaborated_type_specifier): Adjust
1755         cp_parser_nested_name_specifier call.
1757         * parser (cp_parser_skip_to_end_of_block_or_statement): Cleanup.
1759 2005-06-12  Roger Sayle  <roger@eyesopen.com>
1761         PR c++/21930
1762         * error.c (dump_expr): UNARY_PLUS_EXPR need not handle void types.
1763         Treat CONVERT_EXPR identically to NOP_EXPR.
1765 2005-06-10  Aldy Hernandez  <aldyh@redhat.com>
1767         PR c++/10611
1768         * cvt.c (build_expr_type_conversion): Same.
1769         * typeck.c (build_binary_op): Handle vectors.
1770         (common_type): Same.
1771         (type_after_usual_arithmetic_conversions): Same.
1773 2005-06-08  Nathan Sidwell  <nathan@codesourcery.com>
1775         PR c++/19497
1776         * cp-tree.def (USING_DECL): Update documentation.
1777         * cp-tree.h (DECL_DEPENDENT_P): New.
1778         (USING_DECL_DECLS, USING_DECL_SCOPE): New.
1779         * class.c (handle_using_decl): Move most of the processing to ...
1780         * name-lookup.c (do_class_using_decl): ... here.  Make stricter.
1781         (push_using_decl): Use USING_DECL_SCOPE.
1782         (cp_emit_debug_info_for_using): Make extern.
1783         * cxx-pretty-print.c (pp_cxx_statement) <USING_DECL case>: Adjust.
1784         * name-lookup.h (cp_emit_debug_info_for_using): Declare.
1785         * pt.c (tsubst_decl) <USING_DECL case>: Use do_class_using_decl
1786         when tsubsting.
1787         (tsubst_expr): Use USING_DECL_SCOPE.
1788         * search.c (lookup_field_1): Use DECL_DEPENDENT_P.
1789         * semantics.c (finish_member_declaration): Likewise.
1791 2005-06-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1793         PR c++/19894
1794         * pt.c (tsubst): Reject pointer-to-member of type void.
1796         PR c++/20563
1797         * parser.c (cp_parser_label_declaration): Deal with invalid/missing
1798         identifiers.
1800 2005-06-07  Nathan Sidwell  <nathan@codesourcery.com>
1802         * cp-tree.def (DEFAULT_ARG): Adjust documentation.
1803         * cp-tree.h (DEFARG_INSTANTIATIONS): New.
1804         (struct tree_default_arg): Add instantiations member.
1805         * parser.c (cp_parser_late_parsing_default_args): Adjust to use a
1806         VEC.
1807         * pt.c (tsubst_arg_types): Likewise.
1809         * parser.c (cp_parser_late_parsing_default_args): Fix overeager
1810         assert in previous patch.
1812 2005-06-06  Jakub Jelinek  <jakub@redhat.com>
1814         * error.c (locate_error): Use gmsgid instead of msgid for argument
1815         name.
1816         (cp_error_at, cp_warning_at, cp_pedwarn_at): Likewise.
1818 2005-06-06  Nathan Sidwell  <nathan@codesourcery.com>
1820         PR 21903
1821         * cp-tree.def (DEFAULT_ARG): Document TREE_CHAIN use.
1822         * parser.c (cp_parser_late_parsing_default_args): Propagate parsed
1823         argument to any early instantiations.
1824         * pt.c (tsubst_arg_types): Chain early instantiation of default arg.
1826         PR c++/20637
1827         * cp-tree.h (add_method): Add using_decl parameter.
1828         * class.c (add_method): Add using_decl parameter.  Adjust error
1829         messages.
1830         (handle_using_decl): Pass the using decl to add_method.
1831         (clone_function_decl): Adjust add_member calls.
1832         * decl2.c (check_classfn): Likewise.
1833         * method.c (lazily_declare_fn): Likewise.
1834         * semantics.c (finish_member_declaration): Likewise.
1836         * method.c (synthesize_method): Use inform, not warning.
1838 2005-06-06  Hans-Peter Nilsson  <hp@axis.se>
1840         * config-lang.in (target_libs): Remove target-gperf.
1842 2005-06-05  Mark Mitchell  <mark@codesourcery.com>
1844         PR c++/21619
1845         * cp-tree.h (DECL_IS_BUILTIN_CONSTANT_P): New macro.
1846         * parser.c (cp_parser_postfix_expression): Allow non-constant
1847         expressions as arguments to __builtin_constant_p.
1848         * tree.c (builtin_valid_in_constant_expr_p): Use
1849         DECL_IS_BUILTIN_CONSTANT_P.
1851 2005-06-03  Mark Mitchell  <mark@codesourcery.com>
1853         PR c++/21853
1854         * typeck.c (casts_away_constness_r): Do not drop cv-qualifiers on
1855         the pointed-to type for a pointer-to-member.
1857         PR c++/21336
1858         * cp-tree.h (grok_op_properties): Remove friendp parameter.
1859         * decl.c (grokfndecl): Adjust call.
1860         (grok_op_properties): Determine the class of which the function is
1861         a member by looking at its DECL_CONTEXT, not current_class_type.
1862         * pt.c (tsubst_decl): Adjust call to grok_op_properties.
1864 2005-06-02  Nathan Sidwell  <nathan@codesourcery.com>
1866         * method.c (synthesize_method): Add addtional arg to warning call.
1868         PR c++/21280
1869         * Make-lang.in (method.o): Add diagnostic.h
1870         * decl.c (start_preparsed_function): Use decl's location for file
1871         info.
1872         * decl2.c (cp_finish_file): Set input_location before synthesizing
1873         a function.
1874         (mark_used): When deferring a synthesized function, save current
1875         location.  Do not set function's location when actually
1876         synthesizing it.
1877         * method.c: #include diagnostic.h.
1878         (synthesize_method): Set the functions source location.  Show
1879         needed location if errors are emitted.
1881         * decl.c (start_decl): Simplify specialization handling. Remove
1882         unneeded CLASSTYPE_TEMPLATE_INSTANTIATION check.
1883         * mangle.c (discriminator_for_local_entity): Use VEC_index.
1885         PR c++/20350
1886         * decl.c (duplicate_decls): Copy all of DECL_USE_TEMPLATE.
1888         PR c++/21151
1889         * name-lookup.c (pushtag): Push local class even in a template.
1891 2005-05-31  Nathan Sidwell  <nathan@codesourcery.com>
1893         PR c++/21165
1894         * init.c (integral_constant_value): Check the type of the
1895         initializer, not the decl.
1897 2005-05-30  Mark Mitchell  <mark@codesourcery.com>
1899         PR c++/21784
1900         * name-lookup.c (do_nonmember_using_decl): Ignore builtin
1901         functions, even when the used name is not a function.
1903 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
1905         * operators.def, optimize.c: Update copyright.
1907 2005-05-28  Mark Mitchell  <mark@codesourcery.com>
1909         PR c++/21210
1910         * call.c (standard_conversion): Permit conversions to complex
1911         types if conversion to the corresponding scalar type would be
1912         permitted.
1914         PR c++/21340
1915         * method.c (implicitly_declare_fn): Clear processing_template_decl
1916         when generating implicit declaration.
1918 2005-05-27  Mark Mitchell  <mark@codesourcery.com>
1920         PR c++/21614
1921         * typeck.c (get_member_function_from_ptrfunc): Do not attempt
1922         conversions to base classes of incomplete types.
1924 2005-05-27  Ian Lance Taylor  <ian@airs.com>
1926         * semantics.c (add_stmt): Add C++ frontend specific version.
1927         * cp-tree.h (STMT_IS_FULL_EXPR_P): Define.
1928         (stmts_are_full_exprs_p): Declare.
1930 2005-05-27  Roger Sayle  <roger@eyesopen.com>
1931             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
1933         * cp-tree.def (UNARY_PLUS_EXPR): New C++ unary tree code.
1934         * parser.c (cp_parser_unary_expression): Use UNARY_PLUS_EXPR instead
1935         of CONVERT_EXPR.
1936         (cp_parser_unary_expression): Likewise.
1937         * typeck.c (build_unary_op): Likewise.
1938         * call.c (add_builtin_candidate, build_new_op): Likewise.
1939         * error.c (dump_expr): Likewise.
1940         * pt.c (tsubst_copy, tsubst_copy_and_build): Likewise.
1941         * decl.c (ambi_op_p, grok_op_properties): Likewise.
1942         * dump.c (dump_op): Likewise.
1943         * lex.c (init_operators): Likewise.
1944         * operators.def ("+"): Likewise.
1945         * cp-gimplify.c (cp_gimplify_expr): Handle UNARY_PLUS_EXPR like a
1946         conversion, if the result and argument types differ.
1947         * tree.c (fold_if_not_in_template): Fold UNARY_PLUS_EXPR much
1948         like a NOP_EXPR when !processing_template_decl.
1950         * cxx-pretty-print.c (pp_cxx_cast_expression): Prototype.
1951         (pp_cxx_unary_expression): Handle new UNARY_PLUS_EXPR tree code.
1953 2005-05-27  Nathan Sidwell  <nathan@codesourcery.com>
1955         PR c++/21455
1956         * typeck.c (get_delta_difference): Cope with incomplete but equal
1957         classes.  Reorder if.
1959         PR c++/21681
1960         * parser.c (cp_parser_late_parsing_for_member): Disable access
1961         checking for template functions.
1963 2005-05-26  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1965         PR c++/21768
1966         * pt.c (redeclare_class_template): Change error message according
1967         to coding conventions.
1969 2005-05-26  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1971         * call.c (build_op_delete_call): Fix quoting in error message.
1973 2005-05-25  Richard Henderson  <rth@redhat.com>
1975         PR libgcj/21692
1976         * cp-tree.h (make_alias_for): Declare.
1977         * decl2.c (build_java_method_aliases): New.
1978         (cp_finish_file): Call it.
1979         * method.c (make_alias_for): Split out from ...
1980         (make_alias_for_thunk): ... here.
1982 2005-05-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1984         PR c++/21686
1985         * semantics.c (finish_id_expression): Fix quoting in error message.
1987 2005-05-25  DJ Delorie  <dj@redhat.com>
1989         * decl.c (duplicate_decls): Move warning control from if() to
1990         warning(OPT_*).
1991         * name-lookup.c (parse_using_directive): Likewise.
1992         * parser.c (cp_parser_elaborated_type_specifier): Likewise.
1993         (cp_parser_init_declarator): Likewise.
1994         * tree.c (handle_com_interface_attribute): Likewise.
1996 2005-05-24  Ziemowit Laski  <zlaski@apple.com>
1998         * class.c (layout_class_type): Do not issue C++ ABI warnings
1999         for ObjC structs.
2000         * decl.c (objc_mark_locals_volatile): Streamline by calling
2001         objc_volatilize_decl().
2002         * parser.c (cp_parser_objc_message_expression): Allow simple
2003         type specifiers (instead of merely type names) as message
2004         receivers.
2005         * pt.c (template_args_equal): Do not call objc_comptypes().
2006         * typeck.c (composite_pointer_type): If both pointers are
2007         ObjC-esque, arbitrarily choose the first; do not call
2008         objc_comptypes().
2009         (comptypes): Do not call objc_comptypes().
2010         (convert_for_assignment): Call objc_compare_types().
2011         (comp_ptr_ttypes_real): Call objc_type_quals_match() before
2012         concluding that types do not match.
2014 2005-05-24  Andrew Pinski  <pinskia@physics.uc.edu>
2016         PR C++/21645
2017         * optimize.c (update_cloned_parm): Copy the TYPE also from the
2018         original one.
2020 2005-05-19  Jakub Jelinek  <jakub@redhat.com>
2022         PR c++/21495
2023         * decl.c (grokdeclarator): Fix "storage class specified for"
2024         error reporting.
2026 2005-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2028         * parser.c: Fix comment typos.
2030 2005-05-18  Geoffrey Keating  <geoffk@apple.com>
2032         * Make-lang.in (cc1plus-dummy): New.
2033         (cc1plus-checksum.c): New.
2034         (cc1plus-checksum.o): New.
2035         (cc1plus): Add cc1plus-checksum.o.
2037 2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2039         PR C++/19664
2040         * decl2.c (determine_visibility): Don't set visibility to
2041         hidden if it has been set explicitly by user.
2043 2005-05-17  Ziemowit Laski  <zlaski@apple.com>
2044             Mike Stump  <mrs@apple.com>
2046         Yet more Objective-C++...
2048         * cp-objcp-common.h (cxx_get_alias_set): Move from
2049         here...
2050         (cxx_warn_unused_global_decl): Likewise.
2051         (cp_expr_size): Likewise.
2052         (cp_tree_size): Likewise.
2053         (cp_var_mod_type_p): Likewise.
2054         (cxx_initialize_diagnostics): Likewise.
2055         (cxx_types_compatible_p): Likewise.
2056         * cp-tree.h: to here.
2057         (do_poplevel): Add.
2058         * lex.c (D_OBJC): Add.
2059         (init_reswords): Add.
2060         * Make-lang.in (cp/pt.o): Add cp/cp-objcp-common.h.
2061         * parser.c: Add c-common.h include.
2062         * pt.c: Add c-common.h and cp-objcp-common.h includes.
2063         (template_args_equal): Use objc_comptypes as well.
2064         (tsubst_copy_and_build): Use objcp_tsubst_copy_and_build as well.
2065         * semantics.c (do_poplevel): Remove static.
2067         * decl.c (objc_mark_locals_volatile): Don't change decls that are
2068         already ok.
2069         * decl2.c (generate_ctor_or_dtor_function): Add code to initialize
2070         Objective C++ early enough.
2071         * lex.c (struct resword reswords): Add Objective-C++ support.
2072         * parser.c (cp_lexer_get_preprocessor_token): Add Objective-C++.
2073         (cp_parser_objc_message_receiver): Add.
2074         (cp_parser_objc_message_args): Likewise.
2075         (cp_parser_objc_message_expression): Likewise.
2076         (cp_parser_objc_encode_expression): Likewise.
2077         (cp_parser_objc_defs_expression): Likewise.
2078         (cp_parser_objc_protocol_expression): Likewise.
2079         (cp_parser_objc_selector_expression): Likewise.
2080         (cp_parser_objc_expression): Likewise.
2081         (cp_parser_objc_visibility_spec): Likewise.
2082         (cp_parser_objc_method_type): Likewise.
2083         (cp_parser_objc_protocol_qualifiers): Likewise.
2084         (cp_parser_objc_typename): Likewise.
2085         (cp_parser_objc_selector_p): Likewise.
2086         (cp_parser_objc_selector): Likewise.
2087         (cp_parser_objc_method_keyword_params): Likewise.
2088         (cp_parser_objc_method_tail_params_opt): Likewise.
2089         (cp_parser_objc_interstitial_code): Likewise.
2090         (cp_parser_objc_method_signature): Likewise.
2091         (cp_parser_objc_method_prototype_list): Likewise.
2092         (cp_parser_objc_method_definition_list): Likewise.
2093         (cp_parser_objc_class_ivars): Likewise.
2094         (cp_parser_objc_identifier_list): Likewise.
2095         (cp_parser_objc_alias_declaration): Likewise.
2096         (cp_parser_objc_class_declaration): Likewise.
2097         (cp_parser_objc_protocol_declaration): Likewise.
2098         (cp_parser_objc_protocol_refs_opt): Likewise.
2099         (cp_parser_objc_superclass_or_category): Likewise.
2100         (cp_parser_objc_class_interface): Likewise.
2101         (cp_parser_objc_class_implementation): Likewise.
2102         (cp_parser_objc_end_implementation): Likewise.
2103         (cp_parser_objc_declaration): Likewise.
2104         (cp_parser_objc_try_catch_finally_statement): Likewise.
2105         (cp_parser_objc_synchronized_statement): Likewise.
2106         (cp_parser_objc_throw_statement): Likewise.
2107         (cp_parser_objc_statement): Likewise.
2108         (cp_parser_primary_expression): Add Objective-C++.
2109         (cp_parser_statement): Likewise.
2110         (cp_parser_declaration): Likewise.
2111         (cp_parser_simple_type_specifier): Likewise.
2112         (cp_parser_type_name): Likewise.
2113         (cp_parser_parameter_declaration_list): Likewise.
2114         (cp_parser_member_declaration) Likewise.
2115         * tree.c: Include debug.h.
2116         * typeck.c (composite_pointer_type): Add Objective-C++ support.
2117         (finish_class_member_access_expr): Likewise.
2118         (build_function_call): Allow objc to rewrite FUNCTION_DECLs.
2119         (build_modify_expr): Allow objc to generate write barriers.
2121         * Make-lang.in (cp/tree.o): Add debug.h.
2122         * tree.c (lvalue_p_1, case CONST_DECL): Add.
2124 2005-05-18  Jan Hubicka  <jh@suse.cz>
2126         * method.c: Include tree-pass.h
2127         (use_thunk): Lower body before expanding.
2129 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
2131         PR c++/21454
2132         * decl.c (maybe_deduce_size_from_array_init): Call
2133         cp_apply_type_quals_to_decl after completing array type.
2135 2005-05-16  Richard Henderson  <rth@redhat.com>
2137         * decl.c (build_library_fn_1): Move setting TREE_NOTHROW ...
2138         (build_library_fn): ... here.
2140 2005-05-12  Ian Lance Taylor  <ian@airs.com>
2142         * cp-tree.h (cp_stmt_codes): Don't define.
2143         (statement_code_p): Declare.
2144         (STATEMENT_CODE_P): Define.
2145         * lex.c (statement_code_p): Define.
2146         (cxx_init): Use actual codes in stmt_codes initializer, not
2147         cp_stmt_codes macro.  Initialize statement_code_p directly, rather
2148         than using INIT_STATEMENT_CODES.
2150 2005-05-09  Mark Mitchell  <mark@codesourcery.com>
2152         * typeck.c (build_unary_op): Do not resort to address arithmetic
2153         when taking the address of a COMPONENT_REF.
2155 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
2157         * class.c (vtbl_init_data_s): Change the type of fns to
2158         VEC(tree,gc)*.
2159         (build_vtbl_initializer, add_vcall_offset, add_vcall_offset):
2160         Use VEC instead of VARRAY.
2162 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
2164         * mangle.c: Remove a reference to the MIPS -mint64 option.
2166 2005-05-07  Kazu Hirata  <kazu@cs.umass.edu>
2168         * decl.c (wrapup_globals_for_namespace): Use VEC instead of
2169         VARRAY.
2170         * name-lookup.c (add_decl_to_level, begin_scope): Likewise.
2171         * name-lookup.h (cp_binding_level): Change the type of
2172         static_decls to VEC(tree,gc)*.
2174         * mangle.c (globals): Change the type of substitutions to
2175         VEC(tree,gc)*.
2176         (dump_substitution_candidates, add_substitution,
2177         find_substitution, finish_mangling, init_mangle): Use VEC
2178         instead of VARRAY.
2180 2005-05-06  Kazu Hirata  <kazu@cs.umass.edu>
2182         * decl2.c (spew_debug): Remove.
2184         * decl2.c (ssdf_decls, start_static_storage_duration_function,
2185         generate_ctor_or_dtor_function): Use VEC instead of VARRAY.
2187         * decl2.c (pending_statics, note_vague_linkage_var,
2188         cp_finish_file): Use VEC instead of VARRAY.
2189         (pending_statics_used): Remove.
2191 2005-05-05  Kazu Hirata  <kazu@cs.umass.edu>
2193         * decl2.c (deferred_fns, note_vague_linkage_fn,
2194         cp_finish_file): Use VEC instead of VARRAY.
2196 2005-05-05  Mark Mitchell  <mark@codesourcery.com>
2198         PR c++/21352
2199         * pt.c (build_non_dependent_expr): Use is_overloaded_fn.
2201 2005-05-05  Kazu Hirata  <kazu@cs.umass.edu>
2203         * pt.c: Fix a comment typo.
2205 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
2207         * cp-tree.h (language_function): Change the type of
2208         x_local_names to VEC.
2209         * decl.c (push_local_name): Adjust uses of local_names.
2211 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2213         * friend.c, lex.c, mangle.c, repo.c: Update copyright.
2215 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
2217         * class.c (local_classes, init_class_processing): Use VEC
2218         instead of VARRAY.
2219         * cp-tree.h (local_classes): Likewise.
2220         * mangle.c (discriminator_for_local_entity): Likewise.
2221         * name-lookup.c (pushtag): Likewise.
2223         * class.c (current_lang_depth, push_lang_context,
2224         pop_lang_context): Use VEC instead of VARRAY.
2225         * cp-tree.h (saved_scope): Use VEC for lang_base instead of
2226         VARRAY.
2227         * name-lookup.c (push_to_top_level): Use VEC instead of
2228         VARRAY.
2230 2005-05-02  Paolo Bonzini  <bonzini@gnu.org>
2232         * semantics.c (finish_call_expr): Call resolve_overloaded_builtin
2233         for BUILT_IN_MD built-ins.
2235 2005-05-02  Michael Matz  <matz@suse.de>
2237         PR c++/19542
2238         * cp-tree.h (cp_tree_index): Remove CPTI_NULL, to be defined in C
2239         common frontend.
2240         (null_node): Remove.
2241         * lex.c (cxx_init): Move null_node initialisation to C common frontend.
2243 2005-04-25  Ian Lance Taylor  <ian@airs.com>
2245         * cp-tree.def: Add EXPR_STMT.
2246         * cp-tree.h (cp_stmt_codes): Add EXPR_STMT.
2247         (EXPR_STMT_EXPR): Define.
2248         * cp-gimplify.c: Include "flags.h".
2249         (gimplify_expr_stmt): New static function.
2250         (cp_gimplify_expr): Handle EXPR_STMT.
2251         * cxx-pretty-print.c (pp_cxx_statement): Use pp_cxx_expression
2252         rather than pp_expression.
2253         (pp_cxx_statement): Handle EXPR_STMT.
2254         * dump.c (cp_dump_tree): Handle EXPR_STMT.
2255         * lex.c (cxx_init): Don't use c_common_stmt_codes in stmt_codes
2256         initializer.
2258 2005-04-25  Andrew Pinski  <pinskia@physics.uc.edu>
2260         PR C++/21188
2261         * rtti.c (ifnonnull): Cast the zero comparison operand
2262         to the correct type.
2264 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
2266         PR middle-end/20991
2267         * class.c: Include cgraph.h.
2268         (cp_fold_obj_type_ref): Set node->local.vtable_method.
2269         * Make-lang.in (cgraph.o): Depend on $(CGRAPH_H).
2271 2005-04-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
2273         * mangle.c (write_builtin_type): Handle integer types which are
2274         not one of the shared integer type nodes and emit a "vendor
2275         extended builtin type" with an encoding in the form of "u5int96".
2277 2005-04-24  Ian Lance Taylor  <ian@airs.com>
2279         * cp-tree.def (USING_STMT): Change class to tcc_statement.
2280         (TRY_BLOCK, EH_SPEC_BLOCK, HANDLER, CLEANUP_STMT): Likewise.
2281         (IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT): Likewise.
2282         (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
2284 2005-04-23  DJ Delorie  <dj@redhat.com>
2286         * call.c, class.c, cvt.c, decl.c, decl2.c, except.c, friend.c,
2287         init.c, lex.c, mangle.c, method.c, name-lookup.c, parser.c,
2288         repo.c, rtti.c, tree.c, typeck.c, typeck2.c: Adjust warning()
2289         callers.
2291 2005-04-22  Per Bothner  <per@bothner.com>
2293         * decl.c (make_rtl_for_nonlocal_decl): Don't try get_fileinfo if
2294         input_filename is NULL, as it is for (say) __PRETTY_FUNCTION__.
2296 2005-04-22  Alexandre Oliva  <aoliva@redhat.com>
2298         PR c++/21087
2299         * name-lookup.c (push_overloaded_decl): Do not overload with
2300         non-duplicate anticipated built-in.
2302 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
2304         * cp-tree.h (THROW_NAME, AUTO_VTABLE_NAME, AUTO_TEMP_FORMAT,
2305         VTABLE_BASE, VTABLE_NAME_PREFIX, STATIC_NAME_FORMAT): Remove.
2307 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
2309         * cp-tree.h: Adjust for new VEC API.
2310         Define VEC(tree_pair_s,gc).
2311         (struct save_scope): Adjust.
2312         (struct lang_type_class): Adjust.
2313         (unemitted_tinfo_decls): Adjust.
2314         * class.c (add_method, resort_type_method_vec,
2315         finish_struct_methods, struct find_final_overrider_data,
2316         dfs_find_final_overrider_pre, find_final_overrider,
2317         get_vcall_index, warn_hidden, walk_subobject_offsets,
2318         check_methods, fixup_inline_methods, end_of_class,
2319         warn_about_ambiguous_bases, finish_struct, build_vtbl_initializer,
2320         add_vcall_offset): Adjust.
2321         * decl.c (xref_basetypes, finish_method): Adjust.
2322         * decl2.c (check_classfn): Adjust.
2323         * init.c (sort_mem_initializers, push_base_cleanups): Adjust.
2324         * method.c (do_build_copy_constructor): Adjust.
2325         * name-lookup.c (new_class_binding, store_binding,
2326         store_bindings, store_class_bindings): Adjust.
2327         * name-lookup.h: Define VEC(cxx_saved_binding,gc),
2328         VEC(cp_class_binding,gc).
2329         (struct cp_binding_level): Adjust.
2330         * parser.c: Define VEC(cp_token_position,heap).
2331         (struct cp_lexer): Adjust.
2332         (cp_lexer_new_main, cp_lexer_new_from_tokens, cp_lexer_destroy,
2333         cp_lexer_save_tokens): Adjust.
2334         * pt.c (retrieve_specialization,
2335         check_explicit_specialization): Adjust.
2336         * rtti.c (unemitted_tinfo_decls): Adjust.
2337         (init_rtti_processing, get_tinfo_decl, get_pseudo_ti_init,
2338         get_pseudo_ti_desc): Adjust.
2339         * search.c (dfs_access_in_type, lookup_conversion_operator,
2340         lookup_fnfields_1, dfs_walk_once, dfs_walk_once_accessible,
2341         dfs_get_pure_virtuals, lookup_conversions_r, binfo_for_vbase): Adjust.
2342         * semantics.c: Define VEC(deferred_access,gc).
2343         (push_deferring_access_checks): Adjust.
2344         * typeck2.c (abstract_virtuals_error): Adjust.
2346 2005-04-20  Ian Lance Taylor  <ian@airs.com>
2348         * cp-tree.def: Add STMT_EXPR.
2349         * cp-tree.h (STMT_EXPR_NO_SCOPE): Define.
2350         (STMT_EXPR_STMT): Define.
2351         * cxx-pretty-print.c (pp_cxx_primary_expression): Handle
2352         STMT_EXPR.
2353         (pp_cxx_expression): Likewise.
2354         (pp_cxx_statement): Call pp_cxx_statement, not pp_statement.
2355         * dump.c (cp_dump_tree): Handle STMT_EXPR.
2357 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
2359         * decl.c (expand_static_init): Call build2 and build3 instead
2360         of build.
2362         * cp-tree.h (VPTR_NAME, VPTR_NAME_P): Remove.
2364 2005-04-17  Ian Lance Taylor  <ian@airs.com>
2366         * cp-tree.def: Add SIZEOF_EXPR, ARROW_EXPR and ALIGNOF_EXPR.
2367         * cxx-pretty-print.c (pp_cxx_postfix_expression): Handle
2368         ARROW_EXPR.
2369         (pp_cxx_unary_expression): Handle SIZEOF_EXPR and ALIGNOF_EXPR.
2370         (pp_cxx_expression): Handle ARROW_EXPR, SIZEOF_EXPR, and
2371         ALIGNOF_EXPR.
2372         * typeck.c (cxx_sizeof_or_alignof_type): Update call to
2373         c_sizeof_or_alignof_type for change in parameter type.
2375 2005-04-16  Mark Mitchell  <mark@codesourcery.com>
2377         PR c++/21025
2378         * typeck.c (cxx_sizeof_or_alignof_type): Check whether the type to
2379         which sizeof/alignof is dependent, rather than just whether we are
2380         processing_template_decl.
2382 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
2384         * cp-tree.h (LOOKUP_GLOBAL): Remove.
2385         (LOOKUP_ONLYCONVERTING, DIRECT_BIND, LOOKUP_NO_CONVERSION,
2386         LOOKUP_DESTRUCTOR, LOOKUP_NO_TEMP_BIND, LOOKUP_PREFER_TYPES,
2387         LOOKUP_PREFER_NAMESPACES, LOOKUP_CONSTRUCTOR_CALLABLE): Adjust
2388         their values.
2390 2005-04-15  Richard Henderson  <rth@redhat.com>
2392         PR middle-end/14311
2393         * semantics.c (finish_call_expr): Call resolve_overloaded_builtin.
2395 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
2397         * cp-tree.h (lang_type_class): Remove redefined.  Move
2398         java_interface into where redefined was.  Increment the width
2399         of dummy.
2400         (TYPE_REDEFINED): Remove.
2402 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
2404         * cp-tree.h (SET_TMPL_ARG, ENUM_TI_TEMPLATE, ENUM_TI_ARGS,
2405         CLASSTYPE_TEMPLATE_LEVEL): Remove.
2407 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
2409         * decl2.c (determine_visibility): Don't use export_class_data.
2410         (import_export_decl): Honor TARGET_CXX_CLASS_DATA_ALWAYS_WEAK and
2411         TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY.
2413 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
2415         * cp-tree.h (cxx_alignof): Remove.
2417         * cp-tree.h (DECL_ARRAY_DELETE_OPERATOR_P): Remove.
2419         * cp-tree.h (EXCEPTION_CLEANUP_NAME, B_SET, B_CLR, B_TST,
2420         CONV_STATIC_CAST): Remove.
2422         * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Remove.
2424         * cp-tree.h (VF_BINFO_VALUE, VF_BASETYPE_VALUE): Remove.
2426         * cp-tree.h (cp_deprecated): Remove.
2428 2005-04-08  Ian Lance Taylor  <ian@airs.com>
2430         * cp-tree.def: Define FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
2431         CONTINUE_STMT, SWITCH_STMT.
2432         * cp-tree.h (cp_stmt_codes): Add FOR_STMT, WHILE_STMT, DO_STMT,
2433         BREAK_STMT, CONTINUE_STMT, SWITCH_STMT.
2434         (WHILE_COND, WHILE_BODY): Define.
2435         (DO_COND, DO_BODY): Define.
2436         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Define.
2437         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Define.
2438         * cp-gimplify.c (enum bc_t): Define.
2439         (struct cp_gimplify_ctx, ctxp): Define.
2440         (push_context, pop_context): New static functions.
2441         (begin_bc_block, finish_bc_block): New static functions.
2442         (build_bc_goto): New static function.
2443         (gimplify_cp_loop, gimplify_for_stmt): New static functions.
2444         (gimplify_while_stmt, gimplify_do_stmt): Likewise.
2445         (gimplify_switch_stmt): Likewise.
2446         (cp_gimplify_expr): Handle FOR_STMT, WHILE_STMT, DO_STMT,
2447         SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
2448         (cp_genericize): Call push_context and pop_context.
2449         * semantics.c (finish_break_stmt): Just call build_stmt
2450         (BREAK_STMT) rather than build_break_stmt.
2451         (finish_continue_stmt): Corresponding change.
2452         * decl.c (pop_switch): Update call to c_do_switch_warnings for new
2453         parameters.
2454         * cxx-pretty-print.c (pp_cxx_statement): Handle SWITCH_STMT,
2455         WHILE_STMT, DO_STMT, FOR_STMT, BREAK_STMT, CONTINUE_STMT.
2456         * dump.c (cp_dump_tree): Likewise.
2458 2005-04-08  Mark Mitchell  <mark@codesourcery.com>
2460         PR c++/20905
2461         * parser.c (cp_parser_type_specifier_seq): Add is_condition
2462         parameter.
2463         (cp_parser_new_type_id): Pass it.
2464         (cp_parser_condition): Likewise.
2465         (cp_parser_conversion_type_id): Likewise.
2466         (cp_parser_type_id): Likewise.
2467         (cp_parser_type_specifier_seq): In a condition, do not allow
2468         invalid type-specifier combinations.
2469         (cp_parser_exception_declaration): Adjust call to
2470         cp_parser_type_specifier_seq.
2472         * cp-tree.def (TINST_LEVEL): Document TINST_IN_SYSTEM_HEADER_P.
2473         * cp-tree.h (struct tinst_level): Add in_system_header_p.
2474         (TINST_IN_SYSTEM_HEADER_P): New macro.
2475         (make_tinst_level): Remove.
2476         * pt.c (lookup_template_class): Preserve DECL_IN_SYSTEM_HEADER on
2477         the instantiated class.
2478         (push_tinst_level): Do not use make_tinst_level.  Set
2479         TINST_IN_SYSTEM_HEADER_P.
2480         (pop_tinst_level): Likewise.
2481         (instantiate_class_template): Set in_system_header.
2482         (instantiate_pending_templates): Likewise.
2483         * tree.c (make_tinst_level): Remove.
2485 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
2487         * decl.c (start_decl): Apply pending #pragma weak regardless of
2488         scope.
2490 2005-04-06  Mark Mitchell  <mark@codesourcery.com>
2492         PR c++/20212
2493         * pt.c (regenerate_decl_from_template): Copy attributes for
2494         parameters from the pattern to the instantiation.
2496 2005-04-05  Mark Mitchell  <mark@codesourcery.com>
2498         PR c++/20734
2499         * cp-tree.def (OFFSET_REF): Correct comments.
2500         * init.c (build_offset_ref): Remove misleading comment.
2501         * typeck.c (build_unary_op): Handle pointer-to-member creation
2502         here, rather than ...
2503         (unary_complex_lvalue): ... here.
2505 2005-04-06  Jason Merrill  <jason@redhat.com>
2507         PR c++/19312
2508         * tree.c (stabilize_init): Don't bother trying to stabilize
2509         something with no side-effects.
2511 2005-04-05  Mark Mitchell  <mark@codesourcery.com>
2513         PR c++/20763
2514         * decl.c (grokdeclarator): Correct attribute handling.
2516 2005-04-05  Mark Mitchell  <mark@codesourcery.com>
2518         PR c++/19159
2519         * decl2.c (import_export_decl): Use non-COMDAT external linkage
2520         for virtual tables, typeinfo, etc. that will be emitted in only
2521         one translation unit on systems without weak symbols.
2523 2005-04-04  Mark Mitchell  <mark@codesourcery.com>
2525         PR c++/20679
2526         * parser.c (cp_parser_template_name): Fix thinko.
2528 2005-04-04  Nathan Sidwell  <nathan@codesourcery.com>
2530         PR c++/20746
2531         * method.c (use_thunk): Protect covariant pointer return
2532         adjustments from NULL pointers.
2534 2005-04-04  Jan Hubicka  <jh@suse.cz>
2536         * decl2.c (finish_objects): Revert my previous patch.
2537         (cp_finish_file): Likewise.
2539 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
2541         * pt.c: Fix comment typos.
2543 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
2545         PR c++/20723
2546         * pt.c (more_specialized_fn): Member functions are unordered wrt
2547         non-members.  Conversion operators are unordered wrt other
2548         functions.
2550 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
2552         * call.c (add_template_candidates_real): Remove length parameter
2553         from fn_type_unification call.
2554         * class.c (resolve_address_of_overloaded_function): Likewise
2555         * cp-tree.h (fn_type_unification): Remove length parameter.
2556         * pt.c (get_bindings_overload): Remove.
2557         (get_bindings_real): Rename to ...
2558         (get_bindings): ... here.  Remove length and strict
2559         parameters. Change return type flag to boolean.  Remove original
2560         forwarding function.
2561         (determine_specialization): Adjust get_bindings call.
2562         (fn_type_unification): Remove length parameter.  Adjust.
2563         (type_unification_real): Remove length parameter.  Adjust.
2564         (resolve_overloaded_unification): Adjust get_bindings call.
2565         (try_one_overload): Simplify confusing cascaded if control flow.
2566         (unify): Remove length paramter from type_unification_real call.
2567         (most_specialized_instantiation): Adjust get_bindings calls.
2568         (most_specialized): Likewise.
2570 2005-03-31  Nathan Sidwell  <nathan@codesourcery.com>
2572         PR c++/19203, implement DR 214
2573         * call.c (joust): Use more_specialized_fn.
2574         * cp-tree.h (DEDUCE_ORDER): Remove.
2575         (more_specialized): Replace with ...
2576         (more_specialized_fn): ... this.
2577         * pt.c (maybe_adjust_types_for_deduction): Remove DEDUCE_ORDER
2578         case.
2579         (type_unification_real): Remove DEDUCE_ORDER case.
2580         (more_specialized): Replace with ...
2581         (more_specialized_fn): ... this.  Implement DR 214.
2582         (most_specialized_instantiation): Use get_bindings_real directly.
2584 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2586         PR c++/18644
2587         * call.c (build_new_op): Remove check for -Wsynth.
2589 2005-03-31  Jan Hubicka  <jh@suse.cz>
2591         * decl2.c (finish_objects): Mark ctor as needed.
2592         (cp_finish_file): Output variables only in nonunit-at-a-time.
2594 2005-03-29  Richard Henderson  <rth@redhat.com>
2596         PR c/20519
2597         * decl.c (cp_complete_array_type): Rename from complete_array_type.
2598         Use the new complete_array_type in c-common.c.  Update all callers.
2599         * cp-tree.h (cp_complete_array_type): Update to match.
2601 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
2603         * typeck.c (build_static_cast_1): Allow scalar_cast between
2604         any integral, floating, or enumeration type.
2606 2005-03-24  Steven Bosscher  <stevenb@suse.de>
2608         * typeck.c (comptypes): First determine if the types are compatible
2609         from a target-independent point of view.  Check target attributes
2610         last.
2612         * class.c (build_base_path):
2613         (build_vbase_offset_vtbl_entries):
2614         (add_vcall_offset): Replace fold (buildN (...)) with fold_buildN.
2615         * error.c (dump_expr): Likewise.
2616         * init.c (build_zero_init, expand_cleanup_for_base,
2617         build_vec_delete_1): Likewise.
2618         * mangle.c (write_integer_cst): Likewise.
2619         * method.c (thunk_adjust): Likewise.
2620         * pt.c (convert_nontype_argument, tsubst, unify): Likewise.
2621         * tree.c (cxx_print_statistics, array_type_nelts_total): Likewise.
2622         * typeck.c (build_ptrmemfunc_access_expr,
2623         (get_member_function_from_ptrfunc): Likewise.
2625 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
2627         * cp-objcp-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
2629 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
2631         * cp-tree.h (perform_integral_promotions): Remove.
2632         (default_conversion): Add.
2634 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
2636         * parser.c (cp_parser_warn_min_max): New function.
2637         (cp_parser_binary_expression): Use it.
2638         (cp_parser_assignment_operator_opt): Likewise.
2639         (cp_parser_operator): Likewise.
2641 2005-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2643         PR c++/19980
2644         * decl.c (start_preparsed_function): Robustify.
2646 2005-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2648         PR c++/20499
2649         * parser.c (cp_parser_class_head): Return NULL_TREE when
2650         encountering a redefinition.
2652 2005-03-22  Nathan Sidwell  <nathan@codesourcery.com>
2654         PR c++/20465
2655         PR c++/20381
2656         * typeck.c (build_ptrmemfunc): Allow OFFSET_REF when processing a
2657         template.
2659 2005-03-21  Paolo Carlini  <pcarlini@suse.de>
2661         PR c++/20461
2662         PR c++/20536
2663         * init.c (emit_mem_initializers): Don't crash on undefined
2664         types.
2666 2005-03-21  Paolo Carlini  <pcarlini@suse.de>
2668         PR c++/20147
2669         * semantics.c (finish_stmt_expr_expr): Return immediately
2670         if error_operand_p (expr).
2672 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
2674         * cp-tree.h (lvalue_or_else, lvalue_p): New.
2675         * typeck.c (lvalue_or_else): New.  Call lvalue_error.
2677 2005-03-19  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2679         PR c++/20240
2680         * decl.c (decls_match): Compare context of VAR_DECL.
2682 2005-03-19  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2684         PR c++/20333
2685         * parser.c (cp_parser_postfix_expression) <case RID_TYPENAME>:
2686         Check the return value of cp_parser_nested_name_specifier.
2688 2005-03-18  Dale Johannesen <dalej@apple.com>
2690         * cp/tree.c (cp_tree_equal):  Handle SSA_NAME.
2692 2005-03-18  Paolo Carlini  <pcarlini@suse.de>
2694         PR c++/20463
2695         * parser.c (cp_parser_diagnose_invalid_type_name):
2696         Check TYPE_BINFO (current_class_type) before attempting
2697         to emit inform messages.
2699 2005-03-17  Paolo Carlini  <pcarlini@suse.de>
2701         PR c++/19966
2702         * cp-tree.h (grok_op_properties): Change return type to void.
2703         * decl.c (grok_op_properties): Return early - don't check the
2704         arity - in case of a static member or an operator that cannot
2705         be non-member; tidy a bit.
2707 2005-03-17  Nathan Sidwell  <nathan@codesourcery.com>
2709         PR c++/20186
2710         * pt.c (contains_dependent_cast_p): Remove.
2711         (fold_non_dependent_expr): Don't use it.
2712         (value_dependent_expression_p): Use a switch statement.
2713         reference_exprs can be dependent.
2715 2005-03-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2717         PR c++/4403
2718         PR c++/9783, DR433
2719         * name-lookup.c (pushtag): Skip template parameter scope when
2720         scope is ts_global.  Don't push tag into template parameter
2721         scope.
2722         * pt.c (instantiate_class_template): Reorder friend class
2723         template substitution to handle non-dependent friend class
2724         that hasn't been previously declared.
2726 2005-03-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2728         Friend class name lookup 5/n
2729         PR c++/1016
2730         * cp-tree.h (pushtag): Adjust declaration.
2731         * decl.c (lookup_and_check_tag): Call lookup_type_scope if
2732         lookup_name fails.
2733         (xref_tag): Adjust call to pushtag.  Make hidden class visible.
2734         (start_enum): Adjust call to pushtag.
2735         * name-lookup.c (ambiguous_decl): Ignore hidden names.
2736         (qualify_lookup): Change return type to bool.
2737         (hidden_name_p): New function.
2738         (lookup_namespace_name, unqualified_namespace_lookup,
2739         lookup_name_real): Use it.
2740         (lookup_type_scope): Update comments.
2741         (maybe_process_template_type_declaration): Change parameter name
2742         from globalize to is_friend.
2743         (pushtag): Change globalize parameter of type int to tag_scope.
2744         Hide name if introduced by friend declaration.
2745         * name-lookup.h (hidden_name_p): Add declaration.
2746         * parser.c (cp_parser_lookup_name): Don't deal with hidden name
2747         here.
2748         * pt.c (push_template_decl_real): Make hidden class template
2749         visible.
2750         (lookup_template_class, instantiate_class_template): Adjust call
2751         to pushtag.
2752         * semantics.c (begin_class_definition): Likewise.
2753         * rtti.c (init_rtti_processing, build_dynamic_cast_1,
2754         tinfo_base_init, emit_support_tinfos): Use ts_current instead of
2755         ts_global.
2757 2005-03-13  Mark Mitchell  <mark@codesourcery.com>
2759         PR c++/20157
2760         * pt.c (determine_specialization): Reject non-specializations.
2762 2005-03-11  Per Bothner  <per@bothner.com>
2764         * cp-tree.h (struct cp_declarator): New id_loc field.
2765         * cp/parser.c (cp_lexer_get_preprocessor_token): Set cp_token's
2766         location using c_lex_with_flags, instead of input_location.
2767         (cp_parser_direct_declarator): Set declarator's id_loc from
2768         cp_token's id_loc.
2770 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
2772         PR c++/18384, c++/18327
2773         * decl.c (reshape_init_array): Use UHWI type for max_index_cst
2774         and index.  Convert max_index to size_type_node if it isn't
2775         host_integerp (, 1).
2777 2005-03-09  Mark Mitchell  <mark@codesourcery.com>
2779         PR c++/20208
2780         * pt.c (tsubst_decl): Apply array-to-pointer and
2781         function-to-pointer conversions to function arguments.
2782         (regenerate_decl_from_template): Likewise.
2784 2005-03-09  Paolo Carlini  <pcarlini@suse.de>
2786         PR c++/16859
2787         * decl.c (complete_array_type): In pedantic mode, return
2788         3 for an empty initializer list as the initializer for an
2789         array of unknown bound (8.5.1/4).
2790         (maybe_deduce_size_from_array_init): Fix final test to use
2791         the above.
2793 2005-03-08  Nathan Sidwell  <nathan@codesourcery.com>
2795         PR c++/20186
2796         * pt.c (contains_dependent_cast_p): New.
2797         (fold_non_dependent_expr): Call it.
2799 2005-03-08  Mark Mitchell  <mark@codesourcery.com>
2801         PR c++/20142
2802         * cp-tree.h (target_type): Remove.
2803         * decl.c (layout_var_decl): Remove #if 0'd code.
2804         (cp_finish_decl): Remove dead code.
2805         * init.c (build_vec_init): When determining whether or not the
2806         element type has an asignment operator, look through all array
2807         dimensions.
2808         * typeck.c (target_type): Remove.
2810 2005-03-07  Mark Mitchell  <mark@codesourcery.com>
2812         * class.c (finish_struct_1): Do not warn about non-virtual
2813         destructors in Java classes.
2815 2005-03-05  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
2817         PR c++/19311
2818         * init.c (build_offset_ref): Don't build non-dependent SCOPE_REF.
2819         * pt.c (build_non_dependent_expr): Don't build NON_DEPENDENT_EXPR
2820         for OFFSET_TYPE.
2821         * typeck.c (build_x_unary_op): Don't build non-dependent SCOPE_REF.
2822         Also set PTRMEM_OK_P for NON_DEPENDENT_EXPR.
2823         (build_unary_op): Handle building ADDR_EXPR of OFFSET_REF inside
2824         template.
2826 2005-03-02  Alexandre Oliva  <aoliva@redhat.com>
2828         * name-lookup.c (push_overloaded_decl): Don't error if the new
2829         decl matches the old one.
2830         * decl.c (redeclaration_error_message): Likewise.
2832 2005-03-01  Per Bothner  <per@bothner.com>
2834         * decl.c (finish_function): Use SET_EXPR_LOCATION instead of
2835         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
2837 2005-03-01  Nathan Sidwell  <nathan@codesourcery.com>
2839         PR c++/20232
2840         * class.c (update_vtable_entry_for_fn): Don't crash on invalid
2841         covariancy.
2843         * cp-tree.g (THUNK_TARGET): Expand comment.
2844         * method.c (use_thunk): Make sure we also use the target, if that
2845         is a thunk.
2847 2005-02-27  Jakub Jelinek  <jakub@redhat.com>
2849         PR c++/20206
2850         * decl.c (cxx_comdat_group): Put thunks for
2851         TARGET_USE_LOCAL_THUNK_ALIAS_P (function) functions into the same
2852         comdat group as the thunk target.
2854 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2856         * call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c,
2857         parser.c: Fix comment typo(s).
2859 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
2861         PR c++/20175
2862         * decl.c (reshape_init): Don't warn about missing braces if STRING_CST
2863         initializes a char/wchar_t array.
2865 2005-02-23  Mark Mitchell  <mark@codesourcery.com>
2867         PR c++/19878
2868         * decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations
2869         with internal linkage.
2871 2005-02-23  Alexandre Oliva  <aoliva@redhat.com>
2873         * decl.c (grokvardecl): Don't exempt anonymous types from having
2874         linkage for variables that have linkage other than "C".
2876 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2878         * cp-objcp-common.h, error.c: Update copyright.
2880 2005-02-22  Mark Mitchell  <mark@codesourcery.com>
2882         PR c++/20073
2883         * decl.c (start_decl_1): Don't clear TREE_READONLY.
2884         (cp_finish_decl): Likewise.
2885         (complete_vars): Call cp_apply_type_quals_to_decl.
2886         * typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in
2887         cases where that's not valid.
2889         PR c++/19991
2890         * init.c (integral_constant_value): Iterate if the value of a decl
2891         is itself a constant.
2893         PR c++/20152
2894         * parser.c (cp_parser_class_head): Check for redefintions here.
2895         * semantics.c (begin_class_definition): Not here.
2897         PR c++/20153
2898         * decl2.c (build_anon_union_vars): Add type parameter.
2899         (finish_anon_union): Pass it.
2901         PR c++/20148
2902         * error.c (dump_expr): Do not print the body of a BIND_EXPR.
2903         Handle STATEMENT_LIST.
2905         PR c++/19883
2906         * parser.c (cp_parser_direct_declarator): Always complain about
2907         non-constant array bounds when in a function scope.
2908         * semantics.c (finish_id_expression): Do not mark dependent names
2909         as non-constant.
2911 2005-02-21  Douglas Gregor  <dgregor@cs.indiana.edu>
2913         PR c++/19076
2914         PR c++/6628
2915         * cp-tree.h (cp_apply_type_quals_to_decl): Declared.
2916         * decl.c (grokdeclarator): Pedwarn about qualifying a function
2917         type.
2918         Add qualifiers when declaring a typedef of a function type.
2919         Member function pointers pick up the qualifiers of the typedef
2920         used to declare them.
2921         Don't complain about creating cv-qualified function types.
2922         Complain about qualified function typedefs that are used to
2923         declare non-static member functions or free functions.
2924         Use cp_apply_type_quals_to_decl.
2925         (start_preparsed_function): Use cp_apply_type_quals_to_decl.
2926         (grokclassfn): Use cp_apply_type_quals_to_decl.
2927         * error.c (dump_type_suffix): Print qualifiers for function
2928         types.
2929         * pt.c (tsubst_decl): Use cp_apply_type_quals_to_decl.
2930         (tsubst): When substituting a function type into a member
2931         pointer type, pass along the qualifiers.
2932         (unify): Unify member pointers to member function pointers.
2933         * tree.c (cp_build_qualified_type_real): Function types may be
2934         qualified. This includes restrict qualifiers.
2935         * typeck.c (cp_apply_type_quals_to_decl): New function to replace
2936         use of c_apply_type_quals_to_decl. Drops qualifiers that are being
2937         added to function types.
2939 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
2941         PR 18785
2942         * cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
2943         c_common_to_target_charset.  Delete bogus comment.
2945 2005-02-18  Richard Henderson  <rth@redhat.com>
2947         PR libstdc++/10606
2948         * except.c (do_get_exception_ptr): New.
2949         (expand_start_catch_block): Use it.
2951 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
2953         * decl.c (start_decl_1): Only check TYPE_NEEDS_CONSTRUCTING
2954         if type is not error_mark_node.
2956 2005-01-20  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2958         PR c++/19508
2959         * decl2.c (grokfield): Do not apply attributes to template parameters
2960         as they are ignored by tsubst anyway.
2962 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
2964         PR c++/19813
2965         * decl.c (start_decl_1): Clear TREE_READONLY flag if
2966         its type has TYPE_NEEDS_CONSTRUCTING.
2967         (complete_vars): Likewise.
2969 2005-02-17  Alexandre Oliva  <aoliva@redhat.com>
2971         PR c++/20028
2972         * class.c (finish_struct): Initialize TYPE_SIZE_UNIT of a
2973         template along with TYPE_SIZE.
2975         PR c++/20022
2976         * semantics.c (perform_deferred_access_checks): Use
2977         get_deferred_access_checks to get the top of the stack.
2979 2005-02-15  Alexandre Oliva  <aoliva@redhat.com>
2981         PR c++/17788
2982         * class.c (add_implicitly_declared_members, check_field_decl)
2983         (check_field_decls, check_bases): Remove arguments, tests and
2984         assignments of cant_have_default_ctor-related variables.
2986 2005-02-15  Alexandre Oliva  <aoliva@redhat.com>
2988         * decl2.c (mark_used): Set the source location of the used decl to
2989         the current input location here...
2990         * method.c (synthesize_method): ... not here.  Set input_location
2991         from the decl instead.
2993 2005-02-14  Nathan Sidwell  <nathan@codesourcery.com>
2995         PR c++/19608
2996         * parser.c (cp_parser_late_parsing_for_member): Use
2997         current_function_decl as scope to push to and from.
2999         PR c++/19884
3000         * pt.c (check_explicit_specialization): Make sure namespace
3001         binding lookup found an overloaded function.
3002         (lookup_template_function): Just assert FNS is an overloaded
3003         function.
3005         PR c++/19895
3006         * decl.c (grokdeclarator): Check for error mark node in ptrmem
3007         construction.
3009 2005-02-14  Alexandre Oliva  <aoliva@redhat.com>
3011         PR c++/17816
3012         * decl.c (redeclaration_error_message): Report redefinition of
3013         pure virtual function.
3015 2005-02-14  Nathan Sidwell  <nathan@codesourcery.com>
3017         PR c++/19891
3018         * class.c (build_simple_base_path): Build the component_ref
3019         directly.
3020         (update_vtable_entry_for_fn): Walk the covariant's binfo chain
3021         rather than using lookup_base.
3022         * search.c (dfs_walk_once): Add non-recursive assert check.
3023         * typeck.c (build_class_member_access_expr): It is possible for
3024         the member type to be both const and volatile.
3026 2005-02-12  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3028         PR c++/14479
3029         PR c++/19487
3030         * pt.c (maybe_check_template_type): Remove.
3031         * cp-tree.h (maybe_check_template_type): Remove prototype.
3032         * name-lookup.c (maybe_process_template_type_declaration): Don't
3033         use maybe_check_template_type.
3035 2005-02-11  Richard Henderson  <rth@redhat.com>
3037         PR c++/19632
3038         * pt.c (get_mostly_instantiated_function_type): Save and restore
3039         flag_access_control instead of push/pop_access_scope.
3041 2005-02-10  Mark Mitchell  <mark@codesourcery.com>
3043         PR c++/19755
3044         * decl.c (reshape_init): Issue warnings about missing braces.
3046 2005-02-11  Kazu Hirata  <kazu@cs.umass.edu>
3048         * cp-tree.def, except.c, ptree.c: Update copyright.
3050 2005-02-09  Mark Mitchell  <mark@codesourcery.com>
3052         PR c++/19811
3053         * call.c (build_op_delete_call): Check COMPLETE_TYPE_P before
3054         attempting name lookup.
3056         * parser.c (cp_parser_unqualified_id): Initialize type_decl.
3058         PR c++/19787
3059         * call.c (initialize_reference): Robustify.
3061         PR ++/19732
3062         * decl.c (grokdeclarator): Check for invalid use of destructor
3063         names.
3065         PR c++/19762
3066         * parser.c (cp_parser_unqualified_id): Avoid creating destructor
3067         names with invalid types.
3069         PR c++/19826
3070         * parser.c (cp_parser_direct_declarator): Allow type-dependent
3071         expressions as array bounds.
3073         PR c++/19739
3074         * parser.c (cp_parser_attributes_list): Allow empty lists.
3076 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
3078         PR c++/19733
3079         * class.c (add_method): Don't set TYPE_HAS_DESTRUCTOR.
3080         (check_bases): Give warnings about a base class with a
3081         non-virtual destructor, even if it is implicit.
3082         (finish_struct_bits): Don't copy TYPE_HAS_DESTRUCTOR.
3083         (maybe_warn_about_overly_private_class): Don't use
3084         TYPE_HAS_DESTRUCTOR.
3085         (finish_struct_methods): Don't set TYPE_HAS_DESTRUCTOR.
3086         (check_for_override): Give it external linkage.
3087         (add_implicitly_declared_members): Generate destructors lazily.
3088         (check_field_decls): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR, not
3089         TYPE_HAS_DESTRUCTOR.
3090         (check_bases_and_members): Call check_methods before
3091         check_field_decls.
3092         (check_bases_and_members): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR, not
3093         TYPE_HAS_DESTRUCTOR.
3094         (finish_struct_1): Do not use TYPE_HAS_DESTRUCTOR.
3095         * cp-tree.def (PSEUDO_DTOR_EXPR): Document.
3096         * cp-tree.h (TYPE_HAS_DESTRUCTOR): Remove.
3097         (lang_type_class): Add lazy_destructor.
3098         (CLASSTYPE_LAZY_DESTRUCTOR): New macro.
3099         (CLASSTYPE_DESTRUCTORS): Robustify.
3100         (TYPE_HAS_DESTRUCTOR): Remove.
3101         (check_for_override): Declare.
3102         (build_vbase_delete): Remove.
3103         * cvt.c (convert_to_void): Issue errors about pseudo-destructor
3104         expressions.
3105         * decl.c (cxx_maybe_build_cleanup): Remove dead code.
3106         * except.c (dtor_nothrow): Lazily create destructors if necessary.
3107         (build_throw): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
3108         * init.c (build_delete): Lazily create destructors, if necessary.
3109         (build_vbase_delete): Remove.
3110         * method.c (locate_dtor): Simplify.
3111         (implicitly_declare_fn): Add support for destructors.
3112         * parser.c (cp_parser_lookup_name): Lazily create destructors, if
3113         necessary.
3114         * pt.c (check_explicit_specialization): Don't use
3115         TYPE_HAS_DESTRUCTOR.
3116         (instantiate_class_template): Likewise.
3117         * ptree.c (cxx_print_type): Don't print TYPE_HAS_DESTRUCTOR.
3118         * rtti.c (emit_support_tinfos): Robustify.
3119         * search.c (lookup_fnfields_1): Lazily create destructors.
3120         * typeck.c (build_class_member_access_expr): Remove
3121         PSEUDO_DTOR_EXPR handling.
3122         (lookup_destructor): Likewise.
3124 2005-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3126         * cxx-pretty-print.c, cxx-pretty-print.h, decl.h: Update
3127         copyright.
3129 2005-02-07  Mark Mitchell  <mark@codesourcery.com>
3131         * parser.c (cp_lexer_start_debugging): Avoid arithmetic operations
3132         on boolean variables.
3133         (cp_lexer_stop_debugging): Likewise.
3135 2005-02-03  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3137         PR c++/17401
3138         * parser.c (cp_parser_pure_specifier): Emit a specific error
3139         message with an invalid pure specifier.
3140         * decl2.c (grok_function_init): Remove.
3141         (grokfield): An initializer for a method is a always a pure
3142         specifier.
3144 2005-02-02  Matt Austern  <austern@apple.com>
3146         PR c++/19628
3147         * cp-tree.h (builtin_valid_in_constant_expr_p): Declare.
3148         * parser.c (cp_parser_postfix_expression): Accept function call in
3149         constant expression if builtin_valid_in_constant_expr_p is true
3150         for that function.
3151         * pt.c (value_dependent_expression_p): Handle CALL_EXPRs properly.
3152         * semantics.c (finish_id_expression): Accept function call in constant
3153         expression if builtin_valid_in_constant_expr_p is true for that
3154         function.
3155         * tree.c (builtin_valid_in_constant_expr_p): New.
3157 2005-02-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3159         PR c++/17413
3160         * pt.c (check_instantiated_args): Improve error message.
3161         Fix logic when to print its second part.
3163 2005-02-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3165         * cp-tree.h (complete_type_or_else): Remove macro.
3166         (complete_type_or_diagnostic): Rename to complete_type_or_else
3167         and remove last argument.
3168         * typeck.c (complete_type_or_diagnostic): Rename to
3169         complete_type_or_else and remove last argument.
3171 2005-02-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3173         * cp-tree.h (commonparms): Remove prototype.
3174         (convert_arguments): Likewise.
3175         (PFN_FROM_PTRMEMFUNC): Remove.
3176         * typeck.c (commonparms): Make static.
3177         (convert_arguments): Add prototype. Make static.
3178         (PFN_FROM_PTRMEMFUNC): Replace by pfn_from_ptrmemfunc.
3180 2005-01-31  Mark Mitchell  <mark@codesourcery.com>
3182         * parser.c (cp_parser_primary_expression): Don't complain about
3183         floating-point literals in integral constant expressions when
3184         !pedantic.
3186 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
3188         * parser.c (cp_parser_template_id): Revert comment patch too.
3190         PR c++/18757
3191         PR c++/19366
3192         PR c++/19499
3193         * parser.c (cp_parser_template_id): Revert 2004-12-09's patch.
3194         Issue an error when creating the template id.
3195         * pt.c (fn_type_unification): Return early if the explicit
3196         template arg list is an error_mark_node.
3198 2005-01-31  Mark Mitchell  <mark@codesourcery.com>
3200         * decl.c (build_enumerator): Do not issue duplicate error messages
3201         about invalid enumeration constants.
3202         * parser.c (cp_parser_non_integral_constant_expression): Always
3203         set parser->non_integral_constant_expression_p.
3204         (cp_parser_primary_expression): Add cast_p parameter.  Issue
3205         errors about invalid uses of floating-point literals in
3206         cast-expressions.
3207         (cp_parser_postfix_expression): Add cast_p parameter.
3208         (cp_parser_open_square_expression): Pass it.
3209         (cp_parser_parenthesized_expression_list): Add cast_p parameter.
3210         (cp_parser_unary_expression): Likewise.
3211         (cp_parser_new_placement): Pass it.
3212         (cp_parser_direct_new_declarator): Likewise.
3213         (cp_parser_new_initializer): Likewise.
3214         (cp_parser_cast_expression): Add cast_p parameter.
3215         (cp_parser_binary_expression): Likewise.
3216         (cp_parser_question_colon_clause): Likewise.
3217         (cp_parser_assignment_expression): Likewise.
3218         (cp_parser_expression): Likewise.
3219         (cp_parser_constant_expression): If an integral constant
3220         expression is invalid, return error_mark_node.
3221         (cp_parser_expression_statement): Pass cast_p.
3222         (cp_parser_condition): Likewise.
3223         (cp_parser_iteration_statement): Likewise.
3224         (cp_parser_jump_statement): Likewise.
3225         (cp_parser_mem_initializer): Likewise.
3226         (cp_parser_template_argument): Likewise.
3227         (cp_parser_parameter_declaration): Likewise.
3228         (cp_parser_initializer): Likewise.
3229         (cp_parser_throw_expression): Likewise.
3230         (cp_parser_attribute_list): Likewise.
3231         (cp_parser_simple_cast_expression): Likewise.
3232         (cp_parser_functional_cast): Likewise.
3233         (cp_parser_late_parsing_default_args): Likewise.
3234         (cp_parser_sizeof_operand): Save/restore
3235         non_integral_constant_expression_p.
3237 2005-01-31  Mike Stump  <mrs@apple.com>
3239         * parser.c (cp_lexer_new_main): Get the first token, first, before
3240         doing anything.
3242 2005-01-31  Mark Mitchell  <mark@codesourcery.com>
3244         * decl.c (start_decl): Add missing parentheses.
3246 2005-01-30  Mark Mitchell  <mark@codesourcery.com>
3248         PR c++/19555
3249         * cp-tree.h (DECL_USE_TEMPLATE): Expand documentation.
3250         * decl.c (duplicate_decls): Do not discard
3251         DECL_IMPLICIT_INSTANTIATION when merging declarations.
3252         (start_decl): Do not SET_DECL_TEMPLATE_SPECIALIZATION for
3253         variables that do not have DECL_USE_TEMPLATE.
3255         PR c++/19395
3256         * decl.c (grokdeclarator): Refactor code so that qualified names
3257         are never allowed as the declarator in a typedef.
3259         PR c++/19367
3260         * name-lookup.c (do_nonmember_using_decl): Avoid overloading
3261         builtin declarations.
3263         PR c++/19457
3264         * call.c (convert_like_real): Inline call to
3265         dubious_conversion_warnings here.
3266         * cp-tree.h (dubious_conversion_warnings): Remove.
3267         * semantics.c (finish_unary_op_expr): Copy INTEGER_CSTs before
3268         setting TREE_NEGATED_INT.
3269         * typeck.c (dubious_conversion_warnings): Remove.
3271         PR c++/19349
3272         * name-lookup.c (pushdecl_namespace_level): Avoid accessing free'd
3273         memory.
3275 2005-01-28  Mark Mitchell  <mark@codesourcery.com>
3277         PR c++/19253
3278         * parser.c (cp_parser_diagnose_invalid_type_name): Commit to
3279         tentative parses.
3281         PR c++/19667
3282         * pt.c (redeclare_class_template): Robustify.
3284 2005-01-27  Steven Bosscher  <stevenb@suse.de>
3286         * decl.c (finish_case_label): Use SWITCH_STMT accessor macros
3287         instead of SWITCH_EXPR ones.
3288         * pt.c (tsubst_expr): Likewise.
3289         * semantics.c (begin_switch_stmt, finish_switch_cond,
3290         finish_switch_stmt): Likewise.
3292 2005-01-26  J"orn Rennecke <joern.rennecke@st.com>
3294         PR c++/18370
3295         * parser.c (cp_parser_initializer_clause): Initialize *non_constant_p.
3297 2005-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
3299         * class.c (abort_fndecl_addr): New variable.
3300         (build_vtbl_initializer): If we have a pure virtual function
3301         share the abort function's address.
3302         Include gt-cp-class.h at the end.
3303         * config-lang.in (gtfiles): Add cp/class.c.
3305 2005-01-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3307         * cxx-pretty-print.c (pp_cxx_statement): Add prototype. Make static.
3308         (pp_cxx_function_definition): Make static.
3309         * cxx-pretty-print.h (pp_cxx_statement): Remove prototype.
3310         (pp_cxx_function_definition): Likewise.
3312 2005-01-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3314         * name-lookup.c (print_binding_level): Make static.
3315         (constructor_name_full): Make static inline.
3316         (current_decl_namespace): Make static.
3317         * name-lookup.h (constructor_name_full): Remove prototype.
3318         (print_binding_level): Likewise.
3319         (current_decl_namespace): Likewise.
3321 2005-01-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3323         * decl.h (debug_bindings_indentation): Remove.
3325 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
3327         * typeck.c: Fix a comment typo.
3329 2005-01-21  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3331         PR c++/19208
3332         * pt.c (fold_decl_constant_value): Always call fold_non_dependent_expr
3333         at least once.
3334         (tsubst): Use fold_decl_constant_value in place of a bare call to
3335         integral_constant_value.
3337 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
3339         * typeck.c (more_qualified_p): Remove.
3340         * cp-tree.h: Remove the corresponding prototype.
3342 2005-01-19  Matt Austern  <austern@apple.com>
3344         * typeck.c (comptypes): Handle return code from objc_comptypes
3345         correctly.
3347 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
3349         * cp-tree.h, name-lookup.h: Remove unused prototypes.
3351 2005-01-19  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3353         PR c++/19375
3354         * semantics.c (finish_id_expression): Disable access checking for
3355         already lookuped FIELD_DECL.
3357 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
3359         * decl.c (delete_block): Remove.
3360         * cp-tree.h: Remove the corresponding prototype.
3362         * decl.c (vtable_decl_p, vtype_decl_p, walk_globals_data,
3363         walk_vtables_r, walk_vtables, walk_globals_r, walk_globals):
3364         Remove.
3365         * cp-tree.h: Remove the corresponding prototypes.
3367         * tree.c (count_functions, bound_pmf_p, cp_is_overload_p,
3368         cp_update_decl_after_saving, name_p): Remove.
3369         * cp-tree.h: Remove the corresponding prototypes.
3371 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
3373         PR c/19472
3374         * semantics.c (finish_asm_stmt): Strip nops off
3375         input memory operands.
3377 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
3379         * Make-lang.in, call.c, cvt.c, init.c, rtti.c, tree.c,
3380         typeck2.c: Update copyright.
3382 2005-01-16  Kazu Hirata  <kazu@cs.umass.edu>
3384         * class.c (get_enclosing_class): Remove.
3385         * cp-tree.h: Remove the corresponding prototypes.
3387         * cvt.c (convert_lvalue): Remove.
3388         * cp-tree.h: Remove the corresponding prototype.
3390         * pt.c (tinst_for_decl): Remove.
3391         * cp-tree.h: Remove the corresponding prototypes.
3393         * tree.c (hash_chainon): Remove.
3394         * cp-tree.h: Remove the corresponding prototypes.
3396 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
3398         PR c++/19263
3399         * typeck2.c (split_nonconstant_init_1) <case VECTOR_TYPE>: Put a copy
3400         of CONSTRUCTOR's node into MODIFY_EXPR, as the original is modified.
3402 2005-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3404         * Make-lang.in (cp-warn): Don't append $(WERROR).
3406 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
3408         * cp-tree.h: Fix a comment typo.
3410 2005-01-07  Nathan Sidwell  <nathan@codesourcery.com>
3412         PR c++/19298
3413         * pt.c (tsubst_qualified_id): Call convert_from_reference.
3415 2005-01-06  Mark Mitchell  <mark@codesourcery.com>
3417         PR c++/19244
3418         * class.c (add_implicitly_declared_members): Remove dead code.
3419         * decl.c (grokfndecl): Add sfk parameter.  Use it do set
3420         DECL_CONSTRUCTOR_P.
3421         (grokdeclarator): Adjust calls to grokfndecl.
3422         * method.c (implicitly_declare_fn): Improve documentation.
3423         * parser.c (cp_parser_direct_declarator): Do not consider a
3424         function to be a constructor if the containing class was
3425         originally anonymous.
3427 2005-01-06  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3429         PR c++/17154
3430         * search.c (lookup_field_1): Handle using declaration in
3431         class template partial specialization.
3433 2005-01-06  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3435         PR c++/19258
3436         * pt.c (push_access_scope): Handle friend defined in class.
3437         (pop_access_scope): Likewise.
3439 2005-01-06  Nathan Sidwell  <nathan@codesourcery.com>
3441         PR c++/19270
3442         * pt.c (tsubst_copy) <ARRAY_REF case>: Handle separately.
3443         (tsubst_copy_and_build) <ARRAY_REF case>: Remove obsolete
3444         array-new handling code.  Use build_x_binary_op.
3446 2005-01-05  Nathan Sidwell  <nathan@codesourcery.com>
3448         PR c++/19030
3449         * cp-tree.h (start_decl): Take pointer to pushed scope, not bool.
3450         * name-lookup.h (push_scope): Return pushed scope, not flag.
3451         * name-lookup.c (push_scope): Return scope that should be popped,
3452         not a flag.
3453         * decl.c (start_decl): Adjust.
3454         (grokfndecl): Adjust scope push and pop.
3455         * decl2.c (check_classfn): Likewise.
3456         * parser.c (cp_parser_condition, cp_parser_conversion_function_id,
3457         cp_parser_init_declarator, cp_parser_direct_declarator,
3458         cp_parser_class_specifier, cp_parser_class_head,
3459         cp_parser_lookup_name,
3460         cp_parser_constructor_declarator_p): Likewise.
3461         * pt.c (instantiate_class_template,
3462         resolve_typename_type): Likewise.
3464 2005-01-03  Volker Reichelt  <reichelt@igpm.rwth-aaachen.de>
3466         PR c++/14136
3467         * parser.c (cp_parser_unqualified_id): Do not issue error message
3468         for typedef-name as destructor declarator when performing an
3469         uncommitted tentative parse.
3471 2005-01-01  Steven Bosscher  <stevenb@suse.de>
3473         PR middle-end/17544
3474         * decl.c (finish_function): Fix comment.  Annotate the compiler
3475         generated return with the current file name and line 0.