1 2009-09-21 Jason Merrill <jason@redhat.com>
4 * tree.c (trivial_type_p): Fix logic.
6 2009-09-21 Jason Merrill <jason@redhat.com>
8 * name-lookup.c (push_class_level_binding): Sanity check.
10 2009-09-18 Jason Merrill <jason@redhat.com>
12 * decl2.c (determine_visibility): Make anonymous types internal.
13 (mark_used): Complain about types without linkage used in
14 decls with internal linkage.
15 (vague_linkage_fn_p): Split out from...
16 * decl.c (maybe_commonize_var): ...here.
17 (grokdeclarator): Adjust linkage when a typedef gives linkage name.
18 * tree.c (no_linkage_check): Check the enclosing class and template
21 * cp-tree.h (TYPE_NAMESPACE_SCOPE_P): New.
23 * pt.c (get_pattern_parm): New.
24 (listify): Split out from...
25 (listify_autos): ...here.
26 (unify): Deduce std::initializer_list for T.
27 * call.c (build_over_call): Warn about it.
29 2009-09-17 Andrew Pinski <pinskia@gcc.gnu.org>
32 * g++.dg/expr/bool3.C: New test.
33 * g++.dg/expr/bool4.C: New test.
35 2009-09-14 Richard Henderson <rth@redhat.com>
36 Jakub Jelinek <jakub@redhat.com>
38 * cp-tree.h (finish_asm_stmt): Update decl.
39 * parser.c (cp_parser_asm_definition): Parse asm goto.
40 (cp_parser_asm_label_list): New.
41 * pt.c (tsubst_copy_asm_operands): Don't recurse on labels.
42 (tsubst_expr): Handle asm labels.
43 * semantics.c (finish_asm_stmt): Add and use labels parameter.
45 2009-09-14 Richard Henderson <rth@redhat.com>
47 * except.c (init_exception_processing): Don't call
48 default_init_unwind_resume_libfunc.
49 (cp_protect_cleanup_actions): Return the decl to call.
50 (build_exc_ptr): Use __builtin_eh_pointer.
51 * optimize.c (clone_body): Set eh_lp_nr, not eh_region.
53 2009-09-13 Richard Guenther <rguenther@suse.de>
54 Rafael Avila de Espindola <espindola@google.com>
56 * except.c (init_exception_processing): Do not set
58 (choose_personality_routine): Do not set eh_personality_decl,
59 set pragma_java_exceptions.
60 * cp-lang.c (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
61 (LANG_HOOKS_EH_PERSONALITY): Likewise.
62 (cp_eh_personality_decl): New.
63 (cp_eh_personality): Likewise.
64 * Make-lang.in (cp-lang.o): Add $(EXPR_H) and $(EXCEPT_H)
67 2009-09-13 Wei Guozhi <carrot@google.com>
70 * cp/optimize.c (build_delete_destructor_body): New function.
71 (maybe_clone_body): Call build_delete_destructor_body for
74 2009-09-10 Jason Merrill <jason@redhat.com>
76 * repo.c (extract_string, get_base_filename, init_repo): constify.
78 2009-09-09 Jason Merrill <jason@redhat.com>
80 * error.c (find_typenames_r): Also add decltypes.
82 2009-09-09 Paolo Carlini <paolo.carlini@oracle.com>
85 * decl2.c (grokfield): Check for explicit template argument lists.
87 2009-09-09 Jack Howarth <howarth@bromo.med.uc.edu>
90 * Make-lang.in: Remove redundant code from linkage for darwin10.
92 2009-09-08 Paolo Carlini <paolo.carlini@oracle.com>
95 * decl.c (build_init_list_var_init): Check return value of
96 perform_implicit_conversion.
98 2009-09-08 Jason Merrill <jason@redhat.com>
100 * class.c (currently_open_class): Make sure we're dealing with the
103 * cp-tree.h (enum overload_flags): Remove OP_FLAG.
104 * method.c (lazily_declare_fn): Check for dtorness in ABI warning.
106 * name-lookup.c (is_class_level): Remove.
107 (push_binding_level, leave_scope, resume_scope): Adjust.
108 (pushlevel_class): Adjust.
109 (poplevel_class): Make sure we're on class_binding_level.
111 * decl.c (grokmethod): Rename from start_method.
112 (finish_method): Remove.
114 * parser.c (cp_parser_save_member_function_body): Adjust.
116 2009-09-03 Doug Kwan <dougkwan@google.com>
118 * tree.c (cp_fix_function_decl_p): New.
119 (cp_free_lang_data): New.
121 2009-09-03 Diego Novillo <dnovillo@google.com>
123 * Make-lang.in (decl2.o): Add dependency on $(POINTER_SET_H).
124 * decl2.c: Include pointer-set.h.
125 (collect_candidates_for_java_method_aliases): New.
126 (cp_write_global_declarations): Call it.
127 Add local variable CANDIDATES. If set, call
128 build_java_method_aliases.
129 (build_java_method_aliases): Add argument CANDIDATES.
130 Use it to determine if FNDECL should get a hidden alias.
131 * cp-objcp-common.h (LANG_HOOKS_FREE_LANG_DATA): Define.
132 * cp-tree.h (cp_free_lang_data): Declare.
134 2009-09-03 Richard Guenther <rguenther@suse.de>
136 * method.c (use_thunk): Use cgraph_finalize_function to hand
137 off thunks to the cgraph.
138 * semantics.c (emit_associated_thunks): Do not emit thunks
139 for really extern functions.
141 2009-09-03 Diego Novillo <dnovillo@google.com>
143 * cp-lang.c (lang_hooks): Remove const qualifier.
145 2009-09-02 Jason Merrill <jason@redhat.com>
147 * semantics.c (describable_type): Don't pretend to be in a template.
149 * ptree.c (cxx_print_type) [DECLTYPE_TYPE]: Print the expression.
151 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
153 * cp-tree.h (TFF_NO_OMIT_DEFAULT_TEMPLATE_ARGUMENTS): New.
154 * cp-lang.c (cxx_dwarf_name): Pass it.
155 * error.c (count_non_default_template_args): Take flags as
156 argument. Adjust all callers. Skip counting of default
157 arguments if the new flag is given.
159 2009-09-01 Dodji Seketeli <dodji@redhat.com>
162 * pt.c (make_ith_pack_parameter_name): Don't use strnlen that is a
165 2009-09-01 Richard Guenther <rguenther@suse.de>
167 * cp-objcp-common.c (cp_expr_size): Use tree_expr_size.
168 * cp-objcp-common.h (LANG_HOOKS_EXPR_SIZE): Do not define.
170 2009-09-01 Richard Guenther <rguenther@suse.de>
172 * cp-objcp-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
174 2009-08-31 Dodji Seketeli <dodji@redhat.com>
177 * cp-tree.h (get_template_info): Parameter should be const.
178 (CLASSTYPE_SPECIALIZATION_OF_PRIMARY_TEMPLATE_P): Fix typo.
179 (get_template_argument_pack_elems,
180 get_primary_template_innermost_parameters,
181 get_template_innermost_arguments, template_template_parameter_p):
183 * pt.c (get_template_argument_pack_elems,
184 get_template_innermost_parameters, get_template_innermost_arguments,
185 template_template_parameter_p):
186 ... New C++ front end implementation of new language hooks.
187 (primary_template_instantiation_p): New private helper.
188 (make_ith_pack_parameter_name): Use snprintf and strnlen instead of
190 (get_template_info): Const-ify parameter.
191 * cp-lang.c (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
192 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
193 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
194 LANG_HOOKS_GENERIC_TYPE_PARAMETER_DECL_P): Initialize these
195 interfaces for the C++ front-end.
197 2009-08-31 Jason Merrill <jason@redhat.com>
200 * parser.c (cp_parser_enum_specifier): Make sure the : is followed by a
201 type-specifier-seq before we commit.
203 2009-08-28 Richard Guenther <rguenther@suse.de>
206 * cp-gimplify.c (cp_genericize_r): Do not leak zero-sized stores
209 2009-08-27 Richard Guenther <rguenther@suse.de>
211 * class.c (build_vtbl_ref_1): Remove excess vertical space.
212 * Make-lang.in (CXX_TREE_H): Remove c-common.def dependency
213 tracked by $(TREE_H).
214 * semantics.c (expand_or_defer_fn): Zero DECL_SAVED_TREE.
216 2009-08-26 Jason Merrill <jason@redhat.com>
218 * call.c (build_builtin_candidate): Don't set LOOKUP_ONLYCONVERTING
219 if we're contextually converting to bool.
220 (build_conditional_expr): Likewise.
221 * typeck.c (condition_conversion): Likewise.
223 * call.c (build_conditional_expr): Fix logic errors.
224 (build_new_op): Remove dead COND_EXPR handling.
226 2009-08-24 Jason Merrill <jason@redhat.com>
228 * cp-tree.h (DECL_DEFERRED_FN): Remove.
229 (struct lang_decl_fn): Remove deferred flag.
230 * class.c (build_clone): Don't set it.
231 * decl2.c (note_vague_linkage_fn): Don't check or set it.
232 (mark_used): Don't check it.
233 * method.c (make_thunk, make_alias_for): Don't set it.
235 * decl2.c (mark_used): Streamline logic.
240 * cp-tree.h (DECL_ODR_USED): New macro.
241 (struct lang_decl_base): Add odr_used flag.
242 * decl.c (duplicate_decls): Propagate it. Use it for error.
243 * pt.c (register_specialization): Use it for error.
244 * decl2.c (mark_used): Use it as gating flag rather than TREE_USED.
245 (cp_write_global_declarations): Use it for error.
246 (tree_used_ok): Remove.
247 * cp-tree.h: Remove tree_used_ok.
248 * call.c (build_call_a): Don't call it.
249 * init.c (build_offset_ref): Likewise.
251 2009-08-21 Jakub Jelinek <jakub@redhat.com>
254 * tree.c (lvalue_p_1) <case CONST_DECL>: Return clk_none if
257 2009-08-19 Jason Merrill <jason@redhat.com>
261 * decl2.c (mark_used): Increment function_depth during synthesis.
262 * parser.c (cp_parser_default_argument): Not here.
264 2009-08-19 Jakub Jelinek <jakub@redhat.com>
266 * method.c (use_thunk): Call free_after_compilation after
267 assemble_end_function.
269 2009-08-17 Richard Guenther <rguenther@suse.de>
271 * decl.c (build_ptrmemfunc_type): Keep variant chain intact.
273 (finish_enum): Keep variant chain intact.
274 * tree.c (cp_build_reference_type): Likewise.
276 2009-08-16 Jason Merrill <jason@redhat.com>
278 Make TREE_USED match the [basic.def.odr] concept for FUNCTION_DECL
279 and VAR_DECL, so mark_used only has effect the first time.
280 * decl2.c (mark_used): Just return if TREE_USED is already set.
281 Don't set TREE_USED if cp_unevaluated_operand is set.
282 (tree_used_ok): New fn.
283 * init.c (build_offset_ref): Check it instead of TREE_USED.
284 * call.c (build_call_a): Likewise.
285 * cp-tree.h: Declare it.
286 (DECL_NO_LINKAGE_CHECKED): No longer needed.
287 (struct lang_decl_base): Remove no_linkage_checked bitfield.
289 * decl2.c (finish_static_data_member_decl): Don't set TREE_USED.
291 * decl2.c (mark_used): It's ok to synthesize for default args now.
293 2009-08-10 Jason Merrill <jason@redhat.com>
295 Implement DR 757: It's OK for a decl to use a type without linkage
296 so long as the decl is defined in the current translation unit.
297 * decl2.c (no_linkage_decls): New vector.
298 (mark_used): Add decls that use types with no linkage.
299 (cp_write_global_declarations): Check that they are defined.
300 (decl_defined_p, no_linkage_error): New fns.
301 * cp-tree.h (DECL_NO_LINKAGE_CHECKED): New macro.
302 (struct lang_decl_base): Add flag.
303 * decl.c (grokfndecl): Don't check type linkage.
304 (grokvardecl): If the type has no linkage, just make sure
305 DECL_LANG_SPECIFIC is set.
306 * pt.c (check_instantiated_arg): Don't check type linkage.
307 * name-lookup.c (is_local_extern): New fn.
308 * name-lookup.h: Declare it.
310 2009-08-05 Jason Merrill <jason@redhat.com>
313 * init.c (build_vec_init): Evaluate the initializer before
314 starting the initialization try block.
316 2009-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
319 * typeck.c (convert_for_assignment): Do not warn for any boolean
320 variant. Use explicit location.
322 2009-08-04 Dodji Seketeli <dodji@redhat.com>
325 * pt.c (tsubst_default_argument): Let access checks of the
326 default argument happen in the context of the current function.
328 2009-08-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
331 * call.c (build_new_op): Only try prefix operator if -fpermissive,
332 otherwise just error.
334 2009-08-04 Dodji Seketeli <dodji@redhat.com>
337 * error.c (lang_decl_name): Print qualified names for decls
340 2009-08-03 Jason Merrill <jason@redhat.com>
341 Jakub Jelinek <jakub@redhat.com>
344 * init.c (build_vec_init): Look through a TARGET_EXPR around a
347 2009-07-31 Jason Merrill <jason@redhat.com>
348 Douglas Gregor <doug.gregor@gmail.com>
350 Remove implicit binding of lvalues to rvalue references (N2831)
351 * call.c (convert_class_to_reference): Binding an lvalue to an
352 rvalue reference is bad. If the user-defined conversion is bad,
353 set bad_p before merging conversions.
354 (maybe_handle_ref_bind): Don't push down bad_p.
355 (reference_binding): Binding an lvalue to an rvalue reference is bad.
356 (convert_like_real): Give a helpful error about binding lvalue
358 (reference_related_p): No longer static.
359 * typeck.c (build_typed_address): New.
360 (build_static_cast_1): Add static_cast from lvalue to &&.
363 2009-07-31 Jason Merrill <jason@redhat.com>
365 * call.c (reference_binding): Rename lvalue_p to is_lvalue.
366 Do direct binding of "rvalues" in memory to rvalue references.
367 * tree.c (lvalue_p_1): Can't be both non-addressable lvalue and
369 * typeck.c (build_static_cast_1): Do direct binding of memory
370 "rvalues" to rvalue references.
371 * cvt.c (cp_fold_convert): New.
372 * cp-tree.h: Declare it.
374 2009-07-31 Jason Merrill <jason@redhat.com>
376 * typeck.c (build_address): Do fold away ADDR_EXPR of INDIRECT_REF.
377 * tree.c (rvalue): Use cp_build_qualified_type, not TYPE_MAIN_VARIANT.
379 2009-07-29 Jason Merrill <jason@redhat.com>
382 * cp-tree.h (enum tsubst_flags): Add tf_no_class_instantiations.
383 * error.c (count_non_default_template_args): Pass it.
384 * pt.c (tsubst) [TYPENAME_TYPE]: Don't complete type if it's set.
386 2009-07-29 Richard Guenther <rguenther@suse.de>
389 * cp-gimplify.c (cp_genericize_r): Properly walk the BIND_EXPR
392 2009-07-26 Simon Martin <simartin@users.sourceforge.net>
395 * decl.c (grokdeclarator): Do not set TREE_NO_WARNING for functions
396 with a qualified return type.
398 2009-07-24 Jason Merrill <jason@redhat.com>
401 * call.c (build_op_delete_call): If this is for a new-expression
402 and the op delete is deleted, do nothing.
405 * call.c (compare_ics): Give list-initialization of std::init_list
406 priority over conversion to scalar, too.
408 2009-07-22 Jason Merrill <jason@redhat.com>
410 * mangle.c (mangle_type_string_for_rtti): Rename to be clearer.
411 (needs_fake_anon): New.
412 (write_name): Check it.
413 (write_nested_name): Add a fake anonymous namespace scope if true.
414 * name-lookup.c (get_anonymous_namespace_name): No longer static.
415 * rtti.c, cp-tree.h: Adjust.
417 2009-07-22 Richard Guenther <rguenther@suse.de>
420 * cp-gimplify.c (cp_gimplify_expr): Move handling of using
422 (cp_genericize_r): ... genericization stage.
423 (cp_genericize): Adjust.
425 2009-07-21 Jason Merrill <jason@redhat.com>
428 * call.c (reference_binding): Implement binding to { }.
429 (initialize_reference): Binding temporary to non-const && is fine.
430 * decl.c (grok_reference_init): Remove error for CONSTRUCTOR.
432 * decl.c (reshape_init_r): { T } is not an aggregate initializer
435 2009-07-17 Richard Guenther <rguenther@suse.de>
438 * decl.c (finish_function): Do not emit unused result warnings
440 * cp-objcp-common.h (LANG_HOOKS_POST_GIMPLIFY_PASS): Use
441 c_warn_unused_result_pass.
442 * semantics.c (expand_or_defer_fn): Adjust assertion about IL status.
443 * optimize.c (clone_body): Clone in GENERIC.
444 (maybe_clone_body): Do not clear DECL_SAVED_TREE.
445 * decl2.c (cp_write_global_declarations): Fix body test.
446 Do not call cgraph_optimize.
447 * Make-lang.in (optimize.o): Add tree-iterator.h dependency.
448 * method.c (use_thunk): Register thunk with
449 cgraph_finalize_function.
450 * error.c (function_category): Guard access of DECL_LANG_SPECIFIC.
452 2009-07-17 Richard Guenther <rguenther@suse.de>
454 * init.c (build_vec_delete_1): Do not set DECL_REGISTER on the
457 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
458 Manuel López-Ibáñez <manu@gcc.gnu.org>
461 * typeck.c, init.c, class.c, method.c, rtti.c, except.c, error.c,
462 tree.c, cp-gimplify.c, cxx-pretty-print.c, pt.c, semantics.c,
463 call.c, cvt.c, mangle.c: Add location argument to
464 fold_{unary,binary,ternary}, fold_build[123], build_call_expr,
465 build_size_arg, build_fold_addr_expr, build_call_array,
466 non_lvalue, size_diffop, fold_build1_initializer,
467 fold_build2_initializer, fold_build3_initializer,
468 fold_build_call_array, fold_build_call_array_initializer,
469 fold_single_bit_test, omit_one_operand, omit_two_operands,
470 invert_truthvalue, fold_truth_not_expr, build_fold_indirect_ref,
471 fold_indirect_ref, combine_comparisons, fold_builtin_*,
472 fold_call_expr, build_range_check, maybe_fold_offset_to_address,
473 round_up, round_down.
475 2009-07-16 Jason Merrill <jason@redhat.com>
478 Split POD into "standard-layout" and "trivial" as per N2230,
479 Support std::is_standard_layout and std::is_trivial traits.
480 * cp-tree.h (enum cp_trait_kind): Add CPTK_IS_STD_LAYOUT,
482 (struct lang_type_class): Add non_std_layout.
483 (CLASSTYPE_NON_STD_LAYOUT): New.
484 * class.c (check_bases): Set it.
485 (check_field_decls): Likewise.
486 (check_bases_and_members): Likewise.
487 * parser.c (cp_parser_primary_expression): Handle RID_IS_STD_LAYOUT,
489 (cp_parser_trait_expr): Likewise.
490 * semantics.c (trait_expr_value): Handle CPTK_IS_STD_LAYOUT,
492 (finish_trait_expr): Likewise.
493 * tree.c (scalarish_type_p, trivial_type_p, std_layout_type_p): New.
494 (pod_type_p): Use them.
495 (type_has_nontrivial_copy_init, type_has_nontrivial_default_init): New.
497 Adjust bits of the language that no longer refer to POD types.
498 * call.c (convert_arg_to_ellipsis): Use type_has_nontrivial_copy_init
499 and TYPE_HAS_NONTRIVIAL_DESTRUCTOR rather than pod_type_p.
500 (build_x_va_arg): Likewise.
501 (call_builtin_trap): Remove.
502 * decl.c (declare_local_label): Use type_has_nontrivial_default_init
503 and TYPE_HAS_NONTRIVIAL_DESTRUCTOR rather than pod_type_p.
504 (cp_finish_decl): Likewise.
505 (check_previous_goto_1, check_goto): Adjust error.
506 * typeck.c (build_class_member_access_expr): Check
507 CLASSTYPE_NON_STD_LAYOUT rather than CLASSTYPE_NON_POD_P.
509 2009-07-14 Taras Glek <tglek@mozilla.com>
510 Rafael Espindola <espindola@google.com>
512 * Make-lang.in: Added CP_PLUGIN_HEADERS and
513 c.install-target to export cp-tree.h cxx-pretty-print.h
514 name-lookup.h headers for plugins.
516 2009-07-14 Jason Merrill <jason@redhat.com>
519 * decl.c (decls_match): A non-extern-C declaration doesn't match
520 a builtin extern-C declaration.
523 * name-lookup.c (qualified_lookup_using_namespace): Don't stop
524 looking in used namespaces just because we found something on
528 * semantics.c (perform_koenig_lookup): Handle empty template args.
530 * call.c (build_over_call): Use can_trust_pointer_alignment.
532 2009-07-14 Dodji Seketeli <dodji@redhat.com>
536 * decl2.c (grokfield): Don't call set_underlying_type on typedef
537 decls that are type names.
539 2009-07-13 Andrew Pinski <andrew_pinski@playstation.sony.com>
542 * parser.c (cp_parser_elaborated_type_specifier): Accept typename in
543 front of qualified names.
545 2009-07-12 Jason Merrill <jason@redhat.com>
548 * tree.c (rvalue): Use lvalue_or_rvalue_with_address_p.
551 * cp-tree.h (enum cp_lvalue_kind_flags): Add clk_rvalueref.
552 * tree.c (lvalue_p_1): Return it. Remove
553 treat_class_rvalues_as_lvalues parm.
554 (real_lvalue_p): Disallow pseudo-lvalues here.
555 (lvalue_or_rvalue_with_address_p): New fn.
556 * call.c (initialize_reference): Use it instead of real_lvalue_p.
559 * init.c (build_new_1): Handle initializer list as array initializer.
560 (build_vec_init): Likewise.
561 * typeck.c (cp_build_modify_expr): Likewise.
562 * typeck2.c (process_init_constructor_array): Error rather than abort
563 if too many initializers.
565 2009-07-10 Jakub Jelinek <jakub@redhat.com>
568 * error.c (cp_print_error_function): Check for NULL block.
570 2008-07-09 Simon Martin <simartin@users.sourceforge.net>
571 Jason Merrill <jason@redhat.com>
573 * pt.c (perform_typedefs_access_check, get_types_needing_access_check,
574 append_type_to_template_for_access_check_1): Use CLASS_TYPE_P.
576 2009-07-09 Dodji Seketeli <dodji@redhat.com>
579 * pt.c (type_unification_real): Use tsubst_template_arg instead
580 of tsubst to substitute default template arguments.
582 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
585 * init.c (build_new_1): Set TREE_NO_WARNING for compiler-generated
587 * cp-gimplify.c (genericize_eh_spec_block): Likewise.
590 2009-07-07 Jason Merrill <jason@redhat.com>
593 * pt.c (tsubst_decl): Don't abort if we didn't change anything
594 in a TEMPLATE_DECL's args.
596 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
598 * semantics.c (finalize_nrv_r): Replace EXPR_LOCUS by
601 2009-07-07 Jason Merrill <jason@redhat.com>
604 * decl.c (build_enumerator): Don't add enumerators for a
605 scoped enum to the enclosing class.
608 * decl.c (start_enum): Allow dependent underlying type.
611 * decl.c (finish_enum): Finish scope even in a template.
613 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
615 * init.c: Replace %J by an explicit location. Update all calls.
617 * typeck2.c: Likewise.
619 * name-lookup.c: Likewise.
621 2009-07-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
623 * decl.c: Replace %H by an explicit location. Update all calls.
624 * except.c: Likewise.
625 * semantics.c: Likewise.
626 * parser.c: Likewise.
628 2009-07-06 Simon Martin <simartin@users.sourceforge.net>
631 * pt.c (perform_typedefs_access_check, get_types_needing_access_check,
632 append_type_to_template_for_access_check_1): Use
633 RECORD_OR_UNION_CODE_P.
635 2009-07-04 Jason Merrill <jason@redhat.com>
637 * pt.c (retrieve_specialization): Don't get confused by a
638 using-declaration that brings in another instance of this template
641 * ptree.c (cxx_print_type): Fix logic.
643 * cp-tree.h (LANG_DECL_FN_CHECK): Fix non-checking version.
646 * cp-tree.h (struct lang_decl_parm): New.
647 (struct lang_decl): Add it.
648 (LANG_DECL_PARM_CHECK): New.
649 (DECL_PARM_INDEX): New.
650 * decl2.c (parm_index): Remove.
651 * lex.c (retrofit_lang_decl): Handle parms.
652 (cxx_dup_lang_specific_decl): Likewise.
653 * mangle.c (write_expression): Adjust.
654 * tree.c (cp_tree_equal): Adjust.
655 (decl_linkage): Only check DECL_COMDAT for functions and variables.
656 * parser.c (cp_parser_parameter_declaration_list): Set
658 * pt.c (iterative_hash_template_arg): Hash it.
660 2009-07-03 Jason Merrill <jason@redhat.com>
662 * cp-tree.h (struct lang_decl): Overhaul.
663 (struct lang_decl_flags): Remove.
664 (struct lang_decl_base): New.
665 (struct lang_decl_min): New.
666 (struct lang_decl_fn): New.
667 (struct lang_decl_ns): New.
668 (CAN_HAVE_FULL_LANG_DECL_P): Replace with LANG_DECL_HAS_MIN.
669 (LANG_DECL_MIN_CHECK): New.
670 (LANG_DECL_FN_CHECK): New.
671 (LANG_DECL_NS_CHECK): New.
672 (STRIP_TEMPLATE): New.
673 (NON_THUNK_FUNCTION_CHECK): Remove.
674 (DECL_DECLARES_FUNCTION_P): New.
676 * lex.c (retrofit_lang_decl, cxx_dup_lang_specific_decl): Adjust.
677 * decl.c (push_local_name, duplicate_decls): Adjust.
678 * decl2.c (start_objects): Don't set u2sel.
679 * semantics.c (finish_omp_threadprivate): Adjust.
680 * class.c (build_clone): Don't do much on TEMPLATE_DECLs.
681 (decl_cloned_function_p): Out-of-line implementation of macros.
682 (clone_function_decl, adjust_clone_args): Use DECL_CLONED_FUNCTION_P.
683 * mangle.c (write_unqualified_name): Don't check function flags
685 * method.c (make_alias_for): Don't set DECL_CLONED_FUNCTION.
686 * pt.c (build_template_decl): Don't set function flags.
687 (check_default_tmpl_args): Check that it's a function.
688 (instantiate_template): Use DECL_ABSTRACT_ORIGIN to find the
691 * pt.c (tsubst_decl) [FUNCTION_DECL]: Don't tsubst
692 DECL_CLONED_FUNCTION.
694 * cp-tree.h (struct lang_type_class): Move sorted_fields here.
695 * class.c (finish_struct_1): Adjust.
696 * ptree.c (cxx_print_decl, cxx_print_type): Adjust.
697 * search.c (lookup_field_1): Adjust.
699 * cp-tree.h (CLASSTYPE_INLINE_FRIENDS): Remove.
700 * decl.c (finish_method): Don't add to it.
701 * class.c (fixup_pending_inline): Remove.
702 (fixup_inline_methods): Remove.
703 (finish_struct_1): Don't call it.
705 * error.c (dump_function_name): Handle null name.
707 2009-07-02 Mark Mitchell <mark@codesourcery.com>
709 * typeck.c (cp_build_binary_op): Move warnings about use of NULL
710 in arithmetic earlier and allow comparisions of NULL with
713 2009-07-02 Jason Merrill <jason@redhat.com>
715 Use hash tables for template specialization lookup.
716 * pt.c (struct spec_entry): New type.
717 (decl_specializations, type_specializations): New hash tables.
718 (register_specialization, retrieve_specialization): Use them.
719 (reregister_specialization, lookup_template_class): Use them.
720 (eq_specializations, hash_tmpl_and_args, hash_specialization): New.
721 (iterative_hash_template_arg): New.
722 (init_template_processing): New
723 (process_partial_specialization): Don't look to see if we already
724 have this partial specialization.
725 (maybe_process_partial_specialization): Handle reassigning
726 full specializations when we get an explicit specialization
727 of the partial instantiation.
728 (tsubst_friend_function): Adjust specialization reassignment code.
729 (instantiate_template): Only do one lookup.
730 (instantiate_decl): Don't do any lookup.
731 * cp-tree.h: Declare init_template_processing.
732 * decl.c (duplicate_decls): Pass args to reregister_specialization.
734 2009-07-01 Jason Merrill <jason@redhat.com>
736 * cp-tree.h (DECL_CLASS_TEMPLATE_P): Use DECL_IMPLICIT_TYPEDEF_P.
738 * pt.c (register_specialization): Use duplicate_decls to merge
739 the argument with a previous specialization.
740 (check_explicit_specialization): Call register_specialization to
741 merge the TEMPLATE_DECL with a previous version.
742 (determine_specialization): Return the args even if fn is a template.
744 2009-07-01 Ian Lance Taylor <iant@google.com>
746 * g++spec.c (lang_specific_driver): Bump num_args by 1.
748 2009-06-30 Jason Merrill <jason@redhat.com>
751 * pt.c (tsubst_pack_expansion): Handle unexpanded packs in an
754 2009-06-29 Jason Merrill <jason@redhat.com>
757 * error.c (dump_template_parms): Pass all args to
758 count_non_default_template_args.
759 (count_non_default_template_args): Pull out the inner ones.
761 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
763 * decl.c (duplicate_decls): Re-indent.
765 2009-06-25 Ian Lance Taylor <iant@google.com>
767 * call.c (avoid_sign_compare_warnings): New static function.
768 (build_new_op): Call it.
769 * typeck.c (cp_build_binary_op): Don't call warn_sign_compare if
770 TREE_NO_WARNING is set on either operand.
772 2009-06-25 Ian Lance Taylor <iant@google.com>
774 * g++spec.c (SKIPOPT): define.
775 (lang_specific_driver): Handle -static-libstdc++. Only add
776 LIBSTDCXX_STATIC if we add LIBSTDCXX.
778 2009-06-25 Ian Lance Taylor <iant@google.com>
780 * cvt.c (convert_to_void): Only warn about COND_EXPR if neither
781 the second nor third operand has side effects.
783 2009-06-25 Ian Lance Taylor <iant@google.com>
785 * parser.c (cp_parser_binary_expression): Increment
786 c_inhibit_evaluation_warnings while parsing the right hand side of
787 "true || x" or "false && x".
788 * typeck.c (cp_build_binary_op): Only call warn_for_sign_compare
789 if c_inhibit_evaluation_warnings is zero.
791 2009-06-24 Jason Merrill <jason@redhat.com>
793 * error.c (dump_decl): Do say "typedef" for the injected class name.
795 * pt.c (lookup_template_class): Use currently_open_class,
796 compare template args later.
799 * decl.c (decls_match): Check DECL_TI_TEMPLATE too.
800 * class.c (resolve_address_of_overloaded_function): Fix typo.
802 2009-06-18 Aldy Hernandez <aldyh@redhat.com>
804 * class.c (get_vtable_decl): Replace finish_decl with cp_finish_decl.
805 * decl.c (finish_decl): Remove.
806 (declare_global_var): Replace finish_decl with cp_finish_decl.
807 (start_method): Same.
808 * rtti.c (emit_tinfo_decl): Same.
809 * pt.c (tsubst_expr): Same.
810 (instantiate_decl): Same.
811 * decl2.c (grokbitfield): Same.
812 * name-lookup.c (pushdecl_top_level_1): Same.
813 * cp-tree.h: Remove finish_decl.
815 2009-06-16 David Edelsohn <edelsohn@gnu.org>
817 * g++-spec.c (LIBSTDCXX_STATIC): Default to NULL.
818 (lang_specific_driver): Always allocate extra argument.
819 Add LIBSTDCXX_STATIC to arglist if defined and linking
822 2009-06-16 Ian Lance Taylor <iant@google.com>
824 * Make-lang.in (cp/class.o): Depend upon gt-cp-class.h.
825 (cp/semantics.o): Depend upon gt-cp-semantics.h.
827 2009-06-16 Ian Lance Taylor <iant@google.com>
829 * parser.c (cp_unevaluated_operand): Define global variable.
830 (cp_parser_question_colon_clause): Increment
831 c_inhibit_evaluation_warnings when evaluating an expression which
832 will never be executed.
833 (cp_parser_decltype): Increment cp_unevaluated_operand and
834 c_inhibit_evaluation_warnings, not skip_evaluation.
835 (cp_parser_sizeof_operand): Likewise.
836 (cp_parser_enclosed_template_argument_list): Save
837 cp_unevaluated_operand and c_inhibit_evaluation_warnings, not
839 * cp-tree.h (struct saved_scope): Remove skip_evaluation field.
840 Add unevaluated_operand and inhibit_evaluation_warnings fields.
841 (cp_unevaluated_operand): Declare.
842 * name-lookup.c (push_to_top_level): Save cp_unevaluated_operand
843 and c_inhibit_evaluation_warnings rather than skip_evaluation.
844 (pop_from_top_level): Restore cp_unevaluated_operand and
845 c_inhibit_evaluation_warnings rather than skip_evaluation.
846 * class.c (build_base_path): Check cp_unevaluated_operand rather
847 than skip_evaluation.
848 * typeck.c (build_class_member_access_expr): Likewise.
849 (cp_build_binary_op): Don't warn about bad shift counts if
850 c_inhibit_evaluation_warnings is non-zero.
851 * pt.c (coerce_template_parms): Save state of
852 cp_unevaluated_operand and c_inhibit_evaluation_warnings, not
854 (tsubst_aggr_type): Likewise.
855 (tsubst_pack_expansion): Check cp_unevaluated_operand rather than
857 (tsubst_copy): Likewise.
858 (tsubst): Set cp_unevaluated_operand and
859 c_inhibit_evaluation_warnings, not skip_evaluation.
860 (tsubst_copy_and_build): Likewise.
861 * call.c (convert_arg_to_ellipsis): Check cp_unevaluated_operand
862 rather than skip_evaluation.
863 * decl2.c (mark_used): Likewise.
864 * semantics.c (finish_non_static_data_member): Likewise.
865 * cvt.c (cp_convert_and_check): Check
866 c_inhibit_evaluation_warnings rather than skip_evaluation.
867 * mangle.c (write_type): Set cp_unevaluated_operand rather than
870 2009-06-15 Ian Lance Taylor <iant@google.com>
872 * parser.c (cp_parser_direct_declarator): Add braces around
873 variables declared before label.
875 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
877 * cp-objcp-common.h (LANG_HOOKS_COMDAT_GROUP): Remove.
878 * cp-tree.h (cxx_comdat_group): Change signature.
879 * decl.c (duplicate_decls): Use DECL_COMDAT_GROUP.
880 (cxx_comdat_group): Change signature.
881 * decl2.c (comdat_linkage, maybe_make_one_only): Update call to
883 (constrain_visibility, get_guard): Use DECL_COMDAT_GROUP.
884 * method.c (use_thunk): Update call to make_decl_one_only.
885 * optimize.c (maybe_clone_body): Use DECL_COMDAT_GROUP
887 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
889 * typeck.c (cp_build_binary_op): Pass location to overflow_warning.
890 (build_modify_expr): New arg.
891 * semantics.c (finish_unary_op_expr): Pass location to
893 (handle_omp_for_class_iterator): Pass location to build_modify_expr.
894 * typeck.c (cxx_sizeof_or_alignof_type): Pass location to
895 c_sizeof_or_alignof_type.
896 (build_array_ref): New argument.
897 (build_compound_expr): Same.
898 (build_const_cast): Same.
899 (build_ptrmemfunc): Pass location to build_c_cast.
900 * init.c (avoid_placement_new_aliasing): Pass location to
902 (build_vec_delete_1): Pass location to cp_build_modify_expr,
904 * class.c (build_vtbl_ref_1): Pass location to build_array_ref.
905 * decl.c (poplevel): Pass location to c_build_bind_expr.
906 (finish_case_label): Pass location to build_case_label.
907 (finish_constructor_body): Same.
908 (finish_destructor_body): Pass location to build_stmt.
909 (cxx_maybe_build_cleanup): Same, but to build_compound_expr.
910 * call.c (build_new_op): Pass location to build_array_ref.
911 (build_x_va_arg): Pass location to build_va_arg.
912 * except.c (expand_end_catch_block): Pass location to
914 * cp-tree.h (build_array_ref): New argument.
915 (build_compound_expr): Same.
916 (build_c_cast): Same.
917 * cp-gimplify.c (gimplify_if_stmt): Pass location on down.
918 (gimplify_switch_stmt): Same.
919 * typeck2.c (split_nonconstant_init_1): Same.
920 * pt.c (tsubst_copy): Same.
921 * semantics.c (add_decl_expr): Same.
923 (push_cleanup): Same.
924 (finish_goto_stmt): Same.
925 (finish_expr_stmt): Same.
926 (begin_if_stmt): Same.
927 (begin_while_stmt): Same.
928 (begin_do_stmt): Same.
929 (finish_return_stmt): Same.
930 (begin_for_stmt): Same.
931 (finish_break_stmt): Same.
932 (finish_continue_stmt): Same.
933 (begin_switch_stmt): Same.
934 (begin_try_block): Same.
935 (begin_handler): Same.
936 (finish_asm_stmt): Same.
937 (finish_label_stmt): Same.
938 (finish_stmt_expr_expr): Same.
939 (finalize_nrv_r): Same.
940 (finish_omp_atomic): Same.
941 * name-lookup.c (do_using_directive): Same.
942 * decl2.c (grok_array_decl): Same.
943 * parser.c (cp_parser_cast_expression): Same.
944 (cp_parser_selection_statement): Same.
945 (cp_parser_implicitly_scoped_statement): Same.
946 (cp_parser_objc_selector_expression): Same.
947 (cp_parser_objc_synchronized_statement): Same.
948 (cp_parser_objc_throw_statement): Same.
949 (cp_parser_omp_critical): Same.
950 (cp_parser_omp_master): Same.
951 * typeck.c (build_function_call): Add location argument.
952 * init.c: Add location argument to all build_decl calls.
961 * cp-gimplify.c: Same.
963 (cp_make_fname_decl): Add location argument. Pass location ot
965 (finish_case_label): Same.
966 * cp-tree.h (finish_case_label): Add location argument.
967 * parser.c (cp_parser_label_for_labeled_statement): Pass location to
970 2009-06-09 Jason Merrill <jason@redhat.com>
973 * decl2.c (mark_used): Return after complaining about deleted fn.
975 2009-06-08 Jason Merrill <jason@redhat.com>
977 * parser.c (cp_parser_type_id_1): 'auto' type is ok with a
978 late-specified return type.
980 2009-06-08 Jakub Jelinek <jakub@redhat.com>
983 * call.c (check_dtor_name): Return false even if
984 get_type_value (name) is error_mark_node.
988 * parser.c (cp_parser_direct_declarator): Don't set TREE_SIDE_EFFECTS
989 on error_mark_node. Check for VLAs outside of function context
990 before check whether to wrap bounds into a NOP_EXPR with
993 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
995 * repo.c (get_base_filename): Use aux_base_name rather than
996 alternate temporary file during second compare debug compilation.
997 (finish_repo): Skip during -fcompare-debug-second.
999 2009-06-06 Ian Lance Taylor <iant@google.com>
1001 * parser.c (cp_parser_label_for_labeled_statement): Support
1002 attribute on labels if immediately followed by semicolon.
1003 * semantics.c (finish_label_stmt): Return new label.
1004 * pt.c (tsubst_expr): Handle attributes for LABEL_EXPR.
1006 2009-06-03 Ian Lance Taylor <iant@google.com>
1008 * Make-lang.in (cc1plus-checksum.o): Depend upon $(CONFIG_H) and
1011 2009-06-02 Mark Mitchell <mark@codesourcery.com>
1013 * decl.c (maybe_deduce_size_from_array_init): Use relayout_decl.
1015 2009-06-02 Jason Merrill <jason@redhat.com>
1019 * typeck.c (cp_build_modify_expr): Always pass init-lists to the
1021 * call.c (implicit_conversion): Allow init-list conversion to scalar
1022 during direct-initialization, too. Mark the conversion bad if it
1023 has too many levels of braces.
1024 (convert_like_real): And give a helpful error.
1028 * decl.c (cp_finish_decl): Handle auto deduction from ().
1029 * typeck.c (build_x_indirect_ref): Handle dereferencing an operand
1030 with dependent type that is known to be a pointer.
1032 2009-06-02 Simon Martin <simartin@users.sourceforge.net>
1035 * pt.c (register_specialization): Properly setup DECL_CONTEXT for
1036 specializations in an invalid namespace.
1038 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
1040 * error.c (print_instantiation_partial_context): Print column
1043 2009-05-29 Ian Lance Taylor <iant@google.com>
1045 * error.c (cp_printer): Don't use va_arg with enum type.
1047 2009-05-28 Dodji Seketeli <dodji@redhat.com>
1050 * cp-tree.h (canonical_type_variant): Remove this function declaration.
1051 (strip_typedefs): New function declaration.
1052 * tree.c (strip_typedefs): New function definition.
1053 (canonical_type_variant): Remove function definition.
1054 * cvt.c (convert_from_reference): No need to use
1055 canonical_type_variant.
1056 * typeck.c (cp_build_indirect_ref): Likewise.
1057 * error.c (dump_template_bindings): Use strip_typedefs instead of
1058 canonical_type_variant.
1059 * pt.c (convert_template_argument, unify): Likewise.
1060 * mangle.c (canonicalize_for_substitution): Don't use
1061 canonical_type_variant.
1063 2009-05-27 Jason Merrill <jason@redhat.com>
1065 * call.c (implicit_conversion): Handle conversion from
1066 initializer-list to scalar.
1067 (convert_like_real): Likewise. Avoid crashing on list
1068 initialization with bad conversions.
1069 (can_convert): Use LOOKUP_EXPLICIT.
1070 (can_convert_arg_bad): Add flags parm.
1071 * cp-tree.h: Adjust.
1072 * typeck.c (convert_for_assignment): Pass flags.
1074 2009-05-27 Ian Lance Taylor <iant@google.com>
1076 * Make-lang.in (g++$(exeext)): Change $(COMPILER) to $(LINKER).
1077 (cc1plus-dummy$(exeext), cc1plus$(exeext)): Likewise.
1079 2009-05-26 Ian Lance Taylor <iant@google.com>
1081 * Make-lang.in (g++spec.o): Use $(COMPILER).
1082 (g++$(exeext), cc1plus-dummy$(exeext)): Likewise.
1083 (cc1plus$(exeext)): Likewise.
1085 2009-05-26 Dodji Seketeli <dodji@redhat.com>
1088 * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): Remove this accessor.
1089 (TI_TYPEDEFS_NEEDING_ACCESS_CHECKING): New accessor.
1090 (get_types_needing_access_check): Declare new entry point.
1091 * pt.c (append_type_to_template_for_access_check_1,
1092 get_types_needing_access_check): New functions.
1093 (perform_typedefs_access_check): Accept FUNCTION_DECLs and
1094 RECORD_TYPEs rather than TEMPLATE_DECLs. Use the new
1095 get_types_needing_access_check, no more
1096 MEMBER_TYPES_NEEDING_ACCESS_CHECK.
1097 (instantiate_class_template): Set input_location to the source
1098 location of the most specialized template definition.
1099 Perform access check using the RECORD_TYPE of the template, not its
1100 associated most generic TEMPLATE_DECL.
1101 (append_type_to_template_for_access_check): Augment function
1102 comments. Use the new get_types_needing_access_check, not
1103 MEMBER_TYPE_NEEDING_ACCESS_CHECK. Use the new
1104 append_type_to_template_for_access_check_1 subroutine.
1106 2009-05-22 Jason Merrill <jason@redhat.com>
1109 * typeck.c (cp_build_binary_op): Allow ENUMERAL_TYPE in
1110 arithmetic comparisons.
1111 (cp_common_type): Handle scoped enums.
1113 * call.c (promoted_arithmetic_type_p): Don't use INTEGRAL_TYPE_P.
1114 (add_builtin_candidate, add_builtin_candidates): Likewise.
1115 (convert_like_real): Likewise.
1116 * class.c (check_bitfield_decl): Likewise.
1117 * decl.c (check_static_variable_definition): Likewise.
1118 (compute_array_index_type): Likewise.
1119 * decl2.c (grokbitfield): Likewise.
1120 * init.c (build_new_1): Likewise.
1121 * pt.c (convert_nontype_argument): Likewise.
1122 (current_instantiation): Likewise.
1123 * tree.c (pod_type_p): Likewise.
1124 * typeck.c (build_static_cast_1): Likewise.
1125 (build_reinterpret_cast_1): Likewise.
1127 2009-05-22 Richard Guenther <rguenther@suse.de>
1130 * init.c (avoid_placement_new_aliasing): Remove.
1131 (build_new_1): Do not call it.
1133 2009-05-22 Mark Mitchell <mark@codesourcery.com>
1135 * decl2.c (decl_needed_p): Consider dllexport'd functions needed.
1136 * semantics.c (expand_or_defer_fn): Similarly.
1138 2009-05-20 Ian Lance Taylor <iant@google.com>
1140 * parser.c (cp_parser_postfix_expression): Change args to a vec.
1141 Release it when done.
1142 (tree_vector): Define typedef. Define VEC functions.
1143 (cp_parser_parenthesized_expression_list): Change return type to
1144 vec. Change all callers.
1145 (cp_parser_new_expression): Change placement and initializer to
1146 vecs. Release them when done.
1147 (cp_parser_new_placement): Change return type to vec. Change all
1149 (cp_parser_new_initializer): Likewise.
1150 * typeck.c (build_function_call_vec): Just call
1151 cp_build_function_call_vec.
1152 (cp_build_function_call): Just build a vec and call
1153 cp_build_function_call_vec.
1154 (cp_build_function_call_vec): New function based on old
1155 cp_build_function_call.
1156 (convert_arguments): Remove nargs and argarray parameters. Change
1157 values to a vec. Change caller.
1158 (build_x_compound_expr_from_vec): New function.
1159 (cp_build_modify_expr): Build vec to pass to
1160 build_special_member_call.
1161 * call.c (struct z_candidate): Add first_arg field. Change args
1163 (convert_class_to_reference): Handle first argument separately.
1164 (add_candidate): Add first_arg parameter. Change args parameter
1165 to vec. Change all callers.
1166 (add_function_candidate, add_conv_candidate): Likewise.
1167 (add_template_candidate_real, add_template_candidate): Likewise.
1168 (add_template_conv_candidate): Likewise.
1169 (build_user_type_conversion_1): Handle first argument separately.
1170 (resolve_args): Change return type and parameter type to vecs.
1172 (perform_overload_resolution): Change args parameter to vec.
1174 (build_new_function_call, build_operator_new_call): Likewise.
1175 (add_candidates): Likewise.
1176 (build_op_call): New globally visible function, built from and
1177 replacing static function build_object_call.
1178 (build_new_op): Don't handle CALL_EXPR. Build vec, not tree_list,
1180 (build_op_delete_call): Build vec to pass to
1181 cp_build_function_call_vec.
1182 (build_temp): Build vec to pass to build_special_member_call.
1183 (convert_like_real): Likewise.
1184 (perform_direct_initialization_if_possible): Likewise.
1185 (build_over_call): Handle first_arg field. Use build_call_array
1186 rather than build_call_list.
1187 (build_special_member_call): Change args parameter to vec. Change
1189 (build_new_method_call): Likewise.
1190 * init.c (expand_default_init): Change parms to vec.
1191 (build_raw_new_expr): Change placement and init to vecs. Change
1193 (build_new_1, build_new): Likewise.
1194 * class.c (resolve_address_of_overloaded_function): Build array to
1195 pass to fn_type_unification.
1196 * pt.c (tsubst_copy_and_build): For NEW_EXPR build vecs to pass to
1197 build_new. For CALL_EXPR create a vec rather than a tree_list;
1198 expand a pack if necessary.
1199 (fn_type_unification): Change args parameter to const tree *. Add
1200 nargs parameter. Change all callers.
1201 (type_unification_real): Likewise.
1202 (unify): Build array to pass to type_unification_real.
1203 (get_bindings): Build array to pass to fn_type_unification.
1204 (any_type_dependent_arguments_p): Change args parameter to a vec.
1206 (make_args_non_dependent): Renamed from build_non_dependent_args.
1207 Change return type to void. Change parameter type to vec. Change
1209 (do_auto_deduction): Pass an array to type_unification_real.
1210 * semantics.c (perform_koenig_lookup): Change args to vec. Change
1212 (finish_call_expr): Change args to vec. Change all callers. Call
1213 build_op_call instead of passing CALL_EXPR to build_new_op.
1214 (cxx_omp_create_clause_info): Allocate vec to pass to
1215 build_special_member_call.
1216 * decl2.c (build_offset_ref_call_from_tree): Change args parameter
1217 to vec. Change all callers.
1218 * name-lookup.c (lookup_function_nonclass): Likewise.
1219 (struct arg_lookup): Change args to vec.
1220 (arg_assoc_namespace): Handle args as a vec.
1221 (arg_assoc_args_vec): New static function.
1222 (lookup_arg_dependent): Change args parameter to vec. Change all
1224 * method.c (do_build_assign_ref): Allocate vec to pass to
1225 build_special_member_call.
1226 * except.c (build_throw): Likewise.
1227 * typeck2.c (build_functional_cast): Likewise.
1228 * cvt.c (ocp_convert): Likewise.
1229 * tree.c (build_min_non_dep_call_vec): Change last parameter to
1230 vec. Change all callers.
1231 * cp-tree.h: Update declarations.
1232 * name-lookup.h: Update declarations.
1234 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
1236 * typeck.c (default_conversion): Check targetm.promoted_type.
1237 * decl.c (grokdeclarator): Check targetm.invalid_return_type.
1238 (grokparms): Check targetm.invalid_parameter_type.
1239 * cvt.c (ocp_convert): Check targetm.convert_to_type.
1240 (build_expr_type_conversion): Check targetm.promoted_type.
1242 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
1244 * typeck.c (build_binary_op): Allow % on integal vectors.
1246 2009-05-18 Jason Merrill <jason@redhat.com>
1248 Implement explicit conversions ops as specified in N2437.
1249 * decl.c (grokdeclarator): Handle explicit conversion ops.
1250 (check_initializer): Pass flags to store_init_value.
1251 * decl2.c (maybe_emit_vtables): Likewise.
1252 * init.c (expand_aggr_init_1): Likewise.
1253 * call.c (convert_class_to_reference): Take flags parm,
1254 check DECL_NONCONVERTING_P.
1255 (build_user_type_conversion_1): Check DECL_NONCONVERTING_P.
1256 (add_builtin_candidates): Simplify getting type of conversion.
1257 (build_object_call): Likewise. Check DECL_NONCONVERTING_P.
1258 (implicit_conversion): Pass through LOOKUP_ONLYCONVERTING.
1259 (reference_binding): Take flags parm. Direct-initialize copy parm.
1260 (add_function_candidate): Direct-initialize the copy parm.
1261 (add_conv_candidate): Use LOOKUP_IMPLICIT, not LOOKUP_NORMAL.
1262 (build_builtin_candidate): Add LOOKUP_ONLYCONVERTING.
1263 (conditional_conversion): Likewise.
1264 (convert_like_real): Only complain about DECL_NONCONVERTING_P
1266 (perform_implicit_conversion_flags): Add flags parm to
1267 perform_implicit_conversion. Improve diagnostics.
1268 * cp-tree.h (LOOKUP_IMPLICIT): New macro.
1269 (LOOKUP_COPY_PARM): New bit macro.
1270 * cvt.c (build_expr_type_conversion): Check DECL_NONCONVERTING_P.
1271 * typeck.c (convert_for_assignment): Take flags parm, pass it to
1272 perform_implicit_conversion_flags.
1273 (cp_build_modify_expr): Pass flags to convert_for_assignment.
1274 (convert_for_initialization): Likewise.
1275 * typeck2.c (store_init_value): Take flags parm, pass to
1277 (digest_init_flags): Add flags parm to digest_init.
1278 (digest_init_r): Take flags parm, pass to convert_for_initialization.
1279 (process_init_constructor_array): Pass it.
1280 (process_init_constructor_record): Likewise.
1281 (process_init_constructor_union): Likewise.
1283 2009-05-16 Jason Merrill <jason@redhat.com>
1286 * pt.c (tsubst_qualified_id): Retain the type if we aren't dealing
1287 with a dependent type. Actually look up the destructor.
1288 * semantics.c (finish_id_expression): Fix logic.
1289 (finish_qualified_id_expr): Don't try to use 'this' if we aren't in
1291 * typeck.c (build_x_unary_op): Diagnose taking the address of a
1292 constructor or destructor.
1293 * tree.c (get_first_fn): Handle OFFSET_REF.
1295 2009-05-17 Joseph Myers <joseph@codesourcery.com>
1297 * tree.c (cxx_printable_name_internal): Allow consecutive
1298 translated and untranslated cached copies of the name of the
1301 2009-05-15 Ian Lance Taylor <iant@google.com>
1303 * cp-tree.h (enum cp_lvalue_kind_flags): Rename from
1304 cp_lvalue_kind. Change all uses.
1305 (enum base_access_flags): Rename from enum base_access. Change
1307 * parser.c (enum cp_parser_flags): Remove enum tag.
1309 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1312 * call.c (build_new_op): Update calls to warn_logical_operator.
1314 2009-05-14 Ian Lance Taylor <iant@google.com>
1316 * class.c (layout_class_type): Change itk to unsigned int.
1317 * decl.c (finish_enum): Change itk to unsigned int.
1318 * parser.c (cp_parser_check_decl_spec): Change ds to int. Remove
1321 2009-05-13 David Mandelin <dmandelin@mozilla.com>:
1323 * decl.c (duplicate_decls): Preserve parameter attributes.
1325 2009-05-10 Jan Hubicka <jh@suse.cz>
1327 * decl2.c (cxx_callgraph_analyze_expr): Use
1328 cgraph_mark_address_taken.
1330 2009-05-10 Joseph Myers <joseph@codesourcery.com>
1332 * call.c (name_as_c_string): Call type_as_string_translate.
1333 Translate identifiers to locale character set.
1334 * cp-tree.h (lang_decl_name): Update prototype.
1335 (type_as_string_translate, decl_as_string_translate,
1336 cxx_printable_name_translate): Declare.
1337 * cxx-pretty-print.c (M_): Define.
1338 (pp_cxx_unqualified_id, pp_cxx_canonical_template_parameter): Mark
1339 English fragments for conditional translation with M_.
1340 * decl.c (grokdeclarator): Translate identifiers to locale
1341 character set for diagnostics.
1342 * error.c (M_): Define.
1343 (dump_template_bindings, dump_type, dump_aggr_type,
1344 dump_type_prefix, dump_global_iord, dump_simple_decl, dump_decl,
1345 dump_function_decl, dump_template_parms, dump_expr,
1346 dump_binary_op, op_to_string, assop_to_string): Mark English
1347 fragments for conditional translation with M_.
1348 (type_as_string): Disable translation of identifiers.
1349 (type_as_string_translate): New.
1350 (expr_as_string): Disable translation of identifiers.
1351 (decl_as_string): Disable translation of identifiers.
1352 (decl_as_string_translate): New.
1353 (lang_decl_name): Add parameter translate.
1354 (args_to_string): Call type_as_string_translate.
1355 (cp_print_error_function): Call cxx_printable_name_translate.
1356 (print_instantiation_full_context,
1357 print_instantiation_partial_context): Call
1358 decl_as_string_translate.
1359 * parser.c (cp_lexer_get_preprocessor_token): Use %qE for
1360 identifier in diagnostic.
1361 * tree.c (cxx_printable_name): Change to
1362 cxx_printable_name_internal. Add parameter translate.
1363 (cxx_printable_name, cxx_printable_name_translate): New wrappers
1364 round cxx_printable_name_internal.
1366 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
1369 * call.c (build_call_a): Updated warn_deprecated_use call.
1370 (build_over_call): Likewise.
1371 * decl.c (grokdeclarator): Likewise.
1372 (grokparms): Likewise.
1373 * semantics.c (finish_id_expression): Likewise.
1374 * typeck.c (build_class_member_access_expr): Likewise.
1375 (finish_class_member_access_expr): Likewise.
1377 2009-05-06 Dodji Seketeli <dodji@redhat.com>
1380 * pt.c (tsubst_copy) <case PARM_DECL>: We don't want to tsubst the
1381 whole list of PARM_DECLs, just the current one.
1383 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
1386 (opname_tab, assignop_tab, update_member_visibility, yyerror, yyhook,
1387 mangle_compound_literal): Remove unused declarations.
1388 (build_vfield_ref, cxx_print_statistics, clone_function_decl,
1389 adjust_clone_args, maybe_push_cleanup_level, pushtag, make_anon_name,
1390 pushdecl_top_level_maybe_friend, pushdecl_top_level_and_finish,
1391 check_for_out_of_scope_variable, print_other_binding_stack,
1392 maybe_push_decl, cxx_mark_addressable, force_target_expr,
1393 build_target_expr_with_type, finish_case_label,
1394 cxx_maybe_build_cleanup, begin_eh_spec_block, finish_eh_spec_block,
1395 check_template_keyword, cxx_omp_predetermined_sharing,
1396 cxx_omp_clause_default_ctor, cxx_omp_clause_copy_ctor,
1397 cxx_omp_clause_assign_op, cxx_omp_clause_dtor, cxx_omp_finish_clause,
1398 cxx_omp_privatize_by_reference): Rearrange the declarations line to
1399 match the comment that indicates the .c file which the functions are
1401 (cxx_print_xnode, cxx_print_decl, cxx_print_type,
1402 cxx_print_identifier, cxx_print_error_function, pushdecl): Add comment.
1404 2009-05-05 Nathan Sidwell <nathan@codesourcery.com>
1406 * typeck.c (cp_build_compound_expr): Require RHS to have a known
1408 * class.c (resolve_address_of_overloaded_function): Use
1409 OVL_CURRENT for error message.
1410 (instantiate_type): Forbid COMPOUND_EXPRs and remove code dealing
1411 with them. Do not copy the node.
1413 2009-05-05 Jakub Jelinek <jakub@redhat.com>
1416 * pt.c (tsubst): If magic NOP_EXPR with side-effects has no type,
1417 set it from its operand's type after tsubst_expr.
1419 2009-05-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1422 * parser.c (cp_lexer_get_preprocessor_token): Do not store the
1423 canonical spelling for keywords.
1424 (cp_parser_attribute_list): Use the canonical spelling for
1425 keywords in attributes.
1427 2009-05-01 Joseph Myers <joseph@codesourcery.com>
1429 * cxx-pretty-print.c (is_destructor_name, pp_cxx_unqualified_id,
1430 pp_cxx_template_keyword_if_needed, pp_cxx_postfix_expression,
1431 pp_cxx_new_expression, pp_cxx_delete_expression,
1432 pp_cxx_unary_expression, pp_cxx_assignment_operator,
1433 pp_cxx_assignment_expression, pp_cxx_expression,
1434 pp_cxx_function_specifier, pp_cxx_decl_specifier_seq,
1435 pp_cxx_simple_type_specifier, pp_cxx_type_specifier_seq,
1436 pp_cxx_exception_specification, pp_cxx_direct_declarator,
1437 pp_cxx_ctor_initializer, pp_cxx_type_id, pp_cxx_statement,
1438 pp_cxx_namespace_alias_definition, pp_cxx_template_parameter,
1439 pp_cxx_canonical_template_parameter, pp_cxx_template_declaration,
1440 pp_cxx_declaration, pp_cxx_typeid_expression,
1441 pp_cxx_va_arg_expression, pp_cxx_offsetof_expression,
1442 pp_cxx_trait_expression): Mostly use pp_string and
1443 pp_cxx_ws_string in place of pp_identifier and pp_cxx_identifier
1444 for non-identifiers. Mark English strings for translation.
1445 * cxx-pretty-print.h (pp_cxx_ws_string): Define.
1446 * error.c (dump_template_parameter, dump_template_bindings,
1447 dump_type, dump_aggr_type, dump_type_prefix, dump_simple_decl,
1448 dump_decl, dump_template_decl, dump_function_decl,
1449 dump_parameters, dump_exception_spec, dump_template_parms,
1450 dump_expr, dump_binary_op, dump_unary_op, op_to_string,
1451 assop_to_string, args_to_string, cp_print_error_function,
1452 print_instantiation_full_context,
1453 print_instantiation_partial_context): Mostly use pp_string and
1454 pp_cxx_ws_string in place of pp_identifier and pp_cxx_identifier
1455 for non-identifiers. Mark English strings for translation.
1456 (dump_global_iord): Mark strings for translation; use longer
1457 strings instead of substituting single words.
1458 (function_category): Return a format string marked for
1459 translation, not a single word or phrase to substitute in a longer
1462 2009-04-28 Ben Elliston <bje@au.ibm.com>
1467 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1469 * typeck.c (cp_pointer_sum): Adjust call to pointer_int_sum.
1471 2009-04-27 Ian Lance Taylor <iant@google.com>
1473 * semantics.c (finish_omp_clauses): Change type of c_kind to enum
1476 2009-04-27 Jakub Jelinek <jakub@redhat.com>
1479 * cvt.c (convert_to_void) <case INDIRECT_REF>: Only warn about
1480 -Wunused-value if implicit.
1482 2009-04-24 Ian Lance Taylor <iant@google.com>
1484 * call.c (build_temp): Change 0 to enum constant.
1485 * cp-tree.h (cp_lvalue_kind): Typedef to int rather than enum
1487 * cp-gimplify.c (cp_gimplify_expr): Add cast to enum type.
1488 * decl2.c (constrain_visibility): Likewise.
1489 * parser.c (cp_lexer_get_preprocessor_token): Likewise.
1490 (cp_parser_flags): Typedef to int rather than enum type.
1491 (cp_parser_expression_stack_entry): Change prec field to enum
1494 * typeck.c (build_modify_expr): Add lhs_origtype parameter.
1497 2009-04-22 Dodji Seketeli <dodji@redhat.com>
1500 * parser.c (cp_parser_template_argument_list): Display an error
1501 when an ellipsis is not preceded by a parameter pack. Also, warn
1502 about variadic templates usage without -std=c++0x.
1504 2009-04-21 Taras Glek <tglek@mozilla.com>
1506 * cp-tree.h: Update GTY annotations to new syntax.
1508 * mangle.c: Likewise.
1509 * name-lookup.c: Likewise.
1510 * name-lookup.h: Likewise.
1511 * parser.c: Likewise.
1514 * semantics.c: Likewise.
1515 * typeck2.c: Likewise.
1517 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1520 * parser.c (cp_parser_error): Pass token->flags to c_parse_error.
1522 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1525 * typeck.c (check_for_casting_away_constness): We diagnose casting
1526 away any qualifiers not just constness.
1527 (casts_away_constness): Mention that it handles more than just
1530 2009-04-21 Joseph Myers <joseph@codesourcery.com>
1532 * ChangeLog, ChangeLog-1993, ChangeLog-1994, ChangeLog-1995,
1533 ChangeLog-1996, ChangeLog-1997, ChangeLog-1998, ChangeLog-1999,
1534 ChangeLog-2000, ChangeLog-2001, ChangeLog-2002, ChangeLog-2003,
1535 ChangeLog-2004, ChangeLog-2005, ChangeLog-2006, ChangeLog-2007,
1536 ChangeLog-2008, ChangeLog.ptr, ChangeLog.tree-ssa, NEWS,
1537 cfns.gperf: Add copyright and license notices.
1538 * cfns.h: Regenerate.
1539 * ChangeLog, ChangeLog-2004: Correct dates.
1541 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1544 * tree.c (lvalue_p_1): Use const_tree.
1545 Use CONST_CAST_TREE to avoid warning.
1546 (lvalue_p): Returns bool, receives const_tree.
1548 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1551 * parser.c (cp_parser_check_decl_spec): Drop redundant flags.
1552 * error.c (pedwarn_cxx98): New.
1553 * cp-tree.h (pedwarn_cxx98): Declare.
1555 2009-04-20 Le-Chun Wu <lcwu@google.com>
1558 * init.c (build_vec_init): Set TREE_NO_WARNING on the
1559 compiler-generated INDIRECT_REF expression.
1561 2009-04-20 Ian Lance Taylor <iant@google.com>
1563 * typeck.c (build_function_call_vec): New function.
1564 (cp_build_function_call): Only pass first parameter to
1565 objc_rewrite_function_call.
1566 (build_modify_expr): Add rhs_origtype parameter. Change all
1568 * decl.c (finish_decl): Add origtype parameter. Change all
1570 * semantics.c (finish_call_expr): Pass VEC to
1571 resolve_overloaded_builtin.
1573 2009-04-20 Ian Lance Taylor <iant@google.com>
1575 * cp-tree.h (base_access): Change typedef to int.
1576 * parser.c (cp_parser_omp_flush): Change 0 to OMP_CLAUSE_ERROR.
1577 (cp_parser_omp_threadprivate): Likewise.
1578 * pt.c (unify_pack_expansion): Add casts to enum type.
1580 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1584 * call.c (build_new_op): Save the original codes of operands
1587 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1589 * cp-tree.h: Remove the prototype for insert_block.
1590 * decl.c (insert_block): Remove.
1592 2009-04-16 Ian Lance Taylor <iant@google.com>
1594 * cp-tree.h (enum tsubst_flags): Rename from enum tsubst_flags_t.
1595 (tsubst_flags_t): Change typedef from enum type to int.
1597 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
1599 * decl.c (check_initializer): Use TYPE_VECTOR_OPAQUE
1600 instead of targetm.vector_opaque_p.
1602 2009-04-15 Le-Chun Wu <lcwu@google.com>
1605 * call.c (build_over_call): Set TREE_NO_WARNING on the
1606 compiler-generated INDIRECT_REF expression.
1607 * cvt.c (convert_to_void): Emit warning when stripping off
1610 2009-04-14 Diego Novillo <dnovillo@google.com>
1612 * parser.c (cp_parser_type_specifier_seq): Move call to
1613 invoke_plugin_callbacks ...
1614 (cp_parser_type_specifier_seq): ... here.
1616 2009-04-14 Le-Chun Wu <lcwu@google.com>
1618 * Make-lang.in: Modify dependencies of files including plugin.h.
1619 * decl.c (finish_function): Call invoke_plugin_callbacks.
1620 * parser.c (cp_parser_type_specifier): Call invoke_plugin_callbacks.
1622 2009-04-14 Jason Merrill <jason@redhat.com>
1625 * name-lookup.c (pushdecl_maybe_friend): Avoid all warnings
1626 about shadowing by tentative parms.
1628 2009-04-13 Jason Merrill <jason@redhat.com>
1631 * call.c (build_over_call): Don't call memcpy if the target is
1632 the same as the source.
1634 2009-04-13 Jason Merrill <jason@redhat.com>
1637 * pt.c (uses_template_parms): Handle CONSTRUCTOR.
1639 2009-04-12 Jason Merrill <jason@redhat.com>
1642 * call.c (joust): Don't crash on variadic fn.
1644 2009-04-10 Jason Merrill <jason@redhat.com>
1647 * parser.c (cp_parser_skip_to_end_of_block_or_statement): Return
1648 if we see a close brace without an open brace.
1650 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
1652 * parser.c (cp_parser_class_specifier): Remove the unused
1653 has_trailing_semicolon.
1655 2009-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1658 * parser.c (cp_parser_check_template_parameters): Take a
1659 cp_declarator parameter.
1660 (cp_parser_elaborated_type_specifier): Update to
1661 cp_parser_check_template_parameters.
1662 (cp_parser_class_head): Likewise.
1663 (cp_parser_check_declarator_template_parameters): Likewise.
1664 (cp_parser_check_template_parameters): Handle first the non-error
1665 conditions. Give more accurate diagnostics if a declarator is
1668 2009-04-08 Jason Merrill <jason@redhat.com>
1671 * error.c (dump_aggr_type): Chase template typedefs if
1672 -fno-pretty-templates.
1674 2009-04-08 Dodji Seketeli <dodji@redhat.com>
1677 * parser.c (cp_parser_enumerator_definition): Make sure the
1678 initializer of the enumerator doesn't contain any bare parameter pack.
1680 2009-04-07 Jason Merrill <jason@redhat.com>
1683 * name-lookup.c (merge_functions): Keep multiple extern "C" functions.
1684 * call.c (joust): Complain about mismatched default arguments
1685 in extern "C" functions.
1686 * class.c (resolve_address_of_overloaded_function): Handle multiple
1687 extern "C" functions.
1688 * pt.c (resolve_overloaded_unification): Likewise.
1690 2009-04-07 Jason Merrill <jason@redhat.com>
1693 * error.c (dump_function_decl): Don't pretty-print templates
1694 if -fno-pretty-templates.
1695 (count_non_default_template_args): Print all args if
1696 -fno-pretty-templates.
1698 2009-04-06 Jason Merrill <jason@redhat.com>
1701 * pt.c (fn_type_unification): For DEDUCE_EXACT check that
1702 the deduced template arguments give us the parameter types
1705 2009-04-05 Giovanni Bajo <giovannibajo@libero.it>
1706 Jason Merrill <jason@redhat.com>
1709 * error.c (count_non_default_template_args): New fn.
1710 (dump_template_parms): Call it.
1711 (dump_template_argument_list): Call it. Add parms parm.
1712 (dump_template_argument): Adjust call to dump_template_argument_list.
1713 (dump_type, dump_decl): Likewise.
1714 (dump_template_bindings): Refactor logic.
1716 2009-04-03 Jason Merrill <jason@redhat.com>
1719 * error.c (dump_template_bindings): Look through typedefs in
1721 (dump_type) [TYPENAME_TYPE]: Print the typedef name if any.
1722 (find_typenames_r): Also collect typedefs.
1723 * pt.c (unify): Strip typedefs.
1726 * semantics.c (finish_id_expression): Don't assume a dependent
1727 member of the current instantiation isn't a valid integral
1728 constant expression. Check dependent_scope_p.
1729 * pt.c (dependent_scope_p): Check TYPE_P.
1730 (tsubst_copy): If args is null, just return.
1732 2009-04-02 Jason Merrill <jason@redhat.com>
1735 * error.c (find_typenames, find_typenames_r): New fns.
1736 (dump_function_decl): Call find_typenames.
1737 (dump_template_bindings): Print typenames as well.
1738 * pt.c (tsubst): Non-static.
1739 * cp-tree.h: Declare it.
1741 2009-04-02 Dodji Seketeli <dodji@redhat.com>
1744 * decl2.c (grokfield): when a typedef appears in a
1745 class, create the typedef variant type node for it.
1746 (save_template_attributes): Creating typedef variant type node
1747 here is now useless.
1748 * decl.c (grokdeclarator): If the typedef'ed struct/class was
1749 anonymous, set the proper type name to all its type variants.
1750 (xref_basetypes) : Fixup the variant types after setting
1752 * name-lookup.c (pushdecl_maybe_friend): Reuse the
1753 set_underlying_type function to install typedef variant types.
1754 * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor
1756 (append_type_to_template_for_access_check): New entry points.
1757 * semantics.c (check_accessibility_of_qualified_id):
1758 When a typedef that is a member of a class appears in a template,
1759 add it to the template. It will be ...
1760 * class.c (finish_struct_bits): Split type variant fixup into ...
1761 (fixup_type_variants): A new entry point.
1762 * pt.c (instantiate_class_template, instantiate_template ): ... access
1763 checked at template instantiation time.
1764 (resolve_type_name_type): The type name should be the name of the
1766 (retrieve_specialization): Specializations of template typedefs aren't
1767 to looked up in DECL_TEMPLATE_INSTANTIATIONS (tmpl).
1768 (append_type_to_template_for_access_check): New entry point.
1769 (tsubst_decl): For typedefs, build the variant type from the correct
1771 (get_class_bindings): Fix function comment.
1772 (perform_typedefs_access_check): New entry point.
1774 2009-03-31 Jason Merrill <jason@redhat.com>
1777 * name-lookup.c (pushdecl_maybe_friend): Diagnose mismatched
1778 extern "C" declarations.
1781 * semantics.c (finish_non_static_data_member): Allow such references
1782 without an associated object in sizeof/decltype/alignof.
1784 * ptree.c (cxx_print_decl): Pretty-print full name of
1786 (cxx_print_type): Pretty-print full name of class.
1788 * decl.c (grokdeclarator): Reject pointer to qualified function
1791 PR c++/37806, core issue 547
1792 * typeck.c (cp_apply_type_quals_to_decl): Don't apply any quals
1794 * tree.c (cp_build_qualified_type_real): Don't apply restrict to a
1796 * decl.h (enum decl_context): Add TEMPLATE_TYPE_ARG.
1797 * decl.c (groktypename): Add is_template_arg parameter.
1798 (grokdeclarator): Allow function cv-quals on a template type arg.
1799 * parser.c (cp_parser_new_type_id, cp_parser_type_id): Add
1800 is_template_arg argument in calls to groktypename.
1801 * cp-tree.h: Adjust prototype.
1802 * error.c (dump_type_prefix, dump_type_suffix): Fix plain
1803 FUNCTION_TYPE printing.
1805 * mangle.c (write_expression): Mangle dependent name as
1808 PR c++/38030, 38850, 39070
1809 * pt.c (type_dependent_expression_p_push): New fn.
1810 (tsubst_copy_and_build) [CALL_EXPR]: Only do arg-dep lookup when the
1811 substitution makes the call non-dependent. Preserve koenig_p.
1812 * parser.c (cp_parser_postfix_expression): Only do arg-dep lookup
1813 for non-dependent calls.
1814 * semantics.c (finish_call_expr): Revert earlier changes.
1815 * cp-tree.h: Revert change to finish_call_expr prototype.
1817 2009-03-29 Joseph Myers <joseph@codesourcery.com>
1819 PR preprocessor/34695
1820 * cp-tree.h (cp_cpp_error): Remove.
1821 * error.c (cp_cpp_error): Remove.
1822 * parser.c (cp_lexer_new_main): Set done_lexing instead of
1823 client_diagnostic and error callback.
1825 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
1827 * cp/cp-objcp-common.h (LANG_HOOKS_STATICP): Remove.
1828 * cp/cp-objcp-common.c (cxx_staticp): Remove.
1829 * cp/cp-tree.h (cxx_staticp): Remove.
1831 2009-03-28 Jakub Jelinek <jakub@redhat.com>
1834 * parser.c (cp_parser_postfix_expression): Don't call
1835 warning_if_disallowed_function_p.
1837 2009-03-27 Jan Hubicka <jh@suse.cz>
1839 * except.c (choose_personality_routine): Set terminate_node to abort
1840 for java exceptions.
1842 2009-03-27 Dodji Seketeli <dodji@redhat.com>
1843 Jakub Jelinek <jakub@redhat.com>
1846 * cp-objcp-common.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
1847 (cp_function_decl_explicit_p): New prototype.
1848 * cp-objcp-common.c (cp_function_decl_explicit_p): New function.
1850 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
1853 * parser.c (cp_parser_elaborated_type_specifier): If we have a
1854 typename tag and don't have either a TYPE_DECL or a
1855 TEMPLATE_ID_EXPR, set the type to NULL.
1857 2009-03-27 Simon Martin <simartin@users.sourceforge.net>
1860 * decl.c (grokdeclarator): Reject [con|de]stuctors in a non-class
1863 2009-03-27 Simon Martin <simartin@users.sourceforge.net>
1866 * decl.c (check_array_designated_initializer): Handle error_mark_node.
1868 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1871 * typeck.c (cp_pointer_sum): Adjust call to pointer_int_sum.
1873 2009-03-26 Andrew Haley <aph@redhat.com>
1876 * decl2.c (possibly_inlined_p): If java exceptions are in use
1877 don't inline a decl unless it is explicitly marked inline.
1878 * lex.c: (pragma_java_exceptions): New variable.
1879 (handle_pragma_java_exceptions): Set pragma_java_exceptions.
1880 * cp-tree.h (pragma_java_exceptions): Declare new variable.
1882 2009-03-24 Jason Merrill <jason@redhat.com>
1885 * name-lookup.c (pushdecl_maybe_friend): Check default args later.
1887 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1890 * semantics.c (handle_omp_for_class_iterator): Swap cond operands and
1891 code if iter is the second operand.
1892 * parser.c (cp_parser_binary_expression): Add no_toplevel_fold_p
1893 argument. If it is set, don't build the toplevel expression with
1894 build_x_binary_op, but build2.
1895 (cp_parser_assignment_expression, cp_parser_omp_for_incr): Adjust
1897 (cp_parser_omp_for_cond): Don't assume the first operand of the
1898 comparison must be decl.
1900 2009-03-23 Jason Merrill <jason@redhat.com>
1903 * pt.c (make_fnparm_pack): Split out from...
1904 (instantiate_decl): ...here.
1905 (tsubst_pack_expansion): Handle being called in a late-specified
1909 * name-lookup.c (pushdecl_maybe_friend): Don't warn about shadowing
1912 2009-03-20 Jason Merrill <jason@redhat.com>
1915 * parser.c (cp_parser_direct_declarator): In a template, wrap
1916 non-constant expression in NOP_EXPR with TREE_SIDE_EFFECTS set.
1917 * pt.c (tsubst): Preserve it in a partial instantiation.
1918 (dependent_type_p_r): Don't check value_dependent_expression_p.
1919 * decl.c (compute_array_index_type): Don't check
1920 value_dependent_expression_p if TREE_SIDE_EFFECTS.
1923 * typeck2.c (check_narrowing): Don't complain about loss of
1924 precision when converting a floating-point constant.
1926 2009-03-19 Jakub Jelinek <jakub@redhat.com>
1929 * parser.c (cp_parser_omp_for_cond): Don't check lhs if decl is NULL.
1930 (cp_parser_omp_for_loop): Always use cp_parser_omp_for_cond.
1932 2009-03-18 Jakub Jelinek <jakub@redhat.com>
1934 * parser.c (struct cp_token): Reorder fields for 64-bit hosts.
1935 (eof_token): Adjust.
1937 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
1940 * parser.c (cp_parser_explicit_specialization): Don't skip the
1941 rest of the specialization when begin_specialization returns
1944 2009-03-17 Jason Merrill <jason@redhat.com>
1946 * decl.c (grokfndecl): Set DECL_CONTEXT on parms.
1947 (duplicate_decls): Adjust DECL_CONTEXT of newdecl's parms.
1948 * pt.c (check_explicit_specialization): Likewise.
1949 (tsubst_copy) [PARM_DECL]: Return a dummy parm if we don't have a
1950 local specialization.
1951 * tree.c (cp_tree_equal) [PARM_DECL]: Check type and index, not name.
1952 * decl2.c (parm_index): New fn.
1953 * semantics.c (finish_decltype_type): Don't use describable_type.
1954 * mangle.c (write_expression): Likewise. Mangle ALIGNOF_EXPR.
1955 Give a sorry for unsupported codes rather than crash. Mangle
1956 conversions with other than 1 operand. New mangling for PARM_DECL.
1957 * operators.def (ALIGNOF_EXPR): Mangle as "az".
1959 2009-03-17 Jing Yu <jingyu@google.com>
1962 * method.c (use_thunk): Change is_thunk from crtl to cfun.
1964 2009-03-17 Paolo Carlini <paolo.carlini@oracle.com>
1967 * semantics.c (check_trait_type): New.
1968 (finish_trait_expr): Use it.
1970 2009-03-17 Jakub Jelinek <jakub@redhat.com>
1972 * name-lookup.c (cp_emit_debug_info_for_using): Emit USING_STMTs
1973 instead of calling imported_module_or_decl debug hook if
1974 building_stmt_tree ().
1975 * cp-gimplify.c (cp_gimplify_expr): Don't assert the first operand
1976 is a NAMESPACE_DECL.
1979 * name-lookup.c (do_namespace_alias): Don't call global_decl debug
1980 hook at function scope.
1983 * cp-gimplify.c (cp_gimplify_expr): Don't set DECL_NAME
1986 2009-03-09 Jakub Jelinek <jakub@redhat.com>
1989 * semantics.c (finish_switch_cond): Don't call get_unwidened.
1990 * decl.c (finish_case_label): Pass SWITCH_STMT_TYPE as 3rd argument
1991 instead of TREE_TYPE (cond).
1993 2009-03-08 H.J. Lu <hongjiu.lu@intel.com>
1996 * parser.c (cp_parser_late_parsing_default_args): Continue
1997 the loop when cp_parser_assignment_expression returns
2000 2009-03-07 Jason Merrill <jason@redhat.com>
2003 * init.c (build_new_1): Don't use a VLA type.
2004 (build_vec_init): Handle getting a pointer for BASE.
2006 2009-03-06 H.J. Lu <hongjiu.lu@intel.com>
2009 * cp-tree.h: Check NO_DOT_IN_LABEL before NO_DOLLAR_IN_LABEL
2010 when mangling symbols.
2012 2009-03-06 Paolo Carlini <paolo.carlini@oracle.com>
2015 * error.c (dump_expr): Don't try to print THROW_EXPRs in full.
2017 2009-03-06 Alexandre Oliva <aoliva@redhat.com>
2019 * decl.c (record_builtin_java_type): Use canonicalized integer
2022 2009-03-04 Jason Merrill <jason@redhat.com>
2025 * class.c (is_really_empty_class): New fn.
2026 * cp-tree.h: Declare it.
2027 * cp-objcp-common.c (cp_expr_size): Use it.
2030 * semantics.c (perform_koenig_lookup): Handle TEMPLATE_ID_EXPR.
2031 * parser.c (cp_parser_postfix_expression): Call it for
2033 * tree.c (is_overloaded_fn): Look through TEMPLATE_ID_EXPR.
2034 (get_first_fn): Likewise.
2040 * decl.c (make_typename_type): Do look inside currently open classes.
2041 * parser.c (cp_parser_lookup_name): Likewise.
2042 (cp_parser_template_name): Likewise.
2043 * pt.c (dependent_scope_p): New function.
2044 * cp-tree.h: Declare it.
2045 * class.c (currently_open_class): Return fast if T isn't a class.
2047 2009-02-26 H.J. Lu <hongjiu.lu@intel.com>
2050 * parser.c (cp_parser_mem_initializer): Return error_mark_node
2051 if cp_parser_mem_initializer_id returns error_mark_node.
2053 2009-02-24 Richard Guenther <rguenther@suse.de>
2056 * pt.c (instantiate_decl): Do not instantiate extern, non-inline
2059 2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
2062 * pt.c (coerce_template_template_parms): Return 0 if parameter
2065 2009-02-23 Jason Merrill <jason@redhat.com>
2067 * pt.c (unify): Call maybe_adjust_types_for_deduction when
2068 deducing from an initializer list.
2070 2009-02-20 Jason Merrill <jason@redhat.com>
2073 * decl.c (grokdeclarator): Handle ~identifier.
2075 2009-02-19 Jakub Jelinek <jakub@redhat.com>
2078 * decl2.c (determine_visibility): If visibility changed and
2079 DECL_RTL has been already set, call make_decl_rtl to update symbol
2082 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
2085 * cp-tree.h (maybe_commonize_var): New.
2087 * decl.c (maybe_commonize_var): Make it extern.
2089 * decl2.c (finish_anon_union): Call maybe_commonize_var.
2091 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
2094 * parser.c (cp_parser_enum_specifier): Apply all attributes.
2096 2009-02-18 Jason Merrill <jason@redhat.com>
2098 * cfns.h: Tweak pathname for cfns.gperf.
2100 2009-02-13 Jason Merrill <jason@redhat.com>
2103 * semantics.c (finish_call_expr): Change koenig_p parm to int.
2104 If -1, don't set KOENIG_LOOKUP_P but do keep hidden candidates.
2105 * cp-tree.h: Adjust prototype.
2106 * pt.c (tsubst_copy_and_build) [CALL_EXPR]: Pass -1.
2108 2009-02-12 Jason Merrill <jason@redhat.com>
2111 * pt.c (unify)[TEMPLATE_PARM_INDEX]: Convert to the tsubsted type.
2113 2009-02-11 Jason Merrill <jason@redhat.com>
2116 * decl2.c (cp_write_global_declarations):
2117 Check DECL_DEFAULTED_FN, not DECL_ARTIFICIAL.
2120 * init.c (build_value_init_noctor): Split out from...
2121 (build_value_init): ...here.
2122 (expand_aggr_init_1): Handle value-initialization.
2123 * cp-tree.h: Add declaration.
2124 * class.c (type_has_user_provided_constructor):
2125 Handle non-class arguments.
2127 2009-02-10 Jason Merrill <jason@redhat.com>
2130 * class.c (defaultable_fn_p): Handle ... properly.
2133 * tree.c (lvalue_p_1): Condition rvalue ref handling on
2134 treat_class_rvalues_as_lvalues, too.
2136 2009-02-10 Paolo Carlini <paolo.carlini@oracle.com>
2139 * typeck.c (build_x_array_ref): New.
2140 * cp-tree.h: Declare it.
2141 * pt.c (tsubst_copy_and_build): Use it for case ARRAY_REF.
2143 2009-02-09 Jason Merrill <jason@redhat.com>
2146 * semantics.c (simplify_aggr_init_expr): Do zero-initialization here.
2147 * init.c (build_value_init): Not here. Don't build a TARGET_EXPR.
2148 * tree.c (get_target_expr): Handle AGGR_INIT_EXPR.
2149 * cp-gimplify.c (cp_gimplify_init_expr): Remove special handling
2150 for build_value_init TARGET_EXPR.
2151 * cp-tree.h (AGGR_INIT_ZERO_FIRST): New macro.
2153 2009-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2157 * cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Check TREE_VEC_LENGTH.
2159 2009-02-04 Jakub Jelinek <jakub@redhat.com>
2162 * operators.def: Use COMPONENT_REF code for ->/pt operator again,
2163 remove ./dt operator.
2164 * mangle.c (write_expression): Handle COMPONENT_REF after handling
2165 ADDR_EXPR, for COMPONENT_REF without ARROW_EXPR inside of it
2166 write_string ("dt") instead of using operators.def.
2168 2009-02-03 Jason Merrill <jason@redhat.com>
2170 * typeck.c (cp_build_unary_op): Only complain about taking address
2171 of main if pedantic.
2173 2009-02-03 Jakub Jelinek <jakub@redhat.com>
2176 * parser.c (cp_parser_primary_expression): Reject FIXED_CSTs.
2179 * typeck2.c (digest_init_r): Don't call process_init_constructor
2182 2009-02-03 Paolo Bonzini <bonzini@gnu.org>
2185 * pt.c (convert_nontype_argument_function): Expect expr to be an
2189 * typeck.c (merge_types): Call resolve_typename_type if only
2190 one type is a typename.
2192 2009-02-02 Jason Merrill <jason@redhat.com>
2195 * parser.c (cp_parser_unqualified_id): Don't wrap error_mark_node
2198 2009-02-01 Paolo Carlini <paolo.carlini@oracle.com>
2201 * parser.c (cp_parser_pure_specifier): If there are no tokens left
2202 do not call cp_lexer_consume_token.
2204 2009-01-30 Jakub Jelinek <jakub@redhat.com>
2207 * parser.c (cp_parser_already_scoped_statement): Handle __label__
2210 2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
2213 * error.c (dump_expr): Handle FIX_TRUNC_EXPR and FLOAT_EXPR.
2215 2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
2218 * error.c (dump_type_prefix, dump_type_suffix): Handle FIXED_POINT_TYPE.
2220 2009-01-29 Paolo Carlini <paolo.carlini@oracle.com>
2222 * typeck.c (invalid_nonstatic_memfn_p): Use
2223 DECL_NONSTATIC_MEMBER_FUNCTION_P.
2225 2009-01-27 Paolo Carlini <paolo.carlini@oracle.com>
2228 * call.c (build_over_call): If convert_for_arg_passing returns
2229 error_mark_node unconditionally return it.
2231 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
2233 * class.c (check_field_decls): Also inherit packed for bitfields
2234 regardless of their type.
2236 2009-01-22 Dodji Seketeli <dodji@redhat.com>
2239 * decl2.c (grokfield): Reverting changes of PR c++/26693
2240 (save_template_attributes): Likewise.
2241 * decl.c (grokdeclarator): Likewise.
2242 * name-lookup.c (pushdecl_maybe_friend): Likewise.
2243 * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): Likewise.
2244 (append_type_to_template_for_access_check): Likewise.
2245 * semantics.c (check_accessibility_of_qualified_id): Likewise.
2246 * pt.c (instantiate_class_template, instantiate_template ): Likewise.
2248 (resolve_type_name_type): Likewise.
2249 (append_type_to_template_for_access_check): Likewise.
2251 2009-01-21 Dodji Seketeli <dodji@redhat.com>
2254 * decl2.c (grokfield): when a typedef appears in a
2255 class, create the typedef variant type node for it.
2256 (save_template_attributes): Creating typedef variant type node
2257 here is now useless.
2258 * decl.c (grokdeclarator): If the typedef'ed struct/class was
2259 anonymous, set the proper type name to all its type variants.
2260 * name-lookup.c (pushdecl_maybe_friend): Reuse the
2261 set_underlying_type function to install typedef variant types.
2262 * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor
2264 (append_type_to_template_for_access_check): New entry points.
2265 * semantics.c (check_accessibility_of_qualified_id):
2266 When a typedef that is a member of a class appears in a template,
2267 add it to the template. It will be ...
2268 * pt.c (instantiate_class_template, instantiate_template ): ... access
2269 checked at template instantiation time.
2270 (tsubst): Handle the case of being called with NULL args.
2271 (resolve_type_name_type): The type name should be the name of the
2273 (append_type_to_template_for_access_check): New entry point.
2275 2009-01-19 Jason Merrill <jason@redhat.com>
2278 * parser.c (cp_parser_unqualified_id): In a template,
2280 * typeck.c (lookup_destructor): Handle IDENTIFIER_NODE.
2282 2009-01-16 Jason Merrill <jason@redhat.com>
2285 * tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
2286 * init.c (build_new): Don't call describable_type unless we
2290 * pt.c (tsubst_decl) [USING_DECL]: Propagate access flags.
2293 * search.c (protected_accessible_p): N doesn't vary.
2295 2009-01-15 Jason Merrill <jason@redhat.com>
2298 * pt.c (tsubst_copy_and_build): Tell finish_call_expr to
2299 accept hidden friends.
2301 2009-01-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2304 * decl.c (grokdeclarator): Check for a non namespace/class context.
2306 2009-01-15 Jason Merrill <jason@redhat.com>
2310 * tree.c (lvalue_p_1): Handle BASELINK. A COMPONENT_REF to
2311 a function isn't necessarily an lvalue. Take tree, not const_tree.
2312 (lvalue_p, real_lvalue_p): Take tree, not const_tree.
2313 * typeck.c (lvalue_or_else): Likewise.
2314 * cp-tree.h: Adjust prototypes.
2316 2009-01-15 Steve Ellcey <sje@cup.hp.com>
2319 * pt.c (tsubst): Check for NULL args.
2321 2009-01-15 Dodji Seketeli <dodji@redhat.com>
2324 * name-lookup.c (pushtag): Don't create members to types that are not
2327 2009-01-14 Nick Clifton <nickc@redhat.com>
2330 * parser.c: Pass cp_id_kind computed in
2331 cp_parser_postfix_dot_deref_expression to
2332 cp_parser_primary_expression.
2334 2009-01-13 Jakub Jelinek <jakub@redhat.com>
2337 * tree.c (cp_walk_subtrees): Handle REINTERPRET_CAST_EXPR,
2338 STATIC_CAST_EXPR, CONST_CAST_EXPR and DYNAMIC_CAST_EXPR the same
2341 2009-01-12 Jason Merrill <jason@redhat.com>
2342 Steve Ellcey <sje@cup.hp.com>
2345 * name-lookup.c (lookup_name_real): Keep looking past a hidden
2348 2009-01-12 Dodji Seketeli <dodji@redhat.com>
2351 * pt.c (parameter_of_template_p): New function.
2352 * cp-tree.h: Declare it.
2353 * name-lookup.c (binding_to_template_parms_of_scope_p): New
2355 (outer_binding): Take template parameters in account when looking for
2358 2009-01-12 Jason Merrill <jason@redhat.com>
2361 * tree.c (pod_type_p): Return 1 for structs created by the back end.
2363 2009-01-12 Jakub Jelinek <jakub@redhat.com>
2366 * parser.c (cp_parser_builtin_offsetof): Allow `->' in
2367 offsetof member-designator, handle it as `[0].'.
2370 * decl.c (start_function): If grokdeclarator hasn't returned
2371 FUNCTION_DECL nor error_mark_node, issue diagnostics.
2373 2009-01-11 Jakub Jelinek <jakub@redhat.com>
2376 * cp-gimplify.c (genericize_if_stmt): Renamed from ...
2377 (gimplify_if_stmt): ... this.
2378 (cp_gimplify_expr): Don't handle IF_STMT here.
2379 (cp_genericize_r): Call genericize_if_stmt for IF_STMT.
2381 2009-01-10 Andrew Pinski <pinskia@gmail.com>
2384 * typeck.c (cp_build_modify_expr): Check for NULL current_function_decl.
2387 * typeck2.c (build_functional_cast): Check for reference type and NULL
2390 2009-01-09 Steve Ellcey <sje@cup.hp.com>
2392 * typeck.c (cp_build_unary_op): Check for ERROR_MARK.
2394 2009-01-09 Jakub Jelinek <jakub@redhat.com>
2397 * error.c (dump_expr): Handle EXPR_STMT like BIND_EXPR.
2399 2009-01-09 John F. Carr <jfc@mit.edu>
2402 * parser.c (cp_parser_class_specifier): Clear
2403 parser->in_unbraced_linkage_specification_p while parsing class
2406 2009-01-07 Jakub Jelinek <jakub@redhat.com>
2409 * semantics.c (finish_goto_stmt): Convert destination to
2412 2009-01-06 Jason Merrill <jason@redhat.com>
2419 * pt.c (check_default_tmpl_args): Don't complain about
2420 out-of-order parameter packs in the enclosing class
2421 or parameter packs after default args.
2422 (coerce_template_parms): If we have more than one
2423 parameter pack, don't flatten argument packs.
2424 (template_args_equal): Handle argument packs.
2425 (comp_template_args): Don't flatten argument packs.
2426 (check_instantiated_arg): Split out from...
2427 (check_instantiated_args): Here. Handle arg packs.
2428 (convert_template_argument): Just check that nontype argument
2429 packs have the right type.
2431 2009-01-05 Dodji Seketeli <dodji@redhat.com>
2434 * typeck.c (type_after_usual_arithmetic_conversions): Fix a typo.
2436 2009-01-05 Jason Merrill <jason@redhat.com>
2439 * typeck2.c (process_init_constructor_union): Handle union with
2442 * mangle.c (write_expression): Remove mangling for zero-operand
2446 * decl.c (cp_finish_decl): Clear DECL_INITIAL for invalid
2450 * class.c (defaultable_fn_p): Only operator== can be a copy
2451 assignment operator.
2453 2009-01-02 Jason Merrill <jason@redhat.com>
2456 * typeck2.c (process_init_constructor_union): Handle excess
2458 (process_init_constructor_record): Likewise.
2461 * typeck2.c (digest_init_r): Don't use process_init_constructor
2462 for non-aggregate classes.
2465 Copyright (C) 2009 Free Software Foundation, Inc.
2467 Copying and distribution of this file, with or without modification,
2468 are permitted in any medium without royalty provided the copyright
2469 notice and this notice are preserved.