1 2010-10-26 Jason Merrill <jason@redhat.com>
3 * tree.c (build_vec_init_expr): Split out from...
4 (build_array_copy): ...here.
5 * init.c (perform_member_init): Use it.
6 * cp-tree.h: Declare it.
7 * cp-gimplify.c (cp_gimplify_init_expr): Don't gimplify the slot for
8 VEC_INIT_EXPR and AGGR_INIT_EXPR here. Drop pre/post parameters.
9 (cp_gimplify_expr): Handle array default-initialization via
12 * pt.c (lookup_template_class): push_tinst_level around call to
13 coerce_template_parms.
15 * tree.c (stabilize_expr): Handle xvalues properly.
17 * call.c (build_over_call): Use argarray[0] for 'this' argument.
19 * decl.c (finish_function): Don't look at function_depth.
21 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
23 Implement opaque-enum-specifiers for C++0x.
24 * cp-tree.h (SET_OPAQUE_ENUM_P): New.
26 (ENUM_FIXED_UNDERLYING_TYPE_P): New.
27 (start_enum): Update prototype.
28 (finish_enum_value_list): New prototype.
29 * parser.c (cp_parser_elaborated_type_specifier): Issue a pedwarn if
30 "enum class" is used in an elaborated-type-specifier.
31 (cp_parser_enum_specifier): Rewrite to parse opaque-enum-specifiers.
32 * decl.c (copy_type_enum): New.
33 (finish_enum_value_list): New, with code from finish_enum.
34 (finish_enum): A lot of code removed. Added a gcc_assert.
35 (start_enum): Add parameters enumtype and is_new.
36 Rewrite to work with opaque-enum-specifiers.
37 * pt.c (maybe_process_partial_specialization): Allow for template
38 specialization of enumerations, with a pedwarn.
39 (lookup_template_class): Update call to start_enum. Call to
41 (tsubst_enum): Call to begin_scope, finish_scope and
42 finish_enum_value_list.
44 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
46 Removed Objective-C++ specific replacement of cxx_printable_name.
47 * cp-objcp-common.h: Added LANG_HOOKS_DECL_PRINTABLE_NAME, set
48 to cxx_printable_name for both C++ and Objective-C++.
49 * cp-lang.h: Removed LANG_HOOKS_DECL_PRINTABLE_NAME.
51 * error.c (dump_decl): For Objective-C++, call
52 objc_maybe_printable_name here ...
53 * tree.c (cxx_printable_name_internal): ... instead of here.
55 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
57 * tree.c (cxx_printable_name_internal): In Objective-C++, call
58 objc_maybe_printable_name.
60 2010-10-22 Jason Merrill <jason@redhat.com>
63 * pt.c (instantiate_class_template): Don't instantiate default
67 * init.c (build_vec_init): Handle memberwise move.
69 2010-10-21 Paolo Carlini <paolo.carlini@oracle.com>
72 * call.c (add_function_candidate): Don't use TREE_VALUE on null
75 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
77 * parser.c (cp_parser_objc_method_type): Mark inline. Return a
78 bool instead of calling objc_set_method_type.
79 (cp_parser_objc_method_signature): Updated calls to
80 cp_parser_objc_method_type and to objc_build_method_signature.
81 (cp_parser_objc_method_prototype_list): Updated calls to
82 objc_add_method_declaration. Use token->type to determine if it
83 is a class method or not.
84 (cp_parser_objc_method_definition_list): Same change.
86 2010-10-20 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
89 * parser.c (cp_convert_range_for): Call cp_finish_decl
90 instead of finish_expr_stmt.
92 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
94 * cp-lang.c (finish_file): Removed.
95 * decl2.c (cp_write_global_declarations): Call
96 objc_write_global_declarations when compiling Objective-C++.
98 2010-10-19 Paolo Carlini <paolo.carlini@oracle.com>
101 * pt.c (add_to_template_args): Check extra_args for error_mark_node.
102 (coerce_template_parms): Likewise for args.
104 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
106 Implemented parsing @synthesize and @dynamic for Objective-C++.
107 * parser.c (cp_parser_objc_method_definition_list): Recognize
108 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
109 (cp_parser_objc_at_dynamic_declaration): New.
110 (cp_parser_objc_at_synthesize_declaration): New.
112 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
114 * parser.c (cp_parser_objc_identifier_list): Check the return
115 value of cp_parser_identifier and react if it is error_mark_node.
117 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
119 Merge from apple/trunk branch on FSF servers.
121 2005-03-01 Fariborz Jahanian <fjahanian@apple.com>
124 * call.c (standard_conversion, implicit_conversion): Ignore
125 'volatile' attribute of artificially volatized type in objc when
126 evaluating various conversion weights.
128 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
131 * typeck.c (comp_ptr_ttypes_real): Remove the hack. un-volatize the
132 artiificially 'volatized' type before doing pointer comparison.
134 2010-10-18 Jakub Jelinek <jakub@redhat.com>
137 * semantics.c (finish_goto_stmt): Call mark_rvalue_use on computed
140 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
142 Merge from apple/trunk branch on FSF servers.
144 2006-04-19 Fariborz Jahanian <fjahanian@apple.com>
147 * parser.c (cp_parser_simple_type_specifier): Don't lookup for
148 objc object types if type is scope qualified.
150 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
152 Merge from apple/trunk branch on FSF servers.
154 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
157 * lex.c (unqualified_name_lookup_error): Issue diagnostic
158 for private 'ivar' access.
160 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
162 * parser.c (cp_parser_objc_visibility_spec): Update to use visibility
163 enum, and handle @package.
165 2010-10-15 Jason Merrill <jason@redhat.com>
168 * tree.c (cp_build_qualified_type_real): Don't reuse a variant
169 with a different typedef variant of the element type.
171 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
173 merge from FSF apple 'trunk' branch.
174 2006 Fariborz Jahanian <fjahanian@apple.com>
176 Radars 4436866, 4505126, 4506903, 4517826
177 * typeck.c (finish_class_member_access_expr): Handle CLASS.property
179 (cp_build_modify_expr): Likewise.
180 * parser.c (cp_parser_objc_method_prototype_list): Handle @property.
181 (cp_parser_objc_method_definition_list): Likewise.
182 (cp_parser_objc_property_decl): New.
183 (cp_parser_objc_property_attrlist): New.
184 (cp_parser_objc_at_property): New.
186 2010-10-14 Richard Guenther <rguenther@suse.de>
189 * cp-tree.h (NULLPTR_TYPE_P): Adjust.
190 * decl.c (cxx_init_decl_processing): Build a NULLPTR_TYPE node,
192 * error.c (dump_type): Handle NULLPTR_TYPE.
193 (dump_type_prefix): Likewise.
194 (dump_type_suffix): Likewise.
195 * mangle.c (write_type): Likewise.
196 * name-lookup.c (arg_assoc_type): Likewise.
197 * rtti.c (typeinfo_in_lib_p): Likewise.
198 * pt.c (tsubst): Likewise.
200 2010-10-13 Jason Merrill <jason@redhat.com>
203 * class.c (fixup_attribute_variants): New fn.
204 * cp-tree.h: Declare it.
205 * pt.c (instantiate_class_template): Call it.
206 * semantics.c (begin_class_definition): Call it.
208 2010-10-13 Richard Henderson <rth@redhat.com>
210 * cp-lang.c (cp_eh_personality): Update call to
211 build_personality_function.
212 * except.c (choose_personality_routine): Update function comment.
214 2010-10-13 Richard Guenther <rguenther@suse.de>
216 * tree.c (cp_free_lang_data): Free DECL_NAMESPACE_USERS and
217 clear DECL_CHAIN of NAMESPACE_DECLs.
219 2010-10-11 Martin Jambor <mjambor@suse.cz>
222 * cp-tree.h (current_class_ref): Check that cp_function_chain is
224 * call.c (build_cxx_call): Likewise.
226 2010-10-10 Jason Merrill <jason@redhat.com>
228 * pt.c (tsubst_default_argument): Handle DEFAULT_ARG.
229 (tsubst_default_arguments): Only do this once for cloned fns.
230 (tsubst): Use typedef_variant_p. Handle LANG_TYPE. Don't
232 (tsubst_expr): Avoid calling tsubst_expr for non-expressions.
233 (tsubst_copy_and_build): Likewise.
234 (tsubst_initializer_list): Likewise.
235 (tsubst_copy): Change default to gcc_unreachable. Handle
236 OVERLOAD and PTRMEM_CST.
238 2010-10-10 Jason Merrill <jason@redhat.com>
242 * pt.c (tsubst_copy) [INTEGER_CST]: Instantiate the type.
244 2010-10-07 Andi Kleen <ak@linux.intel.com>
246 * Make-lang.in (c++_OBJS): Remove dummy-checksum.o.
247 (cc1plus-dummy): Remove.
248 (cc1plus-checksum): Change to run checksum over object files
251 2010-10-08 Joseph Myers <joseph@codesourcery.com>
253 * cp-objcp-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
255 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
257 * cp-tree.def: Changed type of AT_ENCODE_EXPR from tcc_unary to
259 * cxx-pretty-print.c (pp_cxx_unary_expression): Added case for
261 * error.c (dump_expr): Added case for AT_ENCODE_EXPR.
262 * pt.c (tsubst_copy): Added case for AT_ENCODE_EXPR.
263 (value_dependent_expression_p): Added case for AT_ENCODE_EXPR.
264 (type_dependent_expression_p): Added case for AT_ENCODE_EXPR.
265 * parser.c (cp_parser_objc_encode_expression): Updated comment.
267 2010-10-07 Nicola Pero <nicola@nicola.brainstorm.co.uk>
269 Merge from apple/trunk branch on FSF servers.
271 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
274 * parser.c (cp_parser_objc_interstitial_code): Recognize
275 and parse RID_NAMESPACE keyword.
277 2010-10-07 Iain Sandoe <iains@gcc.gnu.org>
279 * parser.c (cp_parser_objc_method_tail_params_opt): Peek new token after
280 finding ellipsis, before checking for attributes.
282 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
284 Merge from apple/trunk branch on FSF servers.
285 * cp-tree.def: Added AT_ENCODE_EXPR here instead of to the no
286 longer existing gcc/c-common.def.
288 2005-12-14 Fariborz Jahanian <fjahanian@apple.com>
291 * pt.c (tsubst_copy_and_build): Instantiate @endcode(T).
292 * parser.c (cp_parser_objc_encode_expression): Build a templatized
293 parse tree for @encode(T).
295 2005-12-14 Fariborz Jahanian <fjahanian@apple.com>
298 * c-common.def: Add new expression code AT_ENCODE_EXPR.
300 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
303 * typeck.c (cp_build_addr_expr_1): Add check for incomplete types in
304 code folding offsetof-like computations.
306 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
309 * parser.c (cp_parser_objc_class_interface): If no identifier
310 follows an @interface token, stop parsing the interface after
312 (cp_parser_objc_class_implementation): If no identifier follows an
313 @implementation token, stop parsing the implementation after
316 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
319 * parser.c (cp_parser_objc_method_keyword_params): If the required
320 colon is not found while parsing parameters, stop parsing them.
322 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
325 * parser.c (cp_parser_objc_class_ivars): Do not eat the EOF or
326 @end after detecting it. Print an error if @end is found without
328 (cp_parser_objc_method_prototype_list): Do not eat the EOF after
329 detecting it. Fixed reading the next token when continuing
330 because of an error in a method signature. Print an error if EOF
331 is found without an '@end'.
332 (cp_parser_objc_method_definition_list): Same change.
334 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
336 Merge from apple/trunk branch on FSF servers:
338 2005-10-17 Fariborz Jahanian <fjahanian@apple.com>
341 * parser.c (cp_parser_objc_method_keyword_params): Check for valid
342 method parameters and issue error.
343 (cp_parser_objc_method_definition_list): Check for invalid tokens
344 which cannot start a function definition.
346 2005-10-14 Fariborz Jahanian <fjahanian@apple.com>
349 * parser.c (cp_parser_objc_message_args): Check for missing message
350 arguments and syntax error.
352 2005-10-13 Fariborz Jahanian <fjahanian@apple.com>
355 * parser.c (cp_parser_objc_class_ivars): Check for @end/eof while
358 2005-08-15 Ziemowit Laski <zlaski@apple.com>
361 * parser.c (cp_parser_objc_interstitial_code): Catch stray
362 '{' and '}' tokens and issue appropriate errors.
364 2005-08-02 Ziemowit Laski <zlaski@apple.com>
367 (cp_parser_statement_seq_opt): In addition to '}' and
368 end-of-file, a statement sequence may also be terminated
371 2010-10-05 Joseph Myers <joseph@codesourcery.com>
373 * cp-tree.h (cxx_print_error_function,
374 cxx_initialize_diagnostics): Declare using diagnostic_context
377 2010-10-04 Andi Kleen <ak@linux.intel.com>
379 * Make-lang.in (g++, cc1plus): Add + to build rule.
381 2010-10-04 Jason Merrill <jason@redhat.com>
383 * tree.c (decl_storage_duration): New.
384 * cp-tree.h: Declare it.
385 (duration_kind): Return values.
387 2010-10-03 Jason Merrill <jason@redhat.com>
389 * typeck.c (require_complete_type_sfinae): Add complain parm to...
390 (require_complete_type): ...this function.
391 (cp_build_array_ref, convert_arguments): Use it.
392 (convert_for_initialization, cp_build_modify_expr): Likewise.
393 * cp-tree.h: Declare it.
394 * call.c (build_over_call): Use it.
396 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
398 merge from FSF 'apple/trunk' branch.
399 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
402 * cp/parser.c (cp_parser_objc_interstitial_code): For
403 @optional/@required set the optional/required flag.
405 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
407 * parser.c (cp_lexer_get_preprocessor_token): Tidied up comments
408 and indentation when finding an Objective-C++ CPP_AT_NAME token.
410 2010-09-29 Richard Guenther <rguenther@suse.de>
412 * cp-tree.h (CP_DECL_CONTEXT): Check DECL_FILE_SCOPE_P.
413 (CP_TYPE_CONTEXT): Similar.
414 (FROB_CONTEXT): Frob global_namespace to the global
415 TRANSLATION_UNIT_DECL.
416 * decl.c (cxx_init_decl_processing): Build a TRANSLATION_UNIT_DECL,
417 set DECL_CONTEXT of global_namespace to it.
418 (start_decl): Use CP_DECL_CONTEXT and test TYPE_P
419 instead of zeroing context.
420 (cp_finish_decl): Use DECL_FILE_SCOPE_P.
421 (grokfndecl): Likewise.
422 (start_preparsed_function): Likewise.
423 * name-lookup.c (maybe_push_decl): Use DECL_NAMESPACE_SCOPE_P.
424 (namespace_binding): Use SCOPE_FILE_SCOPE_P.
425 * pt.c (template_class_depth): Use CP_TYPE_CONTEXT.
426 (is_specialization_of_friend): Use CP_DECL_CONTEXT.
427 (push_template_decl_real): Likewise.
428 (tsubst_friend_class): Likewise. Adjust context comparisons.
429 (instantiate_class_template): Use CP_TYPE_CONTEXT.
430 (tsubst): Do not substitute into TRANSLATION_UNIT_DECL.
431 * cxx-pretty-print.c (pp_cxx_nested_name_specifier): Use
434 2010-09-29 Yao Qi <yao@codesourcery.com>
436 * decl.c (get_atexit_node): Fix typo.
438 2010-09-28 Jason Merrill <jason@redhat.com>
440 * tree.c (lvalue_kind): Rename from lvalue_p_1, make nonstatic.
441 (real_lvalue_p): Take const_tree.
443 * typeck.c (lvalue_or_else): Make temporary arg a permerror.
444 (cp_build_addr_expr_1): Likewise.
446 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
448 Partially merged from apple/trunk branch on FSF servers:
449 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
450 Radar 3803157 (method attributes)
452 * parser.c (cp_parser_objc_method_keyword_params): Handle attributes.
453 (cp_parser_objc_method_tail_params_opt): Likewise.
454 (cp_parser_objc_method_signature): Likewise.
455 (cp_parser_objc_method_maybe_bad_prefix_attributes): New.
456 (cp_parser_objc_method_prototype_list): Handle attributes.
457 (cp_parser_objc_method_definition_list): Likewise.
459 2010-09-28 Richard Henderson <rth@redhat.com>
461 * cp-lang.c: Include "target.h".
462 (cp_eh_personality): Use targetm.except_unwind_info.
463 * Make-lang.in (cp-lang.o): Update deps.
465 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
467 * parser.c (cp_parser_objc_valid_prefix_attributes): New.
468 (cp_parser_declaration): Parse prefix attributes for ObjC++.
469 (cp_parser_objc_protocol_declaration): Handle attributes.
470 (cp_parser_objc_class_interface): Likewise.
471 (cp_parser_objc_declaration): Likewise.
473 2010-09-27 Jason Merrill <jason@redhat.com>
475 Require lvalues as specified by the standard.
476 * typeck.c (lvalue_or_else): Use real_lvalue_p.
477 (cp_build_addr_expr_1): Split out of cp_build_unary_op.
478 (cp_build_addr_expr, cp_build_addr_expr_strict): Interfaces.
479 (decay_conversion, get_member_function_from_ptrfunc): Adjust.
480 (build_x_unary_op, build_reinterpret_cast_1): Adjust.
481 (build_const_cast_1): Adjust.
482 * cp-tree.h: Declare new fns.
483 * call.c (build_this, convert_like_real, build_over_call): Adjust.
484 (initialize_reference): Adjust.
485 * class.c (build_base_path, convert_to_base_statically): Adjust.
486 (build_vfn_ref, resolve_address_of_overloaded_function): Adjust.
487 * cvt.c (build_up_reference, convert_to_reference): Adjust.
488 * decl.c (register_dtor_fn): Adjust.
489 * decl2.c (build_offset_ref_call_from_tree): Adjust.
490 * except.c (initialize_handler_parm): Adjust.
491 * init.c (build_offset_ref, build_delete, build_vec_delete): Adjust.
492 * rtti.c (build_dynamic_cast_1, tinfo_base_init): Adjust.
493 * tree.c (stabilize_expr): Adjust.
495 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
497 Merge from apple/trunk branch on FSF servers:
499 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
502 * typeck.c (composite_pointer_type): Call objc_have_common_type
503 when comparing two objective-c pointer types.
505 2005-07-18 Ziemowit Laski <zlaski@apple.com>
508 * call.c (standard_conversion): Do not issue warnings when
509 comparing ObjC pointer types.
511 2005-06-22 Ziemowit Laski <zlaski@apple.com>
514 * call.c (standard_conversion): Allow for a pointer conversion
515 between any two ObjC pointer types.
516 * typeck.c (composite_pointer_type): Determine common type
517 for two ObjC pointer types.
519 2010-09-24 Jan Hubicka <jh@suse.cz>
521 * decl.c (finish_function): Use decl_replaceable_p
522 * method.c (make_alias_for_thunk): Update call of
523 cgraph_same_body_alias.
525 2010-09-24 Jason Merrill <jason@redhat.com>
527 * decl.c (compute_array_index_type): Remember type dependence of
529 * pt.c (dependent_type_p_r): Don't recompute it here.
531 * error.c (dump_expr) [CASE_CONVERT]: Print conversion between
532 reference and pointer to the same type as "*" or "&".
534 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
536 * typeck.c (warn_args_num): Use warning 'too many arguments to
537 method [methodname]' for an Objective-C method instead of the less
538 satisfactory 'too many arguments to function' (with no method
541 2010-09-21 Jason Merrill <jason@redhat.com>
543 * mangle.c (write_expression) [SCOPE_REF]: Only do -fabi-version=1
544 special handling if we know the member.
546 2010-09-18 Jason Merrill <jason@redhat.com>
548 * call.c (compare_ics): Do lvalue/rvalue reference binding
549 comparison for ck_list, too.
551 2010-09-15 Jason Merrill <jason@redhat.com>
553 * semantics.c (finish_id_expression): Diagnose use of function
554 parms in evaluated context outside function body.
556 * decl2.c (grokbitfield): Diagnose non-integral width.
558 * call.c (convert_like_real): Use the underlying type of the
559 reference for the temporary.
561 2010-09-15 Jakub Jelinek <jakub@redhat.com>
564 * class.c (build_vtbl_initializer): Use fn instead of init's operand
565 as first argument to FDESC_EXPR.
567 2010-09-15 Paolo Carlini <paolo.carlini@oracle.com>
570 * decl.c (grokdeclarator): Check build_memfn_type return value
573 2010-09-13 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
575 * semantics.c (finish_for_stmt): Always test flag_new_for_scope.
576 (begin_range_for_stmt): Likewise.
578 2010-09-11 Rodrigo Rivas <rodrigorivascosta@gmail.com>
580 Implement range-based for-statements.
581 * cp-tree.def (RANGE_FOR_STMT): New.
582 * cp-tree.h (RANGE_FOR_DECL, RANGE_FOR_EXPR, RANGE_FOR_BODY): New.
583 (cp_convert_range_for): Declare.
584 * pt.c (tsubst_expr): Add RANGE_FOR_STMT.
585 (tsubst_copy_and_build): perform_koenig_lookup takes extra argument.
586 * semantics.c (begin_range_for_stmt): New.
587 (finish_range_for_decl): New.
588 (finish_for_stmt): Accept also RANGE_FOR_STMT.
589 (perform_koenig_lookup): Add extra argument include_std.
590 * parser.c (cp_parser_c_for): New with code from
591 cp_parser_iteration_statement().
592 (cp_parser_range_for): New.
593 (cp_convert_range_for): New.
594 (cp_parser_iteration_statement): Add range-for support.
595 (cp_parser_condition): Adjust comment.
596 (cp_parser_postfix_expression): perform_koenig_lookup takes extra
598 * dump.c (cp_dump_tree): Add RANGE_FOR_STMT.
599 * cxx-pretty-print.c: Likewise.
600 * lex.c (cxx_init): Likewise.
601 * name-lookup.c (lookup_function_nonclass): Add extra argument
603 (lookup_arg_dependent): Likewise.
604 * name-lookup.h: Likewise.
606 2010-09-10 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
609 * error.c (maybe_warn_cpp0x): Add new warning
610 CPP0X_INLINE_NAMESPACES.
611 * parser.c (cp_parser_namespace_definition): Likewise.
612 * cp-tree.h (cpp0x_warn_str): Likewise.
614 2010-09-10 Richard Guenther <rguenther@suse.de>
616 * decl.c (reshape_init_vector): For VECTOR_TYPEs, use
617 TYPE_VECTOR_SUBPARTS instead of TYPE_DEBUG_REPRESENTATION_TYPE.
619 2010-09-10 Jan Hubicka <jh@suse.cz>
621 PR tree-optimization/45605
622 * cp/class.c (build_vtbl_initializer): Avoid wrong type conversion in
625 2010-09-08 Jakub Jelinek <jakub@redhat.com>
628 * pt.c (tsubst) <case INTEGER_TYPE>: Call mark_rvalue_use
629 before calling fold_decl_constant_value.
631 2010-09-07 Arnaud Charlet <charlet@adacore.com>
633 * cp-tree.h (build_enumerator): Add new location_t parameter.
634 (build_lang_decl_loc): New function.
635 * decl.c (build_enumerator): New parameter loc. Use it when calling
636 build_decl. Replace build_lang_decl with build_lang_decl_loc.
637 * pt.c (tsubst_enum): Adjust call to build_enumerator.
638 * parser.c (cp_parser_enumerator_definition): Ditto.
639 * lex.c (build_lang_decl_loc): New function.
641 2010-09-06 Dodji Seketeli <dodji@redhat.com>
646 * tree.c (strip_typedefs): Strip typedefs from the context of
649 2010-09-06 Mark Mitchell <mark@codesourcery.com>
651 * typeck.c (cp_build_binary_op): Call do_warn_double_promotion.
652 * call.c (build_conditional_expr): Likewise.
653 (convert_arg_to_ellipsis): Likewise.
655 2010-09-06 Arnaud Charlet <charlet@adacore.com>
657 * parser.c (make_pointer_declarator, make_reference_declarator,
658 make_call_declarator, make_array_declarator): Set declarator->id_loc.
659 (cp_parser_init_declarator): Adjust location of decl if appropriate.
661 2010-09-06 Jason Merrill <jason@redhat.com>
663 * call.c (implicit_conversion): Fix value-init of enums.
664 (convert_like_real): Likewise.
666 * decl.c (cp_finish_decl): Don't change init for auto deduction.
668 * pt.c (fold_non_dependent_expr_sfinae): Split out from...
669 (fold_non_dependent_expr): ...here.
670 (convert_nontype_argument): Use it. Take complain parm.
671 Use perform_implicit_conversion instead of ocp_convert.
672 Allow cv-qual changes.
673 (convert_template_argument): Pass complain down.
674 (tsubst_template_arg): Suppress constant expression warnings.
677 * method.c (synthesized_method_walk): In constructors, also check
678 subobject destructors.
680 * semantics.c (finish_compound_literal): Always build a
683 2010-08-30 Paolo Carlini <paolo.carlini@oracle.com>
686 * decl.c (grokdeclarator): Use MAIN_NAME_P only on IDENTIFIER_NODEs.
688 2010-08-30 Jakub Jelinek <jakub@redhat.com>
691 * parser.c (cp_parser_omp_atomic): Handle boolean
692 {PRE,POST}_INCREMENT.
694 2010-08-29 Jason Merrill <jason@redhat.com>
697 * parser.c (cp_parser_parameter_declaration): Pop parameter decls
698 after tentative parsing.
700 2010-08-22 Joseph Myers <joseph@codesourcery.com>
702 * Make-lang.in (g++spec.o): Update dependencies.
703 * g++spec.c: Include opts.h
704 (MATH_LIBRARY, LIBSTDCXX): Remove initial "-l".
705 (lang_specific_driver): Use cl_decoded_option structures.
707 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
709 * call.c: Use FOR_EACH_VEC_ELT.
714 * except.c: Likewise.
715 * mangle.c: Likewise.
716 * method.c: Likewise.
717 * name-lookup.c: Likewise.
718 * parser.c: Likewise.
721 * semantics.c: Likewise.
722 * typeck2.c: Likewise.
724 2010-08-19 Jason Merrill <jason@redhat.com>
726 * call.c (reference_related_p): Check for error_mark_node.
727 (add_function_candidate): Check it instead of
728 same_type_ignoring_top_level_qualifiers_p.
731 * init.c (build_new_1): Don't use build_value_init in a template.
732 (build_value_init): Make sure we don't.
735 * cp-gimplify.c (cp_gimplify_expr): Also remove assignment
736 of empty class CONSTRUCTOR.
738 * except.c (pending_noexcept, pending_noexcept_checks): New.
739 (perform_deferred_noexcept_checks): New.
740 (maybe_noexcept_warning): Split from...
741 (finish_noexcept_expr): ...here. Adjust.
742 * decl2.c (cp_write_global_declarations): Call
743 perform_deferred_noexcept_checks.
744 * cp-tree.h: And declare it.
746 2010-08-18 Nathan Froyd <froydnj@codesourcery.com>
749 * name-lookup.c (push_overloaded_decl): Change DECL_CHAIN to
752 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
754 * class.c (note_name_declared_in_class): Make in 'extern "C"' blocks,
755 or if -fms-extensions is enabled check, check permissive.
757 2010-08-09 Jason Merrill <jason@redhat.com>
760 * pt.c (lookup_template_class): Don't re-coerce outer parms.
762 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
764 * call.c (add_builtin_candidates): Use VECs for local variable
765 `types'. Adjust remainder of function accordingly.
767 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
769 * name-lookup.c (is_associated_namespace): Convert local variables
770 to be VECs instead of TREE_LISTs.
772 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
774 * tree.c (varargs_function_p): Use stdarg_p.
776 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
778 * parser.c (cp_default_arg_entry): Declare. Declare a VEC of it.
779 (cp_unparsed_functions_entry): Declare. Declare a VEC of it.
780 (cp_parser) [unparsed_functions_queues]: Rename to unparsed_queues.
781 Change type to a VEC.
782 (unparsed_funs_with_default_args): Define.
783 (unparsed_funs_with_definitions): Define.
784 (push_unparsed_function_queues): New function.
785 (cp_parser_new): Call it.
786 (pop_unparsed_function_queues): New function.
787 (cp_parser_class_specifier): Adjust processing of unparsed functions.
788 (cp_parser_template_declaration_after_export): Use VEC_safe_push.
789 (cp_parser_save_member_function_body): Likewise.
790 (cp_parser_late_parsing_for_member): Call push_unparsed_function_queues
791 and pop_unparsed_function_queues.
792 (cp_parser_late_parsing_default_args): Likewise.
793 (cp_parser_save_default_args): Use VEC_safe_push.
795 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
797 * name-lookup.h (cp_label_binding): Declare. Declare a VEC type
799 (cp_binding_level): Convert shadowed_labels and dead_vars_from_for
801 * decl.c (poplevel): Adjust for type changes.
802 (declare_local_label): Likewise.
804 2010-08-06 Jason Merrill <jason@redhat.com>
806 * typeck.c (complete_type_or_maybe_complain): Split out from...
807 (complete_type_or_else): Here.
808 (build_class_member_access_expr): Call it.
809 (finish_class_member_access_expr): Likewise.
810 * call.c (build_special_member_call): Likewise.
811 * cvt.c (build_expr_type_conversion): Likewise.
812 * init.c (build_new): Likewise.
813 * typeck2.c (build_functional_cast): Likewise.
814 * cp-tree.h: Declare it.
816 * init.c (build_value_init): Add complain parm.
817 (build_value_init_noctor): Likewise.
818 (perform_member_init): Pass it.
819 (expand_aggr_init_1): Likewise.
820 (build_new_1): Likewise.
821 (build_vec_init): Likewise.
822 * pt.c (tsubst_expr): Likewise.
823 * typeck2.c (build_functional_cast): Likewise.
825 * tree.c (build_target_expr_with_type): Handle error_mark_node.
827 * typeck.c (decay_conversion): Any expression with type nullptr_t
830 2010-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
833 * decl.c (duplicate_decls): Merge DECL_USER_ALIGN and DECL_PACKED.
835 2010-07-27 Jason Merrill <jason@redhat.com>
837 * pt.c (tsubst_expr) [DECL_EXPR]: Handle getting an AGGR_INIT_EXPR
838 from build_value_init.
839 * init.c (build_value_init_noctor): Give error for unknown array
842 2010-07-27 Joseph Myers <joseph@codesourcery.com>
844 * cp-objcp-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
846 2010-07-27 Joseph Myers <joseph@codesourcery.com>
848 * cp-objcp-common.c (cxx_initialize_diagnostics): First call
849 c_common_initialize_diagnostics.
850 * cp-objcp-common.h (LANG_HOOKS_OPTION_LANG_MASK,
851 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
853 2010-07-21 Jason Merrill <jason@redhat.com>
855 * tree.c (cp_tree_equal): Fix CONSTRUCTOR handling.
857 * parser.c (cp_parser_init_declarator): Pass LOOKUP_NORMAL
860 2010-07-20 Jeffrey Yasskin <jyasskin@google.com>
863 * pt.c (instantiate_class_template): Propagate the template's
864 location to its instance.
866 2010-07-20 Jason Merrill <jason@redhat.com>
869 * pt.c (tsubst_copy_and_build): Rework last change.
872 * pt.c (tsubst_copy_and_build): Handle partial substitution of
875 2010-07-19 Jason Merrill <jason@redhat.com>
878 * semantics.c (finish_decltype_type): Correct decltype
879 of parenthesized rvalue reference variable.
882 * tree.c (cp_tree_equal): Compare type of *CAST_EXPR.
883 * pt.c (iterative_hash_template_arg): Hash type of *CAST_EXPR.
885 2010-07-19 Paolo Carlini <paolo.carlini@oracle.com>
888 * typeck.c (build_x_compound_expr_from_list): Add tsubst_flags_t
890 * cp-tree.h: Adjust declaration.
891 * init.c (perform_member_init): Adjust caller.
892 * decl.c (grok_reference_init, cp_finish_decl): Likewise.
893 * typeck2.c (store_init_value): Likewise.
894 (build_functional_cast): Pass complain argument to
895 build_x_compound_expr_from_list.
897 2010-07-16 Jason Merrill <jason@redhat.com>
900 * pt.c (process_partial_specialization): Diagnose partial
901 specialization after instantiation.
902 (most_specialized_class): Add complain parm.
904 * ptree.c (cxx_print_xnode): Handle TEMPLATE_INFO.
906 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
908 * init.c (build_new_1): Use cp_build_function_call_nary instead of
909 cp_build_function_call.
911 2010-07-15 Jason Merrill <jason@redhat.com>
914 * call.c (add_function_candidate): If we're working on an implicit
915 declaration, don't consider candidates that won't match.
916 * typeck.c (same_type_ignoring_top_level_qualifiers_p): Now a fn.
917 * cp-tree.h (same_type_ignoring_top_level_qualifiers_p): Adjust.
920 * cp-tree.h (struct lang_type_class): Add has_user_opeq.
921 (TYPE_HAS_USER_OPEQ): New.
922 * decl.c (grok_special_member_properties): Set it.
923 * class.c (add_implicitly_declared_members): Don't lazily declare
924 constructors/operator= if a base or member has a user-declared one.
925 (check_bases_and_members, check_bases): Adjust.
926 (check_field_decls, check_field_decl): Adjust.
928 2010-07-15 Anatoly Sokolov <aesok@post.ru>
930 * decl.c (integer_three_node): Remove.
931 (cxx_init_decl_processing): Do not initialize the integer_three_node.
932 * cp-tree.h (integer_three_node): Remove.
934 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
936 * cp-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN.
939 * cp-gimplify.c: Likewise.
943 * mangle.c: Likewise.
944 * name-lookup.c: Likewise.
945 * optimize.c: Likewise.
946 * parser.c: Likewise.
949 * search.c: Likewise.
950 * semantics.c: Likewise.
951 * typeck.c: Likewise.
952 * typeck2.c: Likewise.
954 2010-07-14 Jason Merrill <jason@redhat.com>
956 * init.c (sort_mem_initializers): Rename "field_type" to "ctx".
957 (build_field_list): Cache field type.
959 Implement C++0x unrestricted unions (N2544)
960 * class.c (check_field_decl): Loosen union handling in C++0x.
961 * method.c (walk_field_subobs): Split out from...
962 (synthesized_method_walk): ...here. Set msg before loops.
963 (process_subob_fn): Check for triviality in union members.
964 * init.c (sort_mem_initializers): Splice out uninitialized
965 anonymous unions and union members.
966 (push_base_cleanups): Don't automatically destroy anonymous unions
969 2010-07-13 Jason Merrill <jason@redhat.com>
972 * cp-tree.h (struct lang_type_class): Add has_user_opeq.
973 (TYPE_HAS_USER_OPEQ): New.
974 * decl.c (grok_special_member_properties): Set it.
975 * class.c (add_implicitly_declared_members): Don't lazily declare
976 constructors/operator= if a base or member has a user-declared one.
977 (check_bases_and_members, check_bases): Adjust.
978 (check_field_decls, check_field_decl): Adjust.
979 * method.c (synthesized_method_walk): Initialize check_vdtor.
982 * mangle.c (write_type): Canonicalize.
983 (canonicalize_for_substitution): Retain cv-quals on FUNCTION_TYPE.
984 (write_CV_qualifiers_for_type): Ignore them in abi>=5.
986 2010-07-13 Paolo Carlini <paolo.carlini@oracle.com>
989 * call.c (convert_like_real): Adjust convert_ptrmem call, pass
991 * typeck.c (get_delta_difference): Update prototype, add a
992 tsubst_flags_t parameter; update get_delta_difference_1 calls and
993 add checks for error_mark_node.
994 (get_delta_difference_1): Update prototype, add a tsubst_flags_t
995 parameter; update lookup_base call.
996 (build_ptrmemfunc): Update prototype, add a tsubst_flags_t
997 parameter; update get_delta_difference call and add check for
999 (convert_ptrmem): Update prototype, add a tsubst_flags_t
1000 parameter; update get_delta_difference call and add check for
1001 error_mark_node; update build_ptrmemfunc call.
1002 (build_static_cast_1): Adjust convert_ptrmem call.
1003 (expand_ptrmemfunc_cst): Adjust get_delta_difference call.
1004 (cp_build_unary_op): Adjust build_ptrmemfunc call.
1005 * cvt.c (cp_convert_to_pointer, convert_force): Adjust convert_ptrmem
1006 and build_ptrmemfunc calls.
1007 * cp-tree.h: Update build_ptrmemfunc and convert_ptrmem prototypes.
1009 2010-07-12 Paolo Carlini <paolo.carlini@oracle.com>
1012 * call.c (build_temp): Add tsubst_flags_t complain parameter;
1013 adjust build_special_member_call call, pass complain.
1014 (convert_like_real): Adjust build_temp call, pass complain.
1016 2010-07-09 Jason Merrill <jason@redhat.com>
1019 * cp-tree.h (BV_LOST_PRIMARY): New macro.
1020 * class.c (update_vtable_entry_for_fn): Fix covariant thunk logic.
1021 Set BV_LOST_PRIMARY.
1022 (build_vtbl_initializer): Check BV_LOST_PRIMARY.
1024 2010-07-08 Jason Merrill <jason@redhat.com>
1027 * class.c (update_vtable_entry_for_fn): Fix handling of dummy
1028 virtual bases for covariant thunks.
1030 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1032 * cp-tree.h: Do not include toplev.h.
1034 2010-07-06 Jason Merrill <jason@redhat.com>
1037 * call.c (is_std_init_list): Look through typedefs.
1040 * init.c (build_offset_ref): If scope isn't dependent,
1041 don't exit early. Look at TYPE_MAIN_VARIANT.
1042 * pt.c (tsubst_copy) [OFFSET_REF]: Do substitution.
1044 * error.c (dump_function_decl): Don't crash on null DECL_NAME.
1046 2010-07-06 Shujing Zhao <pearly.zhao@oracle.com>
1048 * cp-tree.h (impl_conv_void): New type.
1049 (convert_to_void): Adjust prototype.
1050 * cvt.c (convert_to_void): Use impl_conv_void, emit and adjust the
1051 diagnostic for easy translation. Change caller.
1052 * typeck.c: Update call to convert_to_void.
1053 * semantics.c: Likewise.
1056 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1058 * decl.c (cp_finish_decl): Call add_local_decl.
1059 * optimize.c (clone_body): Adjust for new type of cfun->local_decls.
1061 2010-07-05 Paolo Carlini <paolo.carlini@oracle.com>
1063 * pt.c (tsubst): Early declare code = TREE_CODE (t) and use it
1066 2010-07-05 Shujing Zhao <pearly.zhao@oracle.com>
1069 * parser.c (cp_parser_primary_expression): Error if local template is
1072 2010-07-02 Le-Chun Wu <lcwu@google.com>
1075 * name-lookup.c (pushdecl_maybe_friend): Warn when a local decl
1076 (variable or type) shadows another type.
1078 2010-07-02 Jakub Jelinek <jakub@redhat.com>
1081 * typeck.c (convert_for_assignment): When converting a convertible
1082 vector type or objc++ types, call mark_rvalue_use.
1083 * typeck2.c (build_m_component_ref): Use return values from
1084 mark_rvalue_use or mark_lvalue_use.
1085 * class.c (build_base_path): Likewise.
1086 * call.c (build_conditional_expr): Likewise.
1088 2010-07-02 Paolo Carlini <paolo.carlini@oracle.com>
1091 * pt.c (tsubst_baselink): Return error_mark_node if lookup_fnfields
1094 2010-07-01 Richard Guenther <rguenther@suse.de>
1096 * cp-gimplify.c (cp_gimplify_expr): Open-code the rhs
1097 predicate we are looking for, allow non-gimplified
1100 2010-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1103 * typeck.c (cp_build_unary_op): Early return error_mark_node when
1104 arg is NULL_TREE too.
1105 * call.c (convert_class_to_reference): Return error_mark_node when
1108 2010-06-30 Michael Matz <matz@suse.de>
1110 * repo.c (finish_repo): Fix typo.
1112 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
1114 * parser.c (cp_parser_omp_for_loop): Use a VEC for for_block.
1116 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
1118 * repo.c (pending_repo): Change type to a VEC.
1119 (finish_repo): Adjust for new type of pending_repo.
1120 (repo_emit_p): Likewise.
1122 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1124 * tree.c: Include gimple.h. Do not include tree-flow.h
1125 * decl.c: Do not include tree-flow.h
1126 * Make-lang.in: Adjust dependencies.
1128 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1130 * decl.c (incomplete_var): Declare. Declare VECs containing them.
1131 (incomplete_vars): Adjust comment. Change type to a VEC.
1132 (maybe_register_incomplete_var): Adjust for new type.
1133 (complete_vars): Adjust iteration over incomplete_vars.
1135 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1137 * decl.c (struct named_label_entry): Change type of bad_decls field
1139 (poplevel_named_label_1): Adjust for new type of bad_decls.
1140 (check_goto): Likewise.
1142 2010-06-29 Jason Merrill <jason@redhat.com>
1144 Enable implicitly declared move constructor/operator= (N3053).
1145 * class.c (add_implicitly_declared_members): A class with no
1146 explicitly declared copy or move constructor gets both declared
1147 implicitly, and similarly for operator=.
1148 (check_bases): A type with no copy ctor does not inhibit
1149 a const copy ctor in a derived class. It does mean the derived
1151 (check_field_decl): Likewise.
1152 (check_bases_and_members): A nonexistent copy ctor/op= is non-trivial.
1153 * tree.c (type_has_nontrivial_copy_init): Adjust semantics.
1154 (trivially_copyable_p): Likewise.
1155 * call.c (convert_like_real): Use type_has_nontrivial_copy_init.
1156 * class.c (finish_struct_bits): Likewise.
1157 * tree.c (build_target_expr_with_type): Likewise.
1158 * typeck2.c (store_init_value): Likewise.
1160 Enable implicitly deleted functions (N2346)
1161 * class.c (check_bases_and_members): Adjust lambda flags.
1162 * method.c (implicitly_declare_fn): Set DECL_DELETED_FN if appropriate.
1164 * decl2.c (mark_used): Adjust error for use of deleted function.
1166 Machinery to support implicit delete/move.
1167 * cp-tree.h: (struct lang_type_class): Add lazy_move_assign,
1168 has_complex_move_ctor, has_complex_move_assign bitfields.
1169 (CLASSTYPE_LAZY_MOVE_ASSIGN): New.
1170 (TYPE_HAS_COMPLEX_MOVE_ASSIGN): New.
1171 (TYPE_HAS_COMPLEX_MOVE_CTOR): New.
1172 (enum special_function_kind): Add sfk_move_assignment.
1173 (LOOKUP_SPECULATIVE): New.
1174 * call.c (build_over_call): Return early if it's set.
1175 (build_over_call): Use trivial_fn_p.
1176 * class.c (check_bases): If the base has no default constructor,
1177 the derived one is non-trivial. Handle move ctor/op=.
1178 (check_field_decl): Likewise.
1179 (check_bases_and_members): Handle move ctor/op=.
1180 (add_implicitly_declared_members): Handle CLASSTYPE_LAZY_MOVE_ASSIGN.
1181 (type_has_move_constructor, type_has_move_assign): New.
1182 * decl.c (grok_special_member_properties): Handle move ctor/op=.
1183 * method.c (type_has_trivial_fn, type_set_nontrivial_flag): New.
1184 (trivial_fn_p): New.
1185 (do_build_copy_constructor): Use it.
1186 (do_build_assign_ref): Likewise. Handle move assignment.
1187 (build_stub_type, build_stub_object, locate_fn_flags): New.
1188 (locate_ctor): Use locate_fn_flags.
1189 (locate_copy, locate_dtor): Remove.
1190 (get_dtor, get_default_ctor, get_copy_ctor, get_copy_assign): New.
1191 (process_subob_fn, synthesized_method_walk): New.
1192 (maybe_explain_implicit_delete): New.
1193 (implicitly_declare_fn): Use synthesized_method_walk,
1194 type_has_trivial_fn, and type_set_nontrivial_flag.
1195 (defaulted_late_check): Set DECL_DELETED_FN.
1196 (defaultable_fn_check): Handle sfk_move_assignment.
1197 (lazily_declare_fn): Clear CLASSTYPE_LAZY_* early. Don't declare
1198 implicitly deleted move ctor/op=.
1199 * search.c (lookup_fnfields_1): Handle sfk_move_assignment.
1200 (lookup_fnfields_slot): New.
1201 * semantics.c (omp_clause_info_fndecl): Remove.
1202 (cxx_omp_create_clause_info): Use get_default_ctor, get_copy_ctor,
1203 get_copy_assign, trivial_fn_p.
1204 (trait_expr_value): Adjust call to locate_ctor.
1205 * tree.c (special_function_p): Handle sfk_move_assignment.
1207 * class.c (type_has_virtual_destructor): New.
1208 * cp-tree.h: Declare it.
1209 * semantics.c (trait_expr_value): Use it.
1211 * call.c (build_over_call): Only give warnings with tf_warning.
1213 * name-lookup.c (pop_scope): Handle NULL_TREE.
1215 * cp-tree.h (TYPE_HAS_ASSIGN_REF): Rename to TYPE_HAS_COPY_ASSIGN.
1216 (TYPE_HAS_CONST_ASSIGN_REF): Rename to TYPE_HAS_CONST_COPY_ASSIGN.
1217 (TYPE_HAS_INIT_REF): Rename to TYPE_HAS_COPY_CTOR.
1218 (TYPE_HAS_CONST_INIT_REF): Rename to TYPE_HAS_CONST_COPY_CTOR.
1219 (TYPE_HAS_COMPLEX_ASSIGN_REF): Rename to TYPE_HAS_COMPLEX_COPY_ASSIGN.
1220 (TYPE_HAS_COMPLEX_INIT_REF): Rename to TYPE_HAS_COMPLEX_COPY_CTOR.
1221 (TYPE_HAS_TRIVIAL_ASSIGN_REF): Rename to TYPE_HAS_TRIVIAL_COPY_ASSIGN.
1222 (TYPE_HAS_TRIVIAL_INIT_REF): Rename to TYPE_HAS_TRIVIAL_COPY_CTOR.
1223 (CLASSTYPE_LAZY_ASSIGNMENT_OP): Rename to CLASSTYPE_LAZY_COPY_ASSIGN.
1224 (sfk_assignment_operator): Rename to sfk_copy_assignment.
1225 * decl.c, call.c, class.c, init.c, method.c, pt.c, ptree.c: Adjust.
1226 * search.c, semantics.c, tree.c: Adjust.
1228 * pt.c (dependent_scope_ref_p): Remove.
1229 (value_dependent_expression_p): Don't call it.
1230 (type_dependent_expression_p): Here either.
1231 * init.c (build_offset_ref): Set TREE_TYPE on a qualified-id
1232 if the scope isn't dependent.
1234 * pt.c (convert_nontype_argument): Use mark_lvalue_use if we want
1238 * pt.c (has_value_dependent_address): New.
1239 (value_dependent_expression_p): Check it.
1240 (convert_nontype_argument): Likewise. Call decay_conversion before
1241 folding if we want a pointer.
1242 * semantics.c (finish_id_expression): Don't add SCOPE_REF if the
1243 scope is the current instantiation.
1245 2010-06-28 Jakub Jelinek <jakub@redhat.com>
1248 * class.c (build_base_path): If want_pointer, call mark_rvalue_use
1251 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1253 * init.c: Do not include except.h.
1256 * cp-lang.c: Likewise.
1258 * semantics.c: Likewise.
1259 * decl2.c: Likewise.
1260 * except.c: Likewise.
1261 (init_exception_processing): Do not set the removed
1262 lang_protect_cleanup_actions here.
1263 (cp_protect_cleanup_actions): Make non-static and remove prototype.
1264 (doing_eh): New, moved from except.c but removed the do_warning flag.
1265 (expand_start_catch_block): Update doing_eh call.
1266 (expand_end_catch_block): Likewise.
1267 (build_throw): Likewise.
1268 * cp-tree.h: Prototype cp_protect_cleanup_actions.
1269 * cp-objcp-common.h: Set LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS to
1270 cp_protect_cleanup_actions.
1271 * Make-lang.in: Update dependencies.
1273 2010-06-26 Jason Merrill <jason@redhat.com>
1275 * call.c (add_function_candidate): Set LOOKUP_COPY_PARM for any
1276 constructor called with a single argument that takes a reference
1277 to the constructor's class.
1278 (BAD_CONVERSION_RANK): New.
1279 (compare_ics): Use it to compare bad ICSes.
1281 2010-06-25 Joseph Myers <joseph@codesourcery.com>
1283 * lang-specs.h: Remove +e handling.
1285 2010-06-24 Andi Kleen <ak@linux.intel.com>
1287 * parser.c: (cp_parser_question_colon_clause):
1288 Switch to use cp_lexer_peek_token.
1289 Call warn_for_omitted_condop. Call pedwarn for omitted
1292 2010-06-22 Jakub Jelinek <jakub@redhat.com>
1295 * typeck2.c (build_m_component_ref): Call mark_lvalue_use on
1296 datum and mark_rvalue_use on component.
1299 * error.c (dump_expr): Don't look at CALL_EXPR_ARG (t, 0) if
1300 the CALL_EXPR has no arguments.
1302 2010-06-21 Jason Merrill <jason@redhat.com>
1304 * typeck.c (comp_except_specs): Fix ce_derived with noexcept.
1306 * semantics.c (check_trait_type): Check COMPLETE_TYPE_P for array
1309 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1311 * name-lookup.c (struct arg_lookup): Convert namespaces and
1312 classes fields to VEC.
1313 (arg_assoc_namespace): Adjust for new type of namespaces.
1314 (arg_assoc_class): Adjust for new type of classes.
1315 (lookup_arg_dependent): Use make_tree_vector and
1316 release_tree_vector.
1317 * typeck2.c (build_x_arrow): Use vec_member.
1319 2010-06-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1322 * error.c (dump_decl): Better wording for anonymous namespace.
1324 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1326 * class.c (build_vtbl_initializer): Adjust computation of new_position
1327 and which entry to add padding for.
1329 2010-06-16 Jason Merrill <jason@redhat.com>
1331 * except.c (check_noexcept_r): Return the problematic function.
1332 (finish_noexcept_expr): Give -Wnoexcept warning. Add complain parm.
1333 * pt.c (tsubst_copy_and_build): Pass it.
1334 * parser.c (cp_parser_unary_expression): Likewise.
1335 * cp-tree.h: Adjust prototype.
1337 * method.c (defaulted_late_check): Give the defaulted method
1338 the same exception specification as the implicit declaration.
1340 2010-06-15 Jason Merrill <jason@redhat.com>
1342 * class.c (add_implicitly_declared_members): Implicit assignment
1343 operators can also be virtual overriders.
1344 * method.c (lazily_declare_fn): Likewise.
1346 * call.c (convert_like_real): Give "initializing argument of"
1347 information for ambiguous conversion. Give source position
1350 * call.c (print_z_candidates): Do print viable deleted candidates.
1351 (joust): Don't choose a deleted function just because its worst
1352 conversion is better than another candidate's worst.
1354 * call.c (convert_like_real): Don't complain about
1355 list-value-initialization from an explicit constructor.
1357 * decl.c (duplicate_decls): Use DECL_IS_BUILTIN rather than test
1358 DECL_SOURCE_LOCATION directly.
1360 * class.c (type_has_user_provided_default_constructor): Use
1363 * call.c (is_subseq): Handle ck_aggr, ck_list.
1364 (compare_ics): Treat an aggregate or ambiguous conversion to the
1365 same type as involving the same function.
1367 2010-06-13 Shujing Zhao <pearly.zhao@oracle.com>
1369 * typeck.c (convert_for_assignment): Fix comment. Change message
1370 format from %d to %qP.
1371 (convert_for_initialization): Fix comment.
1373 2010-06-11 Shujing Zhao <pearly.zhao@oracle.com>
1375 * cp-tree.h (expr_list_kind): New type.
1376 (impl_conv_rhs): New type.
1377 (build_x_compound_expr_from_list, convert_for_initialization): Adjust
1379 (typeck.c (convert_arguments): Use impl_conv_rhs and emit the
1380 diagnostics for easy translation. Change caller.
1381 (convert_for_initialization): Use impl_conv_rhs and change caller.
1382 (build_x_compound_expr_from_list): Use expr_list_kind and emit the
1383 diagnostics for easy translation. Change caller.
1384 * decl.c (bad_spec_place): New enum.
1385 (bad_specifiers): Use it and emit the diagnostics for easy
1386 translation. Change caller.
1387 * pt.c (coerce_template_parms): Put the diagnostics in full sentence.
1389 2010-06-09 Nathan Froyd <froydnj@codesourcery.com>
1391 * cp-tree.h (struct saved_scope): Change decl_ns_list field type
1393 * decl2.c (cp_write_global_declarations): Adjust for new type of
1394 decl_namespace_list.
1395 * name-lookup.c (current_decl_namespace): Likewise.
1396 (push_decl_namespace): Likewise.
1397 (pop_decl_namespace): Likewise.
1399 2010-06-09 Nathan Froyd <froydnj@codesourcery.com>
1401 * call.c (build_java_interface_fn_ref): Call build_function_type_list
1402 instead of build_function_type.
1403 * decl.c (cxx_init_decl_processing): Likewise.
1404 (declare_global_var): Likewise.
1405 (get_atexit_node): Likewise.
1406 (expand_static_init): Likewise.
1407 * decl2.c (start_objects): Likewise.
1408 (start_static_storage_duration_function): Likewise.
1409 * except.c (init_exception_processing): Likewise.
1410 (build_exc_ptr): Likewise.
1411 (build_throw): Likewise.
1412 * rtti.c (throw_bad_cast): Likewise.
1413 (throw_bad_typeid): Likewise.
1414 (build_dynamic_cast_1): Likewise.
1416 2010-06-09 Nathan Froyd <froydnj@codesourcery.com>
1418 * call.c (build_call_n): Call XALLOCAVEC instead of alloca.
1419 (build_op_delete_call): Likewise.
1420 (build_over_call): Likewise.
1421 * cp-gimplify.c (cxx_omp_clause_apply_fn): Likewise.
1422 * pt.c (process_partial_specialization): Likewise.
1423 (tsubst_template_args): Likewise.
1424 * semantics.c (finish_asm_stmt): Likewise.
1426 2010-06-08 Nathan Sidwell <nathan@codesourcery.com>
1428 * decl.c (record_key_method_defined): New, broken out of ...
1429 (finish_function): ... here. Call it.
1430 (start_decl): Treat aliases as definitions.
1432 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1434 * typeck2.c (abstract_virtuals_error): Use typed GC allocation.
1436 * pt.c (maybe_process_partial_specialization): Likewise.
1437 (register_specialization): Likewise.
1438 (add_pending_template): Likewise.
1439 (lookup_template_class): Likewise.
1440 (push_tinst_level): Likewise.
1442 * parser.c (cp_lexer_new_main): Likewise.
1443 (cp_lexer_new_from_tokens): Likewise.
1444 (cp_token_cache_new): Likewise.
1445 (cp_parser_context_new): Likewise.
1446 (cp_parser_new): Likewise.
1447 (cp_parser_nested_name_specifier_opt): Likewise.
1448 (cp_parser_template_id): Likewise.
1450 * name-lookup.c (binding_entry_make): Likewise.
1451 (binding_table_construct): Likewise.
1452 (binding_table_new): Likewise.
1453 (cxx_binding_make): Likewise.
1454 (pushdecl_maybe_friend): Likewise.
1455 (begin_scope): Likewise.
1456 (push_to_top_level): Likewise.
1458 * lex.c (init_reswords): Likewise.
1459 (retrofit_lang_decl): Likewise.
1460 (cxx_dup_lang_specific_decl): Likewise.
1461 (copy_lang_type): Likewise.
1462 (cxx_make_type): Likewise.
1464 * decl.c (make_label_decl): Likewise.
1465 (check_goto): Likewise.
1466 (start_preparsed_function): Likewise.
1467 (save_function_data): Likewise.
1469 * cp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
1471 * cp-objcp-common.c (decl_shadowed_for_var_insert): Likewise.
1473 * class.c (finish_struct_1): Likewise.
1475 * cp-tree.h (struct lang_type): Add variable_size GTY option.
1476 (struct lang_decl): Likewise.
1478 * parser.c (cp_parser_new): Update comment to not reference
1481 2010-06-07 Jason Merrill <jason@redhat.com>
1484 * error.c (dump_parameters): Mask out TFF_SCOPE.
1485 (dump_simple_decl): Don't print the scope of a PARM_DECL.
1486 (dump_scope): Remove no-op mask.
1489 * parser.c (cp_parser_lookup_name): Fix naming the constructor.
1491 * cp-tree.h (COMPLETE_OR_OPEN_TYPE_P): New macro.
1492 * init.c (build_offset_ref): Use it.
1493 * pt.c (maybe_process_partial_specialization): Use it.
1494 (instantiate_class_template): Use it.
1495 * search.c (lookup_base): Use it.
1497 2010-06-07 Jakub Jelinek <jakub@redhat.com>
1500 * expr.c (mark_exp_read): Handle INDIRECT_REF.
1501 * cvt.c (convert_to_void): Handle INDIRECT_REF like
1502 handled_component_p.
1505 * decl.c (initialize_local_var): If TREE_USED is set on the type,
1506 set also DECL_READ_P on the decl.
1508 2010-05-25 Dodji Seketeli <dodji@redhat.com>
1511 * cp-tree.h (typedef_variant_p): Move this declaration to
1513 * tree.c (typedef_variant_p): Move this definition to gcc/tree.c.
1514 * decl.c (grokdeclarator): Do not rename debug info of an
1515 anonymous tagged type named by a typedef.
1517 2010-06-05 Fabien Chêne <fabien@gcc.gnu.org>
1520 * class.c (check_field_decls): Move the call to
1521 check_bitfield_decl before trying to set the
1522 CLASSTYPE_READONLY_FIELDS_NEED_INIT flag.
1524 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1526 * typeck.c: Update include path for moved files.
1529 * cp-gimplify.c: Likewise.
1530 * cp-lang.c: Likewise.
1532 * semantics.c: Likewise.
1533 * cxx-pretty-print.h: Likewise.
1534 * decl2.c: Likewise.
1535 * parser.c: Likewise.
1536 * cp-objcp-common.c: Likewise.
1537 * cp-tree.h: Likewise.
1538 * name-lookup.c: Likewise.
1540 * name-lookup.h: Likewise.
1541 * config-lang.in: Update paths in gtfiles for files in c-family/.
1542 * Make-lang.in: Likewise.
1544 2010-06-04 Magnus Fromreide <magfr@lysator.liu.se>
1546 * cvt.c (cp_convert_to_pointer): Use null_ptr_cst_p.
1547 * typeck.c (build_ptrmemfunc): Likewise.
1549 2010-06-04 Jason Merrill <jason@redhat.com>
1551 * typeck2.c (merge_exception_specifiers): Adjust merging of
1552 throw() and noexcept(true).
1554 * pt.c (value_dependent_expression_p) [NOEXCEPT_EXPR]: Avoid
1555 using an uninitialized variable.
1557 * cxx-pretty-print.c (pp_cxx_unary_expression): Handle NOEXCEPT_EXPR.
1558 (pp_cxx_expression): Likewise.
1560 Implement noexcept-specification (15.4)
1561 * parser.c (cp_parser_exception_specification_opt): Parse it.
1562 Give -Wdeprecated warning about throw() specs.
1563 * pt.c (tsubst_exception_specification): Handle it.
1564 * error.c (dump_exception_spec): Handle it.
1565 (dump_expr): Handle NOEXCEPT_EXPR.
1566 * cxx-pretty-print.c (pp_cxx_exception_specification): Likewise.
1567 * typeck.c (comp_except_specs): Handle compatibility rules.
1568 Change exact parm to take an enum.
1569 * typeck2.c (merge_exception_specifiers): Handle noexcept.
1570 * except.c (nothrow_spec_p, type_noexcept_p): New fns.
1571 (type_throw_all_p, build_noexcept_spec): New fns.
1572 * cp-tree.h (TYPE_NOTHROW_P, TYPE_NOEXCEPT_P): Use them.
1573 (comp_except_specs): Define ce_derived, ce_normal, ce_exact enums.
1574 (cp_tree_index): Add CPTI_NOEXCEPT_TRUE_SPEC, CPTI_NOEXCEPT_FALSE_SPEC.
1575 (noexcept_true_spec, noexcept_false_spec): New macros.
1576 * name-lookup.c (pushdecl_maybe_friend): Adjust.
1577 * search.c (check_final_overrider): Adjust.
1578 * decl.c (check_redeclaration_exception_specification): Adjust.
1579 (use_eh_spec_block): Use type_throw_all_p.
1580 (cxx_init_decl_processing): Set noexcept_false_spec,noexcept_true_spec.
1581 Give operator new a noexcept-specification in C++0x mode.
1582 * tree.c (build_exception_variant, cxx_type_hash_eq): Adjust.
1583 (cp_build_type_attribute_variant): Don't test TYPE_RAISES_EXCEPTIONS.
1585 Implement noexcept operator (5.3.7)
1586 * cp-tree.def (NOEXCEPT_EXPR): New.
1587 * except.c (check_noexcept_r, finish_noexcept_expr): New.
1588 * cp-tree.h: Declare finish_noexcept_expr.
1589 * parser.c (cp_parser_unary_expression): Parse noexcept-expression.
1590 * pt.c (tsubst_copy_and_build): And tsubst it.
1591 (type_dependent_expression_p): Handle it.
1592 (value_dependent_expression_p): Handle it.
1594 * call.c (build_conditional_expr): Never fold in unevaluated context.
1595 * tree.c (build_aggr_init_expr): Propagate TREE_NOTHROW.
1596 * semantics.c (simplify_aggr_init_expr): Likewise.
1597 * typeck.c (merge_types): Call merge_exception_specifiers.
1598 * decl.c (duplicate_decls): Check DECL_SOURCE_LOCATION rather than
1599 DECL_ANTICIPATED for preferring new type.
1601 2010-06-04 Joseph Myers <joseph@codesourcery.com>
1603 * g++spec.c (lang_specific_driver): Use GCC-specific formats in
1606 2010-06-04 Jakub Jelinek <jakub@redhat.com>
1609 * typeck.c (build_class_member_access_expr): Call mark_exp_read
1610 on object for static data members.
1612 2010-06-04 Jakub Jelinek <jakub@redhat.com>
1613 Jason Merrill <jason@redhat.com>
1616 * call.c (build_conditional_expr): If both arg2 and arg3 are lvalues
1617 with the same type, call mark_lvalue_use on both.
1619 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
1621 * class.c (struct vtbl_init_data_s): Remove last_init field.
1622 (struct secondary_vptr_vtt_init_data_s): Change type of inits field
1624 (finish_vtbls): Use a VEC rather than a TREE_LIST for the accumulated
1626 (build_vtt): Likewise.
1627 (initialize_vtable): Take a VEC instead of a tree.
1628 (build_vtt_inits): Change return type to void. Take a VEC **
1629 instead of a tree *; accumulate results into said VEC.
1630 (build_ctor_vtbl_group): Use a VEC rather than a TREE_LIST for the
1631 accumulated initializers. Pass the vtable to accumulate_vtbl_inits.
1632 (accumulate_vtbl_inits): Add extra vtable tree parameter; take a VEC
1634 (dfs_accumulate_vtbl_inits): Likewise. Change return type to void.
1635 (build_vtbl_initializer): Add VEC parameter; accumulate initializers
1637 (dfs_build_secondary_vptr_vtt_inits): Use CONSTRUCTOR_APPEND_ELT
1638 rather than tree_cons.
1639 (build_vbase_offset_vtbl_entries): Likewise.
1640 (add_vcall_offset): Likewise.
1641 (build_rtti_vtbl_entries): Likewise.
1642 * cp-tree.h (initialize_artificial_var): Take a VEC instead of a tree.
1643 * decl.c (initialize_artificial_var): Use build_constructor instead
1644 of build_constructor_from_list.
1646 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
1649 * class.c (layout_class_type): Check MAX_FIXED_MODE_SIZE on
1652 2010-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1654 * parser.c (cp_parser_mem_initializer_list): Change error text.
1656 2010-06-02 Jakub Jelinek <jakub@redhat.com>
1658 * cp-objcp-common.c (shadowed_var_for_decl): Change into
1659 tree_decl_map hashtab from tree_map.
1660 (decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Adjust.
1661 (init_shadowed_var_for_decl): Adjust initialization.
1664 * cvt.c (convert_to_void): If implicit is NULL, call mark_rvalue_use
1665 instead of calling mark_exp_read only when not an assignment.
1668 * semantics.c (finalize_nrv): Don't copy DECL_ARTIFICIAL, DECL_IGNORED_P,
1669 DECL_SOURCE_LOCATION and DECL_ABSTRACT_ORIGIN from var to result.
1670 Set DECL_VALUE_EXPR on var.
1672 2010-06-02 Jason Merrill <jason@redhat.com>
1674 * error.c (dump_type): Improve typedef handling.
1679 * name-lookup.c (same_entity_p): New.
1680 (ambiguous_decl): Multiple declarations of the same entity
1683 2010-06-01 Jason Merrill <jason@redhat.com>
1686 * call.c (add_list_candidates): Prefer the default constructor.
1687 (build_aggr_conv): Treat missing initializers like { }.
1688 * typeck2.c (process_init_constructor_record): Likewise.
1689 * init.c (expand_default_init): Use digest_init for
1690 direct aggregate initialization, too.
1692 * call.c (add_list_candidates): Split out...
1693 (build_user_type_conversion_1): ...from here.
1694 (build_new_method_call): And here.
1695 (implicit_conversion): Propagate LOOKUP_NO_NARROWING.
1698 * call.c (build_list_conv): Set list-initialization flags properly.
1700 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
1702 * typeck2.c (build_x_arrow): Make types_memoized a VEC.
1704 2010-06-01 Arnaud Charlet <charlet@adacore.com>
1705 Matthew Gingell <gingell@adacore.com>
1707 * Make-lang.in (CXX_C_OBJS): Add c-ada-spec.o.
1708 * decl2.c: Include langhooks.h and c-ada-spec.h.
1709 (cpp_check, collect_source_refs, collect_ada_namespace,
1710 collect_all_refs): New functions.
1711 (cp_write_global_declarations): Add handling of -fdump-ada-spec.
1712 * lang-specs.h: Ditto.
1714 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
1716 * cp-tree.h (cp_build_function_call_nary): Declare.
1717 * typeck.c (cp_build_function_call_nary): Define.
1718 * decl.c (register_dtor_fn): Use it instead of
1719 cp_build_function_call.
1720 (cxx_maybe_build_cleanup): Likewise.
1721 * decl2.c (generate_ctor_or_dtor_function): Likewise.
1722 * except.c (do_get_exception_ptr): Likewise.
1723 (do_begin_catch): Likewise.
1724 (do_allocate_exception): Likewise.
1725 (do_free_exception): Likewise.
1726 (build_throw): Likewise. Use cp_build_function_call_vec instead
1727 of cp_build_function_call.
1728 (do_end_catch): Likewise.
1730 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
1732 * cp-tree.h (struct cp_decl_specifier_seq): Move type_location field up.
1733 (struct cp_declarator): Move id_loc field up.
1735 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
1737 * cp-tree.h (ATTRIBUTE_GCC_CXXDIAG): Remove. Require that
1738 this file is included before c-common.h. Define GCC_DIAG_STYLE
1739 before including diagnostic-core.h and toplev.h.
1740 (pedwarn_cxx98): Use ATTRIBUTE_GCC_DIAG.
1741 * pt.c: Include cp-tree.h before c-common.h.
1743 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
1745 * tree.c (c_register_addr_space): Add stub.
1747 2010-05-28 Joseph Myers <joseph@codesourcery.com>
1749 * g++spec.c (lang_specific_driver): Use fatal_error instead of
1752 2010-05-28 Dodji Seketeli <dodji@redhat.com>
1754 Revert fix of PR c++/44188
1755 * cp-tree.h (typedef_variant_p): Revert moving this declaration to
1757 * tree.c (typedef_variant_p): Revert moving this definition to
1759 * decl.c (grokdeclarator): Revert naming typedef handling.
1761 2010-05-27 Joseph Myers <joseph@codesourcery.com>
1763 * call.c: Include diagnostic-core.h instead of diagnostic.h.
1764 * cp-lang.c: Don't include diagnostic.h
1765 * name-lookup.c: Include diagnostic-core.h instead of
1767 (cp_emit_debug_info_for_using): Use seen_error.
1768 * optimize.c: Include diagnostic-core.h instead of diagnostic.h.
1769 * parser.c: Include diagnostic-core.h instead of diagnostic.h.
1770 * pt.c (iterative_hash_template_arg): Use seen_error.
1771 * repo.c: Include diagnostic-core.h instead of diagnostic.h.
1772 * typeck2.c: Include diagnostic-core.h instead of diagnostic.h.
1773 * Make-lang.in (cp/cp-lang.o, cp/typeck2.o, cp/call.o, cp/repo.o,
1774 cp/optimize.o, cp/parser.o, cp/name-lookup.o): Update
1777 2010-05-25 Dodji Seketeli <dodji@redhat.com>
1780 * cp-tree.h (typedef_variant_p): Move this declaration to
1782 * tree.c (typedef_variant_p): Move this definition to gcc/tree.c.
1783 * decl.c (grokdeclarator): Do not rename debug info of an
1784 anonymous tagged type named by a typedef.
1786 2010-05-27 Jason Merrill <jason@redhat.com>
1789 * decl.c (grokdeclarator) [cdk_pointer et al]: Force evaluation of
1792 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
1795 * rtti.c (emit_support_tinfos): Check for NULL_TREE.
1796 * class.c (layout_class_type): Likewise.
1797 * decl.c (finish_enum): Likewise.
1798 * mangle.c (write_builitin_type): Likewise.
1800 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
1802 * cp-tree.h (cp_decl_specifier_seq): Add new bifield
1804 * decl.c (grokdeclarator): Handle __int128.
1805 * parser.c (cp_lexer_next_token_is_decl_specifier_ke): Likewise.
1806 (cp_parser_simple_type_specifier): Likewise.
1807 * rtti.c (emit_support_tinfos): Add int128 nodes for rtti.
1808 * typeck.c (cp_common_type): Handle __int128.
1809 * mangle.c (integer_type_codes): Add itk_int128 and
1810 itk_unsigned_int128.
1812 2010-05-26 Jason Merrill <jason@redhat.com>
1815 * pt.c (tsubst_pack_expansion): Don't get confused by recursive
1818 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1820 * cp-lang.c: Do not include expr.h.
1822 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1824 * decl.c: Do not include rtl.h
1825 * semantics.c: Likewise.
1827 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1829 * cp-tree.h: Do not include splay-tree.h.
1830 (struct prtmem_cst): Remove unused field and false comment.
1831 * typeck.c: Do not include rtl.h, expr.h, and tm_p.h.
1832 * optimize.c: Do not inclde rtl.h, insn-config.h, and integrate.h.
1833 * init.c: Do not include rtl.h and expr.h.
1834 * class.c: Do not include rtl.h. Include splay-tree.h.
1835 (build_clone): Use plain NULL instead of NULL_RTX.
1836 * decl.c: Do not include expr.h. Explain why rtl.h has to be
1837 included. Include splay-tree.h.
1838 * method.c: Do not include rtl.h and expr.h.
1839 (use_thunk): Use plain NULL instead of NULL_RTX.
1840 * except.c: Do not include rtl.h, expr.h, and libfuncs.h.
1841 * tree.c: Do not include rtl.h, insn-config.h, integrate.h,
1842 and target.h. Include splay-tree.h.
1843 * expr.c: Do not include rtl.h and expr.h.
1844 * pt.c: Do not include obstack.h and rtl.h.
1845 (tsubst_friend_function): Use plain NULL instead of NULL_RTX.
1846 (tsubst_decl): Likewise.
1847 (instantiate_decl): Likewise.
1848 * semantics.c: Do not include exprt.h and debug.h. Explain why
1849 rtl.h has to be included.
1850 * decl2.c: Do not include rtl.h and expr.h. Include splay-tree.h.
1851 * call.c: Do not include rtl.h and expr.h.
1852 * search.c: Do not include obstack.h and rtl.h.
1853 * friend.c: Do not include rtl.h and expr.h.
1854 * Make-lang.in: Update dependencies.
1856 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1859 * parser.c (non_integral_constant): Add NIC_NONE.
1860 (required_token): Add RT_NONE.
1861 (cp_parser_unary_expression): Initialize non_constant_p
1863 (cp_parser_asm_definition): Initialize missing to RT_NONE.
1864 (cp_parser_primary_expression, cp_parser_postfix_expression,
1865 cp_parser_cast_expression, cp_parser_binary_expression,
1866 cp_parser_functional_cast): Fix formatting.
1868 2010-05-25 Shujing Zhao <pearly.zhao@oracle.com>
1871 * parser.c: Remove inclusion of dyn-string.h.
1872 (non_integral_constant): New enum.
1873 (name_lookup_error): New enum.
1874 (required_token): New enum.
1875 (cp_parser_required_error): New function.
1876 (cp_parser_require): Change the type of variable token_desc to
1877 required_token and use cp_parser_required_error.
1878 (cp_parser_require_keyword): Likewise.
1879 (cp_parser_error): Use gmsgid as parameter.
1880 (cp_parser_name_lookup_error): Change the type of variable desired to
1881 name_lookup_error and put the diagnostic in the full sentences. Change
1883 (cp_parser_non_integral_constant_expression): Change the type of the
1884 variable thing to non_integral_constant and put the diagnostics in
1885 full sentences. Change caller.
1887 2010-05-24 Eric Botcazou <ebotcazou@adacore.com>
1890 * typeck.c (cp_build_unary_op): Fold offsetof-like computations.
1892 2010-05-24 Joseph Myers <joseph@codesourcery.com>
1894 * error.c (cp_diagnostic_starter): Update call to
1895 diagnostic_build_prefix.
1896 (cp_print_error_function,
1897 print_instantiation_partial_context_line): Check show_column flag
1900 2010-05-24 Jason Merrill <jason@redhat.com>
1903 * decl.c (check_initializer): Don't wrap an init-list in a
1905 * init.c (build_aggr_init): Don't assume copy-initialization if
1906 init has CONSTRUCTOR_IS_DIRECT_INIT.
1907 * call.c (build_new_method_call): Sanity check.
1909 2010-05-24 Nathan Froyd <froydnj@codesourcery.com>
1911 * rtti.c (tinfo_base_init): Use build_constructor instead of
1912 build_constructor_from_list. Don't cons a tree node for
1914 (generic_initializer): Use build_constructor_single instead of
1915 build_constructor_from_list.
1916 (ptr_initializer): Use build_constructor instead of
1917 build_constructor_from_list
1918 (ptm_initializer): Likewise.
1919 (class_initializer): Likewise. Take varargs instead of TRAIL.
1920 (get_pseudo_ti_init): Adjust calls to class_initializer. Use
1921 build_constructor instead of build_constructor_from_list.
1923 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1925 * semantics.c: Include bitmap.h.
1926 * Make-lang.in: Update dependencies.
1928 2010-05-22 Jan Hubicka <jh@suse.cz>
1930 * decl2.c (maybe_emit_vtables): Produce same comdat group when outputting
1932 (cxx_callgraph_analyze_expr): Remove code marking vtables needed.
1934 2010-05-21 Joseph Myers <joseph@codesourcery.com>
1936 * cxx-pretty-print.c: Correct merge error.
1938 2010-05-21 Joseph Myers <joseph@codesourcery.com>
1940 * error.c: Include tree-diagnostic.h and tree-pretty-print.h.
1941 (cp_print_error_function): Use diagnostic_abstract_origin macro.
1942 (cp_printer): Handle %K here using percent_K_format.
1943 * cxx-pretty-print.c: Include tree-pretty-print.h.
1944 * Make-lang.in (cp/error.o, cp/cxx-pretty-print.o): Update
1947 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1949 * error.c, tree.c, typeck2.c, cxx-pretty-print.c, mangle.c:
1950 Clean up redundant includes.
1952 2010-05-20 Paolo Carlini <paolo.carlini@oracle.com>
1955 * decl.c (xref_basetypes): Return false in case of ill-formed
1958 2010-05-19 Jason Merrill <jason@redhat.com>
1960 * call.c (reference_binding): Use cp_build_qualified_type_real
1961 and cp_type_quals consistently.
1962 (add_function_candidate): Likewise.
1963 (build_conditional_expr): Likewise.
1964 (convert_like_real): Likewise.
1965 (type_passed_as): Likewise.
1966 * class.c (add_method): Likewise.
1967 (same_signature_p): Likewise.
1968 (layout_class_type): Likewise.
1969 * decl.c (cxx_init_decl_processing): Likewise.
1970 (cp_fname_init): Likewise.
1971 (grokdeclarator): Likewise.
1972 * decl2.c (cp_reconstruct_complex_type): Likewise.
1973 * init.c (build_new_1): Likewise.
1974 * method.c (do_build_copy_constructor): Likewise.
1975 (implicitly_declare_fn): Likewise.
1976 * pt.c (tsubst_aggr_type): Likewise.
1978 * rtti.c (init_rtti_processing): Likewise.
1979 (build_headof): Likewise.
1980 (build_dynamic_cast_1): Likewise.
1981 (tinfo_base_init): Likewise.
1982 (emit_support_tinfos): Likewise.
1983 * semantics.c (capture_decltype): Likewise.
1984 * tree.c (cv_unqualified): Likewise.
1985 * typeck.c (composite_pointer_type): Likewise.
1986 (string_conv_p): Likewise.
1988 * mangle.c (write_CV_qualifiers_for_type): Tweak.
1990 * call.c (initialize_reference): Use CP_TYPE_CONST_P.
1991 * decl.c (start_decl): Likewise.
1992 * semantics.c (finish_compound_literal): Likewise.
1993 * typeck.c (check_return_expr): Use CP_TYPE_VOLATILE_P.
1994 (cp_type_readonly): Remove.
1995 * cp-tree.h: Remove declaration.
1997 * typeck.c (merge_types): Preserve memfn quals.
1999 * decl.c (grokdeclarator): Don't check quals on fn type.
2000 * typeck.c (cp_apply_type_quals_to_decl): Likewise.
2001 * tree.c (cp_build_qualified_type_real): Simplify qualifier checking.
2004 * typeck.c (type_memfn_quals): New fn.
2005 (apply_memfn_quals): New fn.
2006 (cp_type_quals): Return TYPE_UNQUALIFIED for FUNCTION_TYPE.
2007 (cp_type_readonly): Use cp_type_quals.
2008 * cp-tree.h: Add declarations.
2009 * tree.c (cp_build_qualified_type_real): Don't set, but do
2010 preserve, quals on FUNCTION_TYPE.
2011 (strip_typedefs): Use apply_memfn_quals and type_memfn_quals.
2012 * decl.c (build_ptrmem_type): Likewise.
2013 (grokdeclarator): Likewise.
2014 (static_fn_type): Likewise.
2015 * decl2.c (change_return_type): Likewise.
2016 (cp_reconstruct_complex_type): Likewise.
2017 * pt.c (tsubst_function_type): Likewise.
2019 (tsubst): Likewise. Drop special FUNCTION_TYPE substitution code.
2021 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2023 * tree.c (build_min_non_dep_call_vec): Update comment.
2025 2010-05-17 Jason Merrill <jason@redhat.com>
2027 * call.c (struct z_candidate): Add explicit_targs field.
2028 (add_template_candidate_real): Set it.
2029 (build_over_call): Use it to control init-list warning.
2032 * call.c (build_over_call): Limit init-list deduction warning to
2033 cases where the argument is actually an init-list.
2036 * call.c (build_over_call): Don't do bitwise copy for move ctor.
2038 2010-05-17 Dodji Seketeli <dodji@redhat.com>
2039 Jason Merrill <jason@redhat.com>
2042 * decl.c (compute_array_index_type): Call mark_rvalue_use.
2044 2010-05-15 Jason Merrill <jason@redhat.com>
2046 * cp-tree.h (TYPE_NOEXCEPT_P): New macro.
2047 * except.c (begin_eh_spec_block): Use MUST_NOT_THROW_EXPR if
2049 (finish_eh_spec_block): Adjust.
2051 2010-05-15 Jakub Jelinek <jakub@redhat.com>
2054 * pt.c (tsubst): Unshare template argument.
2056 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
2058 * decl.c: Include tree-iterator.h, as fixup for tree-inline.h changes.
2059 * Make-lang.in: Fix dependencies accordingly.
2061 2010-05-14 Jason Merrill <jason@redhat.com>
2064 * except.c (build_throw): Simplify, adjust for DR 475.
2067 * except.c (dtor_nothrow): Return nonzero for type with
2071 * cp-gimplify.c (gimplify_must_not_throw_expr): Use
2072 gimple_build_eh_must_not_throw.
2074 2010-05-14 Martin Jambor <mjambor@suse.cz>
2076 * cp-lang.c (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove both its undef
2079 2010-05-14 Jonathan Wakely <jwakely.gcc@gmail.com>
2081 * call.c (build_new_method_call): Change warning text.
2082 * typeck2.c (build_functional_cast): Change error text.
2084 2010-05-14 Shujing Zhao <pearly.zhao@oracle.com>
2087 * name-lookup.c (pushdecl_maybe_friend): Avoid the warnings about
2088 shadowing the outer parameter or variables by the declaration of
2089 nested function in nested structure or class. Warn the shadowing by
2090 the declaration of nested lambda expression.
2092 2010-05-13 Jason Merrill <jason@redhat.com>
2094 * typeck.c (cp_build_array_ref): Factor out from...
2095 (build_array_ref): ...here. Drop complain parm.
2096 (build_new_op): Adjust.
2097 * class.c (build_vtbl_ref_1): Adjust.
2098 * decl2.c (grok_array_decl): Adjust.
2099 * cp-tree.h: Adjust prototypes.
2101 2010-05-13 Jan Hubicka <jh@suse.cz>
2103 * decl.c (cp_finish_decl): Do not worry about used attribute.
2105 2010-05-12 Jason Merrill <jason@redhat.com>
2107 * typeck.c (build_array_ref): Take complain parm.
2108 * cp-tree.h: Add it to prototype.
2109 * call.c (build_new_op): Pass it.
2110 * class.c (build_vtbl_ref): Pass it.
2111 * decl2.c (grok_array_decl): Pass it.
2115 * cp-tree.def (NULLPTR_TYPE): Remove.
2116 * cp-tree.h (NULLPTR_TYPE_P): New.
2117 (SCALAR_TYPE_P): Use it.
2118 (nullptr_type_node): New.
2119 (cp_tree_index): Add CPTI_NULLPTR_TYPE.
2120 * decl.c (cxx_init_decl_processing): Call record_builtin_type on
2122 * cvt.c (ocp_convert): Use NULLPTR_TYPE_P instead of NULLPTR_TYPE.
2123 * cxx-pretty-print.c (pp_cxx_constant): Likewise.
2124 * error.c (dump_type, dump_type_prefix, dump_type_suffix): Likewise.
2125 * mangle.c (write_type): Likewise.
2126 * name-lookup.c (arg_assoc_type): Likewise.
2127 * typeck.c (build_reinterpret_cast_1): Likewise.
2128 * rtti.c (typeinfo_in_lib_p): Likewise.
2129 (emit_support_tinfos): Remove local nullptr_type_node.
2131 * cp-tree.h (UNKNOWN_TYPE): Remove.
2132 * decl.c (cxx_init_decl_processing): Use LANG_TYPE instead.
2133 * error.c (dumy_type, dump_type_prefix, dump_type_suffix): Likewise.
2134 * typeck2.c (cxx_incomplete_type_diagnostic): Likewise.
2135 * class.c (instantiate_type): Check unknown_type_node rather than
2137 * name-lookup.c (maybe_push_decl): Likewise.
2138 * rtti.c (get_tinfo_decl_dynamic): Likewise.
2139 (get_typeid): Likewise.
2140 * semantics.c (finish_offsetof): Likewise.
2143 * call.c (add_template_candidate_real): If deduction fails, still
2144 add the template as a non-viable candidate.
2145 (equal_functions): Handle template candidates.
2146 (print_z_candidate): Likewise.
2147 (print_z_candidates): Likewise.
2148 (build_new_function_call): Likewise.
2150 * cp-tree.h (LOOKUP_LIST_ONLY): New.
2151 * call.c (add_candidates): Enforce it.
2152 (build_new_method_call): Try non-list ctor if no viable list ctor.
2153 (build_user_type_conversion_1): Likewise.
2155 * call.c (add_candidates): Distinguish between type(x) and
2157 (convert_class_to_reference): Set LOOKUP_NO_CONVERSION.
2158 (build_new_method_call): Give better error for conversion op.
2160 * call.c (add_candidates): Add first_arg and return_type parms.
2161 Add special constructor/conversion op handling.
2162 (convert_class_to_reference): Use it.
2163 (build_user_type_conversion_1): Likewise.
2164 (build_op_call): Likewise.
2165 (build_new_method_call): Likewise.
2166 (build_new_op): Adjust.
2167 (perform_overload_resolution): Adjust.
2169 2010-05-11 Paolo Carlini <paolo.carlini@oracle.com>
2174 * pt.c (process_partial_specialization): Return error_mark_node
2175 in case of unused template parameters in partial specialization.
2177 2010-05-11 Jakub Jelinek <jakub@redhat.com>
2180 * semantics.c (finish_expr_stmt): Don't call mark_exp_read here...
2181 * cvt.c (convert_to_void): ... but here. If expr is a COMPOUND_EXPR,
2182 look at its second operand.
2184 2010-05-10 Jason Merrill <jason@redhat.com>
2187 * semantics.c (baselink_for_fns): Revert earlier change.
2190 * typeck.c (cp_build_modify_expr): Complain about assignment to
2191 array from init list.
2193 2010-05-10 Fabien Chêne <fabien.chene@gmail.com>
2196 * decl.c (check_initializer): strip array type before checking for
2197 uninitialized const or ref members.
2199 2010-05-07 Fabien Chêne <fabien.chene@gmail.com>
2202 * init.c (diagnose_uninitialized_cst_or_ref_member_1): Returns the
2203 error count. Emit errors only if compain is true.
2204 (build_new_1): Do not return error_mark_node if
2205 diagnose_uninitialized_cst_or_ref_member_1 does not diagnose any
2206 errors. Delay the check for user-provided constructor.
2207 (perform_member_init): Adjust.
2208 * cp-tree.h (diagnose_uninitialized_cst_or_ref_member): Change the
2211 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
2212 Jason Merrill <jason@redhat.com>
2214 Add support for C++0x nullptr.
2215 * cp-tree.def: Add NULLPTR_TYPE.
2216 * cp-tree.h: Add nullptr_node.
2217 (cp_tree_index): Add CPTI_NULLPTR.
2218 (SCALAR_TYPE_P): Add NULLPTR_TYPE.
2219 * call.c (null_ptr_cst_p): Handle nullptr.
2220 (standard_conversion): Likewise.
2221 (convert_arg_to_ellipsis): Likewise.
2222 * mangle.c (write_type): Likewise.
2223 * name-lookup.c (arg_assoc_type): Likewise.
2224 * parser.c (cp_parser_primary_expression): Likewise.
2225 * typeck.c (cp_build_binary_op): Likewise.
2226 (build_reinterpret_cast_1): Likewise.
2227 * error.c (dump_type): Likewise.
2228 (dump_type_prefix, dump_type_suffix): Likewise.
2229 * decl.c (cxx_init_decl_processing): Likewise.
2230 * cxx-pretty-print.c (pp_cxx_constant): Likewise.
2231 * cvt.c (ocp_convert): Likewise.
2232 * rtti.c (typeinfo_in_lib_p, emit_support_tinfos): Put
2233 nullptr_t tinfo in libsupc++.
2235 2010-05-06 Jason Merrill <jason@redhat.com>
2237 * semantics.c (simplify_aggr_init_expr): Use INIT_EXPR.
2239 2010-04-22 Jakub Jelinek <jakub@redhat.com>
2240 Dodji Seketeli <dodji@redhat.com>
2243 * cp-tree.h (mark_exp_read, rvalue_use, lvalue_use, type_use):
2245 * expr.c (mark_exp_read, rvalue_use, lvalue_use, type_use): ... new fns.
2246 * typeck.c (cxx_sizeof_expr, cxx_alignof_expr): Call type_use.
2247 (decay_conversion, perform_integral_promotions): Call rvalue_use.
2248 (cp_build_unary_op): Call lvalue_use.
2249 * decl.c (unused_but_set_errorcount): New variable.
2250 (poplevel): Issue -Wunused-but-set-variable diagnostics.
2251 (duplicate_decls): Merge DECL_READ_P flags.
2252 (start_cleanup_fn): Set DECL_READ_P flag.
2253 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
2254 * tree.c (rvalue): Call rvalue_use.
2255 * pt.c (convert_nontype_argument): Likewise.
2256 * semantics.c (finish_expr_stmt, finish_asm_stmt, finish_typeof,
2257 finish_decltype_type): Likewise.
2258 * call.c (convert_like_real) <ck_identity, ck_user>: Call rvalue use.
2259 (build_x_va_arg, build_new_method_call, build_over_call): Call lvalue_use
2260 or rvalue_use depending on the expr.
2261 * init.c (build_new, build_delete): Likewise.
2262 * rtti.c (build_typeid, build_dynamic_cast_1): Likewise.
2264 2010-05-05 Jason Merrill <jason@redhat.com>
2267 * cp-gimplify.c (cp_gimplify_expr): Remove copies of empty classes.
2268 * call.c (build_over_call): Don't try to avoid INIT_EXPR copies here.
2270 2010-05-04 Paolo Carlini <paolo.carlini@oracle.com>
2273 * pt.c (unify): Check each elt for error_mark_node.
2275 2010-05-04 Jason Merrill <jason@redhat.com>
2278 * typeck.c (cp_build_binary_op): Allow enums for <> as well.
2280 2010-05-04 Paolo Carlini <paolo.carlini@oracle.com>
2283 * call.c (build_new_method_call): Return error_mark_node if fns is
2286 2010-05-03 Dodji Seketeli <dodji@redhat.com>
2289 * pt.c (most_specialized_class): Pretend we are processing
2290 a template decl during the call to coerce_template_parms.
2292 2010-05-03 Jason Merrill <jason@redhat.com>
2296 * decl.c (finish_enum): Use the TYPE_MIN_VALUE and TYPE_MAX_VALUE
2297 from the selected underlying type unless -fstrict-enums. Set
2298 ENUM_UNDERLYING_TYPE to have the restricted range.
2299 * cvt.c (type_promotes_to): Use ENUM_UNDERLYING_TYPE.
2300 * class.c (check_bitfield_decl): Likewise.
2302 2010-05-01 H.J. Lu <hongjiu.lu@intel.com>
2305 * init.c (build_new_1): Revert the accidental checkin in
2308 2010-04-30 Jason Merrill <jason@redhat.com>
2311 * cxx-pretty-print.c (pp_cxx_decl_specifier_seq): Move pmf handling...
2312 (pp_cxx_type_specifier_seq): ...here.
2314 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
2316 * optimize.c, parser.c, mangle.c, cp-tree.h: Do not include varray.h.
2317 * Make-lang.in: Don't include varray.h dependency in CXX_TREE_H.
2319 2010-04-30 Shujing Zhao <pearly.zhao@oracle.com>
2322 * typeck.c (warn_args_num): New function.
2323 (convert_arguments): Use warn_args_num to print the diagnostic
2326 2010-04-29 Fabien Chêne <fabien.chene@gmail.com>
2329 * init.c (diagnose_uninitialized_cst_or_ref_member): check for
2330 user-provided constructor while recursing.
2332 2010-04-28 Manuel López-Ibáñez <manu@gcc.gnu.org>
2335 * error.c (print_instantiation_partial_context_line): Handle
2336 recursive instantiation.
2337 (print_instantiation_partial_context): Likewise.
2339 2010-04-27 Jason Merrill <jason@redhat.com>
2341 * init.c (perform_member_init): Check CLASS_TYPE_P.
2343 2010-04-27 Fabien Chêne <fabien.chene@gmail.com>
2346 * init.c (perform_member_init): check for uninitialized const or
2347 reference members, including array types.
2349 2010-04-24 Jason Merrill <jason@redhat.com>
2351 * tree.c (get_fns): Split out from get_first_fn.
2352 * cp-tree.h: Declare it.
2353 * search.c (shared_member_p): Use it.
2354 * semantics.c (finish_qualified_id_expr): Simplify.
2355 (finish_id_expression): Simplify.
2357 * semantics.c (finish_non_static_data_member): Call maybe_dummy_object
2358 whenever object is NULL_TREE. Don't do 'this' capture here.
2359 (finish_qualified_id_expr): Pass NULL_TREE.
2360 (finish_id_expression): Likewise.
2361 (lambda_expr_this_capture): Likewise.
2363 * semantics.c (finish_qualified_id_expr): Use maybe_dummy_object
2364 rather than checking current_class_ref directly.
2365 (finish_call_expr): Likewise.
2368 * name-lookup.c (qualify_lookup): Disqualify lambda op().
2369 * class.c (current_nonlambda_class_type): New fn.
2370 * semantics.c (nonlambda_method_basetype): New.
2371 * cp-tree.h: Declare them.
2372 * tree.c (maybe_dummy_object): Handle implicit 'this' capture.
2374 * semantics.c (baselink_for_fns): Correct BASELINK_BINFO.
2377 * semantics.c (lambda_return_type): Complain about
2381 * tree.c (cv_unqualified): Handle error_mark_node.
2384 * call.c (convert_like_real) [ck_ambig]: Just return error_mark_node
2385 if we don't want errors.
2388 * class.c (convert_to_base): Add complain parameter. Pass
2389 ba_quiet to lookup_base if we don't want errors.
2390 (build_vfield_ref): Pass complain to convert_to_base.
2391 * call.c (convert_like_real): Likewise.
2392 (initialize_reference): Likewise.
2393 (perform_direct_initialization_if_possible): Pass complain to
2395 * cp-tree.h: Adjust.
2397 2010-04-27 Fabien Chêne <fabien.chene@gmail.com>
2398 Jason Merrill <jason@redhat.com>
2401 * decl.c (check_for_uninitialized_const_var): Handle classes that need
2403 (check_initializer): Call it for classes that need constructing, too.
2404 * class.c (in_class_defaulted_default_constructor): New.
2405 * cp-tree.h: Declare it.
2407 2010-04-20 Jason Merrill <jason@redhat.com>
2410 * init.c (constant_value_1): Treat error_mark_node as a constant
2411 if DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P is set.
2412 * cvt.c (ocp_convert): Handle getting error_mark_node from
2413 integral_constant_value.
2414 * decl.c (compute_array_index_type): Likewise.
2416 2010-04-20 Dodji Seketeli <dodji@redhat.com>
2420 * typeck.c (incompatible_dependent_types_p): If one of the
2421 compared types if not a typedef then honour their main variant
2424 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2426 * cp-tree.h (TYPE_REF_IS_RVALUE): Remove.
2428 2010-04-19 Dodji Seketeli <dodji@redhat.com>
2431 * typeck.c (structural_comptypes): Test dependent typedefs
2432 incompatibility before testing for their main variant based
2435 2010-04-19 Jakub Jelinek <jakub@redhat.com>
2437 * cp-tree.h (SCOPED_ENUM_P, UNSCOPED_ENUM_P, SET_SCOPED_ENUM_P): Use
2438 ENUM_IS_SCOPED bit instead of TYPE_LANG_FLAG_5.
2440 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
2442 * decl.c (cxx_init_decl_processing): Remove second argument in call to
2443 build_common_tree_nodes.
2445 2010-04-14 Jason Merrill <jason@redhat.com>
2448 * parser.c (cp_parser_parenthesized_expression_list): Change
2449 is_attribute_list parm to int to indicate whether or not to
2450 handle initial identifier specially.
2451 (cp_parser_attribute_list): Use attribute_takes_identifier_p.
2453 2010-04-13 Jason Merrill <jason@redhat.com>
2455 * call.c (type_decays_to): Check MAYBE_CLASS_TYPE_P instead of
2457 * parser.c (cp_parser_lambda_expression): Complain about lambda in
2458 unevaluated context.
2459 * pt.c (iterative_hash_template_arg): Don't crash on lambda.
2461 2010-04-12 Jason Merrill <jason@redhat.com>
2464 * semantics.c (maybe_add_lambda_conv_op): Use build_call_a and tweak
2465 return value directly.
2467 * call.c (type_decays_to): Call cv_unqualified for non-class type.
2469 2010-04-12 Fabien Chene <fabien.chene@gmail.com>
2472 * cp-tree.h (diagnose_uninitialized_cst_or_ref_member): Declare.
2473 * init.c (build_new_1): Check for uninitialized const members and
2474 uninitialized reference members, when using new without
2475 new-initializer. Call diagnose_uninitialized_cst_or_ref_member.
2476 (diagnose_uninitialized_cst_or_ref_member): Define, call
2477 diagnose_uninitialized_cst_or_ref_member_1.
2478 (diagnose_uninitialized_cst_or_ref_member_1): New function.
2480 2010-04-12 Richard Guenther <rguenther@suse.de>
2483 * semantics.c (expand_or_defer_fn_1): Do not keep extern
2484 template inline functions.
2486 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2489 * typeck.c (cp_build_c_cast): Warn for casting integer to larger
2492 2010-04-07 Jason Merrill <jason@redhat.com>
2495 * decl.c (start_preparsed_function): Do defer nested functions.
2497 PR c++/11094, DR 408
2498 * cp-tree.h (VAR_HAD_UNKNOWN_BOUND, SET_VAR_HAD_UNKNOWN_BOUND): New.
2499 * decl2.c (finish_static_data_member_decl): Set it.
2500 * decl.c (duplicate_decls): Propagate it.
2501 * pt.c (tsubst_decl): Don't substitute the domain of an array
2502 VAR_DECL if it's set.
2503 (regenerate_decl_from_template): Substitute it here.
2504 (type_dependent_expression_p): Return true if it's set.
2505 * semantics.c (finish_decltype_type): Instantiate such a variable.
2506 * typeck.c (cxx_sizeof_expr): Likewise.
2507 (strip_array_domain): New.
2510 * name-lookup.c (current_decl_namespace): Non-static.
2511 (pop_nested_namespace): Sanity check.
2512 * cp-tree.h: Declare current_decl_namespace.
2513 * decl.c (grokvardecl): Use it instead of current_namespace.
2514 (grokfndecl): Likewise.
2517 * pt.c (tsubst_friend_function): Instatiate a friend that has already
2520 * pt.c (print_template_statistics): New.
2521 * cp-tree.h: Declare it.
2522 * tree.c (cxx_print_statistics): Call it.
2525 * decl.c (grokvardecl): Tweak warning message.
2526 (grokfndecl): Likewise.
2528 2010-04-07 Dodji Seketeli <dodji@redhat.com>
2531 *pt.c (tsubst_decl): Get the arguments of a specialization from
2532 the specialization template, not from the most general template.
2534 2010-04-07 Dodji Seketeli <dodji@redhat.com>
2537 * typeck2.c (process_init_constructor_record):
2538 value-initialize members that are are not explicitely
2541 2010-04-07 Jie Zhang <jie@codesourcery.com>
2544 * typeck2.c (split_nonconstant_init_1): Drop empty CONSTRUCTOR
2545 when all of its elements are non-constant and have been split out.
2547 2010-04-06 Taras Glek <taras@mozilla.com>
2548 Jason Merrill <jason@redhat.com>
2550 * parser.c (cp_parser_class_specifier): Set class location to that
2551 of IDENTIFIER_NODE instead of '{' when possible.
2552 * semantics.c (begin_class_definition): Do not overide locations
2553 with less precise ones.
2555 2010-04-06 Jason Merrill <jason@redhat.com>
2558 * name-lookup.c (constructor_name_p): Allow X::~X even for typedefs.
2561 * pt.c (maybe_update_decl_type): Check the return value from
2564 2010-04-01 Jason Merrill <jason@redhat.com>
2566 * decl.c (next_initializable_field): No longer static.
2567 * cp-tree.h: Declare it.
2568 * call.c (build_aggr_conv): Fail if there are more initializers
2569 than initializable fields.
2571 * semantics.c (maybe_add_lambda_conv_op): Use null_pointer_node
2572 instead of void_zero_node.
2574 2010-03-31 Dodji Seketeli <dodji@redhat.com>
2577 * cp-tree.h (TEMPLATE_TYPE_PARM_SIBLING_PARMS): New accessor macro.
2578 * pt.c (end_template_parm_list): Store sibling template parms of
2579 each TEMPLATE_TYPE_PARMs into its TEMPLATE_TYPE_PARM_SIBLING_PARMS.
2580 (push_template_decl_real): Don't store the containing template decl
2581 into the DECL_CONTEXT of TEMPLATE_TYPE_PARMs anymore.
2582 * typeck.c (get_template_parms_of_dependent_type): Get sibling parms
2583 of a TEMPLATE_TYPE_PARM from TEMPLATE_TYPE_PARM_SIBLING_PARMS.
2586 2010-03-30 Jason Merrill <jason@redhat.com>
2589 * pt.c (push_template_decl_real): Deal better with running out of
2590 scopes before running out of template parms.
2594 * parser.c (cp_parser_direct_declarator): Don't allow VLAs in
2595 function parameter context. Don't print an error if parsing
2599 * pt.c (more_specialized_fn): Don't control cv-qualifier check
2602 2010-03-26 Jason Merrill <jason@redhat.com>
2605 * parser.c (cp_parser_qualifying_entity): Do accept enum names in
2606 c++0x mode, but not other type-names.
2608 2010-03-26 Dodji Seketeli <dodji@redhat.com>
2611 * pt.c (add_to_template_args): Support NULL ARGS;
2612 (most_specialized_class): call coerce_template_parms on
2613 template arguments passed to get_class_bindings. Use
2614 add_to_template_args.
2615 (unify): Handle VAR_DECLs.
2617 2010-03-26 Dodji Seketeli <dodji@redhat.com>
2619 * cp-tree.h (get_template_parms_at_level): Change unsigned parm
2621 * pt.c (get_template_parms_at_level): Adjust.
2623 2010-03-25 Dodji Seketeli <dodji@redhat.com>
2626 * cp-tree.h (get_template_parms_at_level): Declare ...
2627 * pt.c (get_template_parms_at_level): ... new function.
2628 * typeck.c (get_template_parms_of_dependent_type): If a template
2629 type parm's DECL_CONTEXT isn't yet set, get its siblings from
2630 current_template_parms. Use get_template_parms_at_level. Remove
2632 (incompatible_dependent_types_p): If we get empty parms from just one
2633 of the template type parms we are comparing then the template parms are
2636 2010-03-24 Jason Merrill <jason@redhat.com>
2639 * parser.c (make_declarator): Initialize id_loc.
2640 (cp_parser_lambda_declarator_opt): And set it.
2642 2010-03-23 Jason Merrill <jason@redhat.com>
2644 Make lambda conversion op and op() non-static.
2645 * semantics.c (maybe_add_lambda_conv_op): Make non-static.
2646 Also add the thunk function returned by the conversion op.
2647 Mark the conversion deleted if the op() is variadic.
2648 * decl2.c (mark_used): Give helpful message about deleted conversion.
2649 * parser.c (cp_parser_lambda_declarator_opt): Don't make op() static.
2650 * semantics.c (finish_this_expr): Adjust.
2651 * mangle.c (write_closure_type_name): Adjust.
2652 * decl.c (grok_op_properties): Don't allow it.
2653 * call.c (build_user_type_conversion_1): No static conversion ops.
2654 (build_op_call): Or op().
2656 * decl2.c (change_return_type): Fix 'this' quals.
2658 2010-03-22 Jason Merrill <jason@redhat.com>
2661 * tree.c (pod_type_p): Use old meaning in C++98 mode.
2664 * pt.c (contains_auto_r): New fn.
2665 (do_auto_deduction): Use it.
2666 (tsubst): Don't look at TREE_TYPE of a TEMPLATE_TYPE_PARM.
2668 2010-03-20 Simon Martin <simartin@users.sourceforge.net>
2671 * decl2.c (grokfield): Handle invalid initializers for member
2674 2010-03-20 Dodji Seketeli <dodji@redhat.com>
2677 * method.c (make_alias_for): Avoid crashing when DECL_LANG_SPECIFIC
2679 * decl2.c (vague_linkage_p): Likewise.
2681 2010-03-18 Paolo Carlini <paolo.carlini@oracle.com>
2684 * parser.c (cp_parser_for_init_statement): Use NULL_TREE, not
2685 false, in the cp_parser_expression_statement call.
2687 2010-03-05 Jason Merrill <jason@redhat.com>
2689 * mangle.c (mangle_decl): Give name collision error even without
2692 2010-03-04 Marco Poletti <poletti.marco@gmail.com>
2694 * pt.c (process_partial_specialization): Use error_n instead of
2697 2010-03-03 Jason Merrill <jason@redhat.com>
2700 * mangle.c (mangle_decl): Handle VAR_DECL, too.
2702 2010-03-03 Jason Merrill <jason@redhat.com>
2705 * mangle.c: Include cgraph.h.
2706 (mangle_decl): If the mangled name will change in a later
2707 ABI version, make the later mangled name an alias.
2708 * method.c (make_alias_for): Copy DECL_ARGUMENTS.
2709 * Make-lang.in (mangle.o): Depend on cgraph.h.
2710 * method.c (make_alias_for): Handle VAR_DECL, too.
2711 * decl2.c (vague_linkage_p): Rename from vague_linkage_fn_p.
2712 * tree.c (no_linkage_check): Adjust.
2713 * decl.c (maybe_commonize_var): Adjust.
2714 * cp-tree.h: Adjust.
2716 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
2718 * pt.c (redeclare_class_template): Use error_n and inform_n.
2720 2010-02-27 Mark Mitchell <mark@codesourcery.com>
2723 * cp-tree.h (push_tinst_level): Declare.
2724 (pop_tinst_level): Likewise.
2725 * pt.c (push_tinst_level): Give it external linkage.
2726 (pop_tinst_level): Likewise.
2727 * mangle.c (mangle_decl_string): Set the source location to that
2728 of the decl while mangling.
2730 2010-02-27 Simon Martin <simartin@users.sourceforge.net>
2733 * pt.c (redeclare_class_template): Return false if there are erroneous
2734 template parameters.
2736 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2738 * pt.c (push_tinst_level): Replace -ftemplate-depth- with
2741 2010-02-24 Jason Merrill <jason@redhat.com>
2744 * mangle.c (write_type): Give -Wabi warning for old vector mangling.
2746 * class.c (layout_class_type): Don't give -Wabi warning for a bug
2747 in a previous ABI version.
2749 2010-02-23 Jason Merrill <jason@redhat.com>
2752 * typeck2.c (digest_init_r): Accept value init of array.
2754 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2757 * typeck.c (convert_arguments): Update error message.
2759 2010-02-22 Mike Stump <mikestump@comcast.net>
2762 * decl.c (duplicate_decls): Merge DECL_PRESERVE_P.
2764 2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2767 * error.c (print_instantiation_partial_context_line): New.
2768 (print_instantiation_partial_context): Print at most 12 contexts,
2769 skip the rest with a message.
2771 2010-02-21 Dodji Seketeli <dodji@redhat.com>
2774 * pt.c (lookup_template_class): Better support of specialization
2775 of member of class template implicit instantiation.
2777 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2780 * call.c (conversion_null_warnings): Replace -Wconversion with
2782 * cvt.c (build_expr_type_conversion): Likewise.
2784 2010-02-18 Jason Merrill <jason@redhat.com>
2787 * class.c (create_vtable_ptr): Set DECL_PACKED if type is packed.
2790 * typeck.c (cp_build_binary_op): Adapt mixed complex/non handling from
2792 * cp-tree.h (WANT_VECTOR_OR_COMPLEX): Rename from WANT_VECTOR.
2793 * cvt.c (build_expr_type_conversion): Allow COMPLEX_TYPE.
2796 * semantics.c (finish_goto_stmt): Don't call decay_conversion.
2800 * pt.c (tsubst_qualified_id): Do normal lookup in non-dependent scope.
2801 (maybe_update_decl_type): New fn.
2802 * parser.c (cp_parser_init_declarator): Use it.
2805 * semantics.c (begin_class_definition): Don't crash on unnamed ns.
2807 2010-02-17 Jason Merrill <jason@redhat.com>
2810 * call.c (build_over_call): Don't create zero-sized assignments.
2811 * cp-gimplify.c (cp_genericize_r): Don't remove them here.
2812 * cp-objcp-common.c (cp_expr_size): Remove.
2813 * cp-tree.h: Remove prototype.
2816 * name-lookup.c (set_decl_namespace): Don't copy DECL_CONTEXT if the
2817 decl we looked up doesn't match.
2820 * cp-gimplify.c (cp_gimplify_expr) [INIT_EXPR]: Return if we don't
2821 have an INIT_EXPR anymore.
2824 * pt.c (convert_nontype_argument): Change assert to test.
2826 2010-02-16 Jason Merrill <jason@redhat.com>
2828 * cp-gimplify.c (cp_gimplify_expr): Fix error recovery.
2831 * cp-gimplify.c (cp_gimplify_expr) [MODIFY_EXPR]: Use
2832 VIEW_CONVERT_EXPR for conversions between structural equality types
2833 that the back end can't tell are the same.
2836 * tree.c (build_cplus_array_type): Set TYPE_MAIN_VARIANT to strip
2837 cv-quals from element here.
2838 (cp_build_qualified_type_real): Not here. Preserve typedef name.
2840 2010-02-14 Jason Merrill <jason@redhat.com>
2843 * semantics.c (finish_compound_literal): Use
2844 cp_apply_type_quals_to_decl when creating a static variable.
2846 2010-02-12 Jason Merrill <jason@redhat.com>
2849 * name-lookup.h (current_binding_level): Check for null
2852 2010-02-12 Jason Merrill <jason@redhat.com>
2855 * tree.c (cp_tree_equal): Correct CALL_EXPR logic.
2857 2010-02-12 Jakub Jelinek <jakub@redhat.com>
2860 * name-lookup.c (pushdecl_maybe_friend): Check default args of t
2863 2010-02-10 Jason Merrill <jason@redhat.com>
2866 * semantics.c (outer_lambda_capture_p): Revert.
2867 (add_capture): Only finish_member_declaration if
2868 we're in the lambda class.
2869 (register_capture_members): New.
2870 * cp-tree.h: Declare it.
2871 * parser.c (cp_parser_lambda_expression): Call it.
2873 2010-02-10 Jason Merrill <jason@redhat.com>
2876 * semantics.c (outer_lambda_capture_p): Use current_function_decl
2877 instead of current_class_type.
2879 2010-02-10 Jason Merrill <jason@redhat.com>
2881 PR c++/42983, core issue 906
2882 * method.c (defaultable_fn_check): Check virtualness.
2884 2010-02-10 Jason Merrill <jason@redhat.com>
2887 * semantics.c (maybe_add_lambda_conv_op): Set DECL_INTERFACE_KNOWN.
2889 2010-02-10 Shujing Zhao <pearly.zhao@oracle.com>
2891 * Make-lang.in (cp/cvt.o, cp/parser.o, cp/search.o): Depend on intl.h.
2892 * cvt.c (warn_ref_binding): Wrap the messages into G_() for easy
2894 * parser.c (cp_parser_postfix_expression, cp_parser_new_type_id)
2895 (cp_parser_cast_expression, cp_parser_condition, cp_parser_decltype)
2896 (cp_parser_parameter_declaration)
2897 (cp_parser_exception_specification_opt)
2898 (cp_parser_exception_declaration): Likewise.
2899 * pt.c (check_default_tmpl_args): Likewise.
2900 * search.c (lookup_field_r): Likewise.
2902 2010-02-09 Jason Merrill <jason@redhat.com>
2905 * pt.c (tsubst_copy_and_build): Propagate LAMBDA_EXPR_LOCATION.
2907 2010-02-09 Jason Merrill <jason@redhat.com>
2910 * decl2.c (change_return_type): New fn.
2911 * semantics.c (apply_lambda_return_type): Use it.
2912 * cp-tree.h: Declare it.
2914 2010-02-05 Richard Guenther <rguenther@suse.de>
2916 * Make-lang.in (cp/cp-lang.o): Depend on gt-cp-cp-lang.h.
2917 * cp-lang.c: Include gt-cp-cp-lang.h.
2918 * config-lang.in (gtfiles): Add cp/cp-lang.c.
2920 2010-02-05 Dodji Seketeli <dodji@redhat.com>
2923 * typeck.c (get_template_parms_of_dependent_type): Try getting
2924 the template parameters fromt the type itself first.
2926 2010-02-03 Jason Merrill <jason@redhat.com>
2930 * mangle.c (write_unqualified_id): Split out from write_expression.
2931 (write_unqualified_name): Call it.
2932 (write_member_name): Likewise.
2933 (write_expression): Support TEMPLATE_ID_EXPR.
2934 Disambiguate operator names.
2937 * mangle.c (write_type) [VECTOR_TYPE]: Change mangling with
2940 2010-02-02 Jason Merrill <jason@redhat.com>
2943 * decl.c (cp_finish_decl): Add local statics to cfun->local_decls.
2944 * optimize.c (clone_body): Remap their initializers when making base
2946 (maybe_clone_body): Complain if multiple clones aren't safe.
2948 2010-01-29 Dodji Seketeli <dodji@redhat.com>
2955 * cp-tree.h (NON_DEFAULT_TEMPLATE_ARGS_COUNT,
2956 SET_NON_DEFAULT_TEMPLATE_ARGS_COUNT,
2957 GET_NON_DEFAULT_TEMPLATE_ARGS_COUNT): New accessor macros.
2958 * pt.c (coerce_template_parms, type_unification_real,
2959 expand_template_argument_pack, coerce_template_parameter_pack):
2960 Set the non default template args count.
2961 (current_template_args): Always set non defaulted
2962 template args count when compiled with --enable-checking
2963 (tsubst_template_args, type_unification_real): Propagate the non
2964 defaulted template args count.
2965 * error.c (get_non_default_template_args_count): Renamed
2966 count_non_default_template_args into this. Don't calculate the
2967 non default template argument count anymore. Use the new
2968 accessor macros above to get it.
2969 (dump_template_argument_list, dump_type, dump_decl,
2970 dump_template_parms): Adjust.
2971 * parser.c (cp_parser_template_argument_list): Always set defaulted
2972 template args count when compiled with --enable-checking.
2974 2010-01-29 Shujing Zhao <pearly.zhao@oracle.com>
2976 * decl.c (redeclaration_error_message): Wrap the return messages into
2977 G_() for easy translation.
2979 2010-01-28 Jason Merrill <jason@redhat.com>
2982 * semantics.c (begin_class_definition): Don't use type_as_string.
2984 2010-01-28 Dodji Seketeli <dodji@redhat.com>
2988 * typeck.c (get_template_parms_of_dependent_type): Factorized
2989 this out of incompatible_template_type_parms_p
2990 (incompatible_dependent_types_p): Renamed
2991 incompatible_template_type_parms_p into this. Make it detect
2992 two incompatible dependent typedefs too.
2993 (structural_comptypes): Use incompatible_dependent_types_p.
2994 * pt.c (get_template_info):
2995 Handle BOUND_TEMPLATE_TEMPLATE_PARAM.
2997 2010-01-20 Janis Johnson <janis187@us.ibm.com>
2998 Jason Merrill <jason@redhat.com>
3000 * mangle.c (write_type): Mangle transparent record as member type.
3001 * semantics.c (begin_class_definition): Recognize decimal classes
3002 and set TYPE_TRANSPARENT_AGGR.
3004 2010-01-20 Jason Merrill <jason@redhat.com>
3007 * mangle.c (write_expression): Handle tree codes that have extra
3008 arguments in the middle-end.
3010 2010-01-20 Paolo Carlini <paolo.carlini@oracle.com>
3013 * except.c (expand_start_catch_block): Deal correctly with
3014 do_begin_catch returning error_mark_node.
3016 2010-01-20 Jason Merrill <jason@redhat.com>
3019 * class.c (layout_class_type): Set packed_maybe_necessary for packed
3023 * semantics.c (build_lambda_object): Call mark_used on captured
3027 * decl.c (grokdeclarator): Clear type_quals for a member function
3028 declared using a typedef. Don't complain about adding cv-quals
3029 to a function typedef in C++0x mode.
3031 2010-01-20 Jakub Jelinek <jakub@redhat.com>
3033 * decl.c (create_array_type_for_decl): Remove set but not used
3034 variable error_msg. Remove break stmts after return stmts.
3036 2010-01-19 Dodji Seketeli <dodji@redhat.com>
3038 * error.c (dump_template_parms, count_non_default_template_args):
3039 Revert fix of PR c++/42634.
3041 2010-01-18 Dodji Seketeli <dodji@redhat.com>
3044 * error.c (dump_template_parms): Use innermost template
3045 arguments before calling count_non_default_template_args.
3046 (count_non_default_template_args): We are being called with
3047 template innermost arguments now. There is no need to ensure
3050 2010-01-18 Dodji Seketeli <dodji@redhat.com>
3053 * cvt.c (build_expr_type_conversion): Look through OVERLOAD.
3055 2010-01-17 Dodji Seketeli <dodji@redhat.com>
3058 *pt.c (tsubst_decl): Revert commit for PR c++/42697.
3060 2010-01-17 Dodji Seketeli <dodji@redhat.com>
3063 *pt.c (tsubst_decl): Get the arguments of a specialization from
3064 the specialization template, not from the most general template.
3066 2010-01-16 Jason Merrill <jason@redhat.com>
3069 * semantics.c (finish_decltype_type): Within a template, treat
3070 unresolved CALL_EXPR as dependent.
3072 2010-01-15 Dodji Seketeli <dodji@redhat.com>
3074 * error.c (dump_template_parms,count_non_default_template_args):
3075 Revert changes of PR c++/42634.
3077 2010-01-14 Jakub Jelinek <jakub@redhat.com>
3080 * decl.c (finish_function): Don't emit -Wreturn-type warnings in
3081 functions with noreturn attribute.
3083 2010-01-14 Jason Merrill <jason@redhat.com>
3086 * call.c (build_new_method_call): Don't free the vec here.
3089 * call.c (convert_like_real): Do full decay_conversion for ck_rvalue.
3091 2010-01-13 Dodji Seketeli <dodji@redhat.com>
3094 * error.c (dump_template_parms): Use innermost template
3095 arguments before calling count_non_default_template_args.
3096 (count_non_default_template_args): We are being called with
3097 template innermost arguments now. There is no need to ensure
3100 2010-01-07 Dodji Seketeli <dodji@redhat.com>
3103 * pt.c (unify_pack_expansion): In non-deduced contexts, re-use template
3104 arguments that were previously deduced.
3106 2010-01-05 Jason Merrill <jason@redhat.com>
3108 * pt.c (unify_pack_expansion): Handle deduction from init-list.
3109 * call.c (build_over_call): Don't complain about it.
3111 2010-01-04 Jason Merrill <jason@redhat.com>
3114 * pt.c (tsubst_decl): Don't apply type attributes in place.
3117 * semantics.c (describable_type): Remove decltype comment and
3122 Copyright (C) 2010 Free Software Foundation, Inc.
3124 Copying and distribution of this file, with or without modification,
3125 are permitted in any medium without royalty provided the copyright
3126 notice and this notice are preserved.