* langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
[official-gcc/alias-decl.git] / gcc / cp / ChangeLog
blob7829c5b9a7b7bf28f3fd638e103390092a1cf055
1 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3         * cp-objcp-common.c (cxx_initialize_diagnostics): First call
4         c_common_initialize_diagnostics.
5         * cp-objcp-common.h (LANG_HOOKS_OPTION_LANG_MASK,
6         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
8 2010-07-21  Jason Merrill  <jason@redhat.com>
10         * tree.c (cp_tree_equal): Fix CONSTRUCTOR handling.
12         * parser.c (cp_parser_init_declarator): Pass LOOKUP_NORMAL
13         to cp_finish_decl.
15 2010-07-20  Jeffrey Yasskin  <jyasskin@google.com>
17         PR c++/44641
18         * pt.c (instantiate_class_template): Propagate the template's
19         location to its instance.
21 2010-07-20  Jason Merrill  <jason@redhat.com>
23         PR c++/44967
24         * pt.c (tsubst_copy_and_build): Rework last change.
26         PR c++/44967
27         * pt.c (tsubst_copy_and_build): Handle partial substitution of
28         CALL_EXPR.
30 2010-07-19  Jason Merrill  <jason@redhat.com>
32         PR c++/44996
33         * semantics.c (finish_decltype_type): Correct decltype
34         of parenthesized rvalue reference variable.
36         PR c++/44969
37         * tree.c (cp_tree_equal): Compare type of *CAST_EXPR.
38         * pt.c (iterative_hash_template_arg): Hash type of *CAST_EXPR.
40 2010-07-19  Paolo Carlini  <paolo.carlini@oracle.com>
42         PR c++/44969
43         * typeck.c (build_x_compound_expr_from_list): Add tsubst_flags_t
44         parameter.
45         * cp-tree.h: Adjust declaration.
46         * init.c (perform_member_init): Adjust caller.
47         * decl.c (grok_reference_init, cp_finish_decl): Likewise.
48         * typeck2.c (store_init_value): Likewise.
49         (build_functional_cast): Pass complain argument to
50         build_x_compound_expr_from_list.
52 2010-07-16  Jason Merrill  <jason@redhat.com>
54         PR c++/32505
55         * pt.c (process_partial_specialization): Diagnose partial
56         specialization after instantiation.
57         (most_specialized_class): Add complain parm.
59         * ptree.c (cxx_print_xnode): Handle TEMPLATE_INFO.
61 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
63         * init.c (build_new_1): Use cp_build_function_call_nary instead of
64         cp_build_function_call.
66 2010-07-15  Jason Merrill  <jason@redhat.com>
68         PR c++/44909
69         * call.c (add_function_candidate): If we're working on an implicit
70         declaration, don't consider candidates that won't match.
71         * typeck.c (same_type_ignoring_top_level_qualifiers_p): Now a fn.
72         * cp-tree.h (same_type_ignoring_top_level_qualifiers_p): Adjust.
74         Revert:
75         * cp-tree.h (struct lang_type_class): Add has_user_opeq.
76         (TYPE_HAS_USER_OPEQ): New.
77         * decl.c (grok_special_member_properties): Set it.
78         * class.c (add_implicitly_declared_members): Don't lazily declare
79         constructors/operator= if a base or member has a user-declared one.
80         (check_bases_and_members, check_bases): Adjust.
81         (check_field_decls, check_field_decl): Adjust.
83 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
85         * decl.c (integer_three_node): Remove.
86         (cxx_init_decl_processing): Do not initialize the integer_three_node.
87         * cp-tree.h (integer_three_node): Remove.
89 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
91         * cp-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN.
92         * call.c: Likewise.
93         * class.c: Likewise.
94         * cp-gimplify.c: Likewise.
95         * decl.c: Likewise.
96         * decl2.c: Likewise.
97         * init.c: Likewise.
98         * mangle.c: Likewise.
99         * name-lookup.c: Likewise.
100         * optimize.c: Likewise.
101         * parser.c: Likewise.
102         * pt.c: Likewise.
103         * rtti.c: Likewise.
104         * search.c: Likewise.
105         * semantics.c: Likewise.
106         * typeck.c: Likewise.
107         * typeck2.c: Likewise.
109 2010-07-14  Jason Merrill  <jason@redhat.com>
111         * init.c (sort_mem_initializers): Rename "field_type" to "ctx".
112         (build_field_list): Cache field type.
114         Implement C++0x unrestricted unions (N2544)
115         * class.c (check_field_decl): Loosen union handling in C++0x.
116         * method.c (walk_field_subobs): Split out from...
117         (synthesized_method_walk): ...here.  Set msg before loops.
118         (process_subob_fn): Check for triviality in union members.
119         * init.c (sort_mem_initializers): Splice out uninitialized
120         anonymous unions and union members.
121         (push_base_cleanups): Don't automatically destroy anonymous unions
122         and union members.
124 2010-07-13  Jason Merrill  <jason@redhat.com>
126         PR c++/44909
127         * cp-tree.h (struct lang_type_class): Add has_user_opeq.
128         (TYPE_HAS_USER_OPEQ): New.
129         * decl.c (grok_special_member_properties): Set it.
130         * class.c (add_implicitly_declared_members): Don't lazily declare
131         constructors/operator= if a base or member has a user-declared one.
132         (check_bases_and_members, check_bases): Adjust.
133         (check_field_decls, check_field_decl): Adjust.
134         * method.c (synthesized_method_walk): Initialize check_vdtor.
136         PR c++/44540
137         * mangle.c (write_type): Canonicalize.
138         (canonicalize_for_substitution): Retain cv-quals on FUNCTION_TYPE.
139         (write_CV_qualifiers_for_type): Ignore them in abi>=5.
141 2010-07-13  Paolo Carlini  <paolo.carlini@oracle.com>
143         PR c++/44908
144         * call.c (convert_like_real): Adjust convert_ptrmem call, pass
145         complain argument.
146         * typeck.c (get_delta_difference): Update prototype, add a
147         tsubst_flags_t parameter; update get_delta_difference_1 calls and
148         add checks for error_mark_node.
149         (get_delta_difference_1): Update prototype, add a tsubst_flags_t
150         parameter; update lookup_base call.
151         (build_ptrmemfunc): Update prototype, add a tsubst_flags_t
152         parameter; update get_delta_difference call and add check for
153         error_mark_node.
154         (convert_ptrmem): Update prototype, add a tsubst_flags_t
155         parameter; update get_delta_difference call and add check for
156         error_mark_node;  update build_ptrmemfunc call.
157         (build_static_cast_1): Adjust convert_ptrmem call.
158         (expand_ptrmemfunc_cst): Adjust get_delta_difference call.
159         (cp_build_unary_op): Adjust build_ptrmemfunc call.
160         * cvt.c (cp_convert_to_pointer, convert_force): Adjust convert_ptrmem
161         and build_ptrmemfunc calls.
162         * cp-tree.h: Update build_ptrmemfunc and convert_ptrmem prototypes.
164 2010-07-12  Paolo Carlini  <paolo.carlini@oracle.com>
166         PR c++/44907
167         * call.c (build_temp): Add tsubst_flags_t complain parameter;
168         adjust build_special_member_call call, pass complain.
169         (convert_like_real): Adjust build_temp call, pass complain.
171 2010-07-09  Jason Merrill  <jason@redhat.com>
173         PR c++/43120
174         * cp-tree.h (BV_LOST_PRIMARY): New macro.
175         * class.c (update_vtable_entry_for_fn): Fix covariant thunk logic.
176         Set BV_LOST_PRIMARY.
177         (build_vtbl_initializer): Check BV_LOST_PRIMARY.
179 2010-07-08  Jason Merrill  <jason@redhat.com>
181         PR c++/43120
182         * class.c (update_vtable_entry_for_fn): Fix handling of dummy
183         virtual bases for covariant thunks.
185 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
187         * cp-tree.h: Do not include toplev.h.
189 2010-07-06  Jason Merrill  <jason@redhat.com>
191         PR c++/44703
192         * call.c (is_std_init_list): Look through typedefs.
194         PR c++/44778
195         * init.c (build_offset_ref): If scope isn't dependent,
196         don't exit early.  Look at TYPE_MAIN_VARIANT.
197         * pt.c (tsubst_copy) [OFFSET_REF]: Do substitution.
199         * error.c (dump_function_decl): Don't crash on null DECL_NAME.
201 2010-07-06  Shujing Zhao  <pearly.zhao@oracle.com>
203         * cp-tree.h (impl_conv_void): New type.
204         (convert_to_void): Adjust prototype.
205         * cvt.c (convert_to_void): Use impl_conv_void, emit and adjust the
206         diagnostic for easy translation. Change caller.
207         * typeck.c: Update call to convert_to_void.
208         * semantics.c: Likewise.
209         * init.c: Likewise.
211 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
213         * decl.c (cp_finish_decl): Call add_local_decl.
214         * optimize.c (clone_body): Adjust for new type of cfun->local_decls.
216 2010-07-05  Paolo Carlini  <paolo.carlini@oracle.com>
218         * pt.c (tsubst): Early declare code = TREE_CODE (t) and use it
219         throughout.
221 2010-07-05  Shujing Zhao  <pearly.zhao@oracle.com>
223         PR c++/22138
224         * parser.c (cp_parser_primary_expression): Error if local template is
225         declared.
227 2010-07-02  Le-Chun Wu  <lcwu@google.com>
229         PR/44128
230         * name-lookup.c (pushdecl_maybe_friend): Warn when a local decl
231         (variable or type) shadows another type.
233 2010-07-02  Jakub Jelinek  <jakub@redhat.com>
235         PR c++/44780
236         * typeck.c (convert_for_assignment): When converting a convertible
237         vector type or objc++ types, call mark_rvalue_use.
238         * typeck2.c (build_m_component_ref): Use return values from
239         mark_rvalue_use or mark_lvalue_use.
240         * class.c (build_base_path): Likewise.
241         * call.c (build_conditional_expr): Likewise.
243 2010-07-02  Paolo Carlini  <paolo.carlini@oracle.com>
245         PR c++/44039
246         * pt.c (tsubst_baselink): Return error_mark_node if lookup_fnfields
247         returns NULL_TREE.
249 2010-07-01  Richard Guenther  <rguenther@suse.de>
251         * cp-gimplify.c (cp_gimplify_expr): Open-code the rhs
252         predicate we are looking for, allow non-gimplified
253         INDIRECT_REFs.
255 2010-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
257         PR c++/44628
258         * typeck.c (cp_build_unary_op): Early return error_mark_node when
259         arg is NULL_TREE too.
260         * call.c (convert_class_to_reference): Return error_mark_node when
261         expr is NULL_TREE.
263 2010-06-30  Michael Matz  <matz@suse.de>
265         * repo.c (finish_repo): Fix typo.
267 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
269         * parser.c (cp_parser_omp_for_loop): Use a VEC for for_block.
271 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
273         * repo.c (pending_repo): Change type to a VEC.
274         (finish_repo): Adjust for new type of pending_repo.
275         (repo_emit_p): Likewise.
277 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
279         * tree.c: Include gimple.h. Do not include tree-flow.h
280         * decl.c: Do not include tree-flow.h
281         * Make-lang.in: Adjust dependencies.
283 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
285         * decl.c (incomplete_var): Declare.  Declare VECs containing them.
286         (incomplete_vars): Adjust comment.  Change type to a VEC.
287         (maybe_register_incomplete_var): Adjust for new type.
288         (complete_vars): Adjust iteration over incomplete_vars.
290 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
292         * decl.c (struct named_label_entry): Change type of bad_decls field
293         to a VEC.
294         (poplevel_named_label_1): Adjust for new type of bad_decls.
295         (check_goto): Likewise.
297 2010-06-29  Jason Merrill  <jason@redhat.com>
299         Enable implicitly declared move constructor/operator= (N3053).
300         * class.c (add_implicitly_declared_members): A class with no
301         explicitly declared copy or move constructor gets both declared
302         implicitly, and similarly for operator=.
303         (check_bases): A type with no copy ctor does not inhibit
304         a const copy ctor in a derived class.  It does mean the derived
305         one is non-trivial.
306         (check_field_decl): Likewise.
307         (check_bases_and_members): A nonexistent copy ctor/op= is non-trivial.
308         * tree.c (type_has_nontrivial_copy_init): Adjust semantics.
309         (trivially_copyable_p): Likewise.
310         * call.c (convert_like_real): Use type_has_nontrivial_copy_init.
311         * class.c (finish_struct_bits): Likewise.
312         * tree.c (build_target_expr_with_type): Likewise.
313         * typeck2.c (store_init_value): Likewise.
315         Enable implicitly deleted functions (N2346)
316         * class.c (check_bases_and_members): Adjust lambda flags.
317         * method.c (implicitly_declare_fn): Set DECL_DELETED_FN if appropriate.
319         * decl2.c (mark_used): Adjust error for use of deleted function.
321         Machinery to support implicit delete/move.
322         * cp-tree.h: (struct lang_type_class): Add lazy_move_assign,
323         has_complex_move_ctor, has_complex_move_assign bitfields.
324         (CLASSTYPE_LAZY_MOVE_ASSIGN): New.
325         (TYPE_HAS_COMPLEX_MOVE_ASSIGN): New.
326         (TYPE_HAS_COMPLEX_MOVE_CTOR): New.
327         (enum special_function_kind): Add sfk_move_assignment.
328         (LOOKUP_SPECULATIVE): New.
329         * call.c (build_over_call): Return early if it's set.
330         (build_over_call): Use trivial_fn_p.
331         * class.c (check_bases): If the base has no default constructor,
332         the derived one is non-trivial.  Handle move ctor/op=.
333         (check_field_decl): Likewise.
334         (check_bases_and_members): Handle move ctor/op=.
335         (add_implicitly_declared_members): Handle CLASSTYPE_LAZY_MOVE_ASSIGN.
336         (type_has_move_constructor, type_has_move_assign): New.
337         * decl.c (grok_special_member_properties): Handle move ctor/op=.
338         * method.c (type_has_trivial_fn, type_set_nontrivial_flag): New.
339         (trivial_fn_p): New.
340         (do_build_copy_constructor): Use it.
341         (do_build_assign_ref): Likewise.  Handle move assignment.
342         (build_stub_type, build_stub_object, locate_fn_flags): New.
343         (locate_ctor): Use locate_fn_flags.
344         (locate_copy, locate_dtor): Remove.
345         (get_dtor, get_default_ctor, get_copy_ctor, get_copy_assign): New.
346         (process_subob_fn, synthesized_method_walk): New.
347         (maybe_explain_implicit_delete): New.
348         (implicitly_declare_fn): Use synthesized_method_walk,
349         type_has_trivial_fn, and type_set_nontrivial_flag.
350         (defaulted_late_check): Set DECL_DELETED_FN.
351         (defaultable_fn_check): Handle sfk_move_assignment.
352         (lazily_declare_fn): Clear CLASSTYPE_LAZY_* early.  Don't declare
353         implicitly deleted move ctor/op=.
354         * search.c (lookup_fnfields_1): Handle sfk_move_assignment.
355         (lookup_fnfields_slot): New.
356         * semantics.c (omp_clause_info_fndecl): Remove.
357         (cxx_omp_create_clause_info): Use get_default_ctor, get_copy_ctor,
358         get_copy_assign, trivial_fn_p.
359         (trait_expr_value): Adjust call to locate_ctor.
360         * tree.c (special_function_p): Handle sfk_move_assignment.
362         * class.c (type_has_virtual_destructor): New.
363         * cp-tree.h: Declare it.
364         * semantics.c (trait_expr_value): Use it.
366         * call.c (build_over_call): Only give warnings with tf_warning.
368         * name-lookup.c (pop_scope): Handle NULL_TREE.
370         * cp-tree.h (TYPE_HAS_ASSIGN_REF): Rename to TYPE_HAS_COPY_ASSIGN.
371         (TYPE_HAS_CONST_ASSIGN_REF): Rename to TYPE_HAS_CONST_COPY_ASSIGN.
372         (TYPE_HAS_INIT_REF): Rename to TYPE_HAS_COPY_CTOR.
373         (TYPE_HAS_CONST_INIT_REF): Rename to TYPE_HAS_CONST_COPY_CTOR.
374         (TYPE_HAS_COMPLEX_ASSIGN_REF): Rename to TYPE_HAS_COMPLEX_COPY_ASSIGN.
375         (TYPE_HAS_COMPLEX_INIT_REF): Rename to TYPE_HAS_COMPLEX_COPY_CTOR.
376         (TYPE_HAS_TRIVIAL_ASSIGN_REF): Rename to TYPE_HAS_TRIVIAL_COPY_ASSIGN.
377         (TYPE_HAS_TRIVIAL_INIT_REF): Rename to TYPE_HAS_TRIVIAL_COPY_CTOR.
378         (CLASSTYPE_LAZY_ASSIGNMENT_OP): Rename to CLASSTYPE_LAZY_COPY_ASSIGN.
379         (sfk_assignment_operator): Rename to sfk_copy_assignment.
380         * decl.c, call.c, class.c, init.c, method.c, pt.c, ptree.c: Adjust.
381         * search.c, semantics.c, tree.c: Adjust.
383         * pt.c (dependent_scope_ref_p): Remove.
384         (value_dependent_expression_p): Don't call it.
385         (type_dependent_expression_p): Here either.
386         * init.c (build_offset_ref): Set TREE_TYPE on a qualified-id
387         if the scope isn't dependent.
389         * pt.c (convert_nontype_argument): Use mark_lvalue_use if we want
390         a reference.
392         PR c++/44587
393         * pt.c (has_value_dependent_address): New.
394         (value_dependent_expression_p): Check it.
395         (convert_nontype_argument): Likewise.  Call decay_conversion before
396         folding if we want a pointer.
397         * semantics.c (finish_id_expression): Don't add SCOPE_REF if the
398         scope is the current instantiation.
400 2010-06-28  Jakub Jelinek  <jakub@redhat.com>
402         PR c++/44682
403         * class.c (build_base_path): If want_pointer, call mark_rvalue_use
404         on expr.
406 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
408         * init.c: Do not include except.h.
409         * decl.c: Likewise.
410         * expr.c: Likewise.
411         * cp-lang.c: Likewise.
412         * pt.c: Likewise.
413         * semantics.c: Likewise.
414         * decl2.c: Likewise.
415         * except.c: Likewise.
416         (init_exception_processing): Do not set the removed
417         lang_protect_cleanup_actions here.
418         (cp_protect_cleanup_actions): Make non-static and remove prototype.
419         (doing_eh): New, moved from except.c but removed the do_warning flag.
420         (expand_start_catch_block): Update doing_eh call.
421         (expand_end_catch_block): Likewise.
422         (build_throw): Likewise.
423         * cp-tree.h: Prototype cp_protect_cleanup_actions.
424         * cp-objcp-common.h: Set LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS to
425         cp_protect_cleanup_actions.
426         * Make-lang.in: Update dependencies.
428 2010-06-26  Jason Merrill  <jason@redhat.com>
430         * call.c (add_function_candidate): Set LOOKUP_COPY_PARM for any
431         constructor called with a single argument that takes a reference
432         to the constructor's class.
433         (BAD_CONVERSION_RANK): New.
434         (compare_ics): Use it to compare bad ICSes.
436 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
438         * lang-specs.h: Remove +e handling.
440 2010-06-24  Andi Kleen  <ak@linux.intel.com>
442         * parser.c: (cp_parser_question_colon_clause):
443         Switch to use cp_lexer_peek_token.
444         Call warn_for_omitted_condop. Call pedwarn for omitted
445         middle operand.
447 2010-06-22  Jakub Jelinek  <jakub@redhat.com>
449         PR c++/44619
450         * typeck2.c (build_m_component_ref): Call mark_lvalue_use on
451         datum and mark_rvalue_use on component.
453         PR c++/44627
454         * error.c (dump_expr): Don't look at CALL_EXPR_ARG (t, 0) if
455         the CALL_EXPR has no arguments.
457 2010-06-21  Jason Merrill  <jason@redhat.com>
459         * typeck.c (comp_except_specs): Fix ce_derived with noexcept.
461         * semantics.c (check_trait_type): Check COMPLETE_TYPE_P for array
462         element type.
464 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
466         * name-lookup.c (struct arg_lookup): Convert namespaces and
467         classes fields to VEC.
468         (arg_assoc_namespace): Adjust for new type of namespaces.
469         (arg_assoc_class): Adjust for new type of classes.
470         (lookup_arg_dependent): Use make_tree_vector and
471         release_tree_vector.
472         * typeck2.c (build_x_arrow): Use vec_member.
474 2010-06-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
476         PR c++/44486
477         * error.c (dump_decl): Better wording for anonymous namespace.
479 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
481         * class.c (build_vtbl_initializer): Adjust computation of new_position
482         and which entry to add padding for.
484 2010-06-16  Jason Merrill  <jason@redhat.com>
486         * except.c (check_noexcept_r): Return the problematic function.
487         (finish_noexcept_expr): Give -Wnoexcept warning.  Add complain parm.
488         * pt.c (tsubst_copy_and_build): Pass it.
489         * parser.c (cp_parser_unary_expression): Likewise.
490         * cp-tree.h: Adjust prototype.
492         * method.c (defaulted_late_check): Give the defaulted method
493         the same exception specification as the implicit declaration.
495 2010-06-15  Jason Merrill  <jason@redhat.com>
497         * class.c (add_implicitly_declared_members): Implicit assignment
498         operators can also be virtual overriders.
499         * method.c (lazily_declare_fn): Likewise.
501         * call.c (convert_like_real): Give "initializing argument of"
502         information for ambiguous conversion.  Give source position
503         of function.
505         * call.c (print_z_candidates): Do print viable deleted candidates.
506         (joust): Don't choose a deleted function just because its worst
507         conversion is better than another candidate's worst.
509         * call.c (convert_like_real): Don't complain about
510         list-value-initialization from an explicit constructor.
512         * decl.c (duplicate_decls): Use DECL_IS_BUILTIN rather than test
513         DECL_SOURCE_LOCATION directly.
515         * class.c (type_has_user_provided_default_constructor): Use
516         sufficient_parms_p.
518         * call.c (is_subseq): Handle ck_aggr, ck_list.
519         (compare_ics): Treat an aggregate or ambiguous conversion to the
520         same type as involving the same function.
522 2010-06-13  Shujing Zhao  <pearly.zhao@oracle.com>
524         * typeck.c (convert_for_assignment): Fix comment. Change message
525         format from %d to %qP.
526         (convert_for_initialization): Fix comment. 
528 2010-06-11  Shujing Zhao  <pearly.zhao@oracle.com>
530         * cp-tree.h (expr_list_kind): New type.
531         (impl_conv_rhs): New type.
532         (build_x_compound_expr_from_list, convert_for_initialization): Adjust
533         prototype.
534         (typeck.c (convert_arguments): Use impl_conv_rhs and emit the
535         diagnostics for easy translation. Change caller.
536         (convert_for_initialization): Use impl_conv_rhs and change caller.
537         (build_x_compound_expr_from_list): Use expr_list_kind and emit the
538         diagnostics for easy translation. Change caller.
539         * decl.c (bad_spec_place): New enum.
540         (bad_specifiers): Use it and emit the diagnostics for easy
541         translation. Change caller.
542         * pt.c (coerce_template_parms): Put the diagnostics in full sentence.
544 2010-06-09  Nathan Froyd  <froydnj@codesourcery.com>
546         * cp-tree.h (struct saved_scope): Change decl_ns_list field type
547         to a VEC.
548         * decl2.c (cp_write_global_declarations): Adjust for new type of
549         decl_namespace_list.
550         * name-lookup.c (current_decl_namespace): Likewise.
551         (push_decl_namespace): Likewise.
552         (pop_decl_namespace): Likewise.
554 2010-06-09  Nathan Froyd  <froydnj@codesourcery.com>
556         * call.c (build_java_interface_fn_ref): Call build_function_type_list
557         instead of build_function_type.
558         * decl.c (cxx_init_decl_processing): Likewise.
559         (declare_global_var): Likewise.
560         (get_atexit_node): Likewise.
561         (expand_static_init): Likewise.
562         * decl2.c (start_objects): Likewise.
563         (start_static_storage_duration_function): Likewise.
564         * except.c (init_exception_processing): Likewise.
565         (build_exc_ptr): Likewise.
566         (build_throw): Likewise.
567         * rtti.c (throw_bad_cast): Likewise.
568         (throw_bad_typeid): Likewise.
569         (build_dynamic_cast_1): Likewise.
571 2010-06-09  Nathan Froyd  <froydnj@codesourcery.com>
573         * call.c (build_call_n): Call XALLOCAVEC instead of alloca.
574         (build_op_delete_call): Likewise.
575         (build_over_call): Likewise.
576         * cp-gimplify.c (cxx_omp_clause_apply_fn): Likewise.
577         * pt.c (process_partial_specialization): Likewise.
578         (tsubst_template_args): Likewise.
579         * semantics.c (finish_asm_stmt): Likewise.
581 2010-06-08  Nathan Sidwell  <nathan@codesourcery.com>
583         * decl.c (record_key_method_defined): New, broken out of ...
584         (finish_function): ... here.  Call it.  
585         (start_decl): Treat aliases as definitions.
587 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
589         * typeck2.c (abstract_virtuals_error): Use typed GC allocation.
591         * pt.c (maybe_process_partial_specialization): Likewise.
592         (register_specialization): Likewise.
593         (add_pending_template): Likewise.
594         (lookup_template_class): Likewise.
595         (push_tinst_level): Likewise.
597         * parser.c (cp_lexer_new_main): Likewise.
598         (cp_lexer_new_from_tokens): Likewise.
599         (cp_token_cache_new): Likewise.
600         (cp_parser_context_new): Likewise.
601         (cp_parser_new): Likewise.
602         (cp_parser_nested_name_specifier_opt): Likewise.
603         (cp_parser_template_id): Likewise.
605         * name-lookup.c (binding_entry_make): Likewise.
606         (binding_table_construct): Likewise.
607         (binding_table_new): Likewise.
608         (cxx_binding_make): Likewise.
609         (pushdecl_maybe_friend): Likewise.
610         (begin_scope): Likewise.
611         (push_to_top_level): Likewise.
613         * lex.c (init_reswords): Likewise.
614         (retrofit_lang_decl): Likewise.
615         (cxx_dup_lang_specific_decl): Likewise.
616         (copy_lang_type): Likewise.
617         (cxx_make_type): Likewise.
619         * decl.c (make_label_decl): Likewise.
620         (check_goto): Likewise.
621         (start_preparsed_function): Likewise.
622         (save_function_data): Likewise.
624         * cp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
626         * cp-objcp-common.c (decl_shadowed_for_var_insert): Likewise.
628         * class.c (finish_struct_1): Likewise.
630         * cp-tree.h (struct lang_type): Add variable_size GTY option.
631         (struct lang_decl): Likewise.
633         * parser.c (cp_parser_new): Update comment to not reference
634         ggc_alloc.
636 2010-06-07  Jason Merrill  <jason@redhat.com>
638         PR c++/44366
639         * error.c (dump_parameters): Mask out TFF_SCOPE.
640         (dump_simple_decl): Don't print the scope of a PARM_DECL.
641         (dump_scope): Remove no-op mask.
643         PR c++/44401
644         * parser.c (cp_parser_lookup_name): Fix naming the constructor.
646         * cp-tree.h (COMPLETE_OR_OPEN_TYPE_P): New macro.
647         * init.c (build_offset_ref): Use it.
648         * pt.c (maybe_process_partial_specialization): Use it.
649         (instantiate_class_template): Use it.
650         * search.c (lookup_base): Use it.
652 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
654         PR c++/44444
655         * expr.c (mark_exp_read): Handle INDIRECT_REF.
656         * cvt.c (convert_to_void): Handle INDIRECT_REF like
657         handled_component_p.
659         PR c++/44443
660         * decl.c (initialize_local_var): If TREE_USED is set on the type,
661         set also DECL_READ_P on the decl.
663 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
665         PR c++/44188
666         * cp-tree.h (typedef_variant_p): Move this declaration to
667         gcc/tree.h.
668         * tree.c (typedef_variant_p): Move this definition to gcc/tree.c.
669         * decl.c (grokdeclarator): Do not rename debug info of an
670         anonymous tagged type named by a typedef.
672 2010-06-05  Fabien Chêne  <fabien@gcc.gnu.org>
674         PR c++/44086
675         * class.c (check_field_decls): Move the call to
676         check_bitfield_decl before trying to set the
677         CLASSTYPE_READONLY_FIELDS_NEED_INIT flag.
679 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
681         * typeck.c: Update include path for moved files.
682         * decl.c: Likewise.
683         * rtti.c: Likewise.
684         * cp-gimplify.c: Likewise.
685         * cp-lang.c: Likewise.
686         * pt.c: Likewise.
687         * semantics.c: Likewise.
688         * cxx-pretty-print.h: Likewise.
689         * decl2.c: Likewise.
690         * parser.c: Likewise.
691         * cp-objcp-common.c: Likewise.
692         * cp-tree.h: Likewise.
693         * name-lookup.c: Likewise.
694         * lex.c: Likewise.
695         * name-lookup.h: Likewise.
696         * config-lang.in: Update paths in gtfiles for files in c-family/.
697         * Make-lang.in: Likewise.
699 2010-06-04  Magnus Fromreide  <magfr@lysator.liu.se>
701         * cvt.c (cp_convert_to_pointer): Use null_ptr_cst_p.
702         * typeck.c (build_ptrmemfunc): Likewise.
704 2010-06-04  Jason Merrill  <jason@redhat.com>
706         * typeck2.c (merge_exception_specifiers): Adjust merging of
707         throw() and noexcept(true).
709         * pt.c (value_dependent_expression_p) [NOEXCEPT_EXPR]: Avoid
710         using an uninitialized variable.
712         * cxx-pretty-print.c (pp_cxx_unary_expression): Handle NOEXCEPT_EXPR.
713         (pp_cxx_expression): Likewise.
715         Implement noexcept-specification (15.4)
716         * parser.c (cp_parser_exception_specification_opt): Parse it.
717         Give -Wdeprecated warning about throw() specs.
718         * pt.c (tsubst_exception_specification): Handle it.
719         * error.c (dump_exception_spec): Handle it.
720         (dump_expr): Handle NOEXCEPT_EXPR.
721         * cxx-pretty-print.c (pp_cxx_exception_specification): Likewise.
722         * typeck.c (comp_except_specs): Handle compatibility rules.
723         Change exact parm to take an enum.
724         * typeck2.c (merge_exception_specifiers): Handle noexcept.
725         * except.c (nothrow_spec_p, type_noexcept_p): New fns.
726         (type_throw_all_p, build_noexcept_spec): New fns.
727         * cp-tree.h (TYPE_NOTHROW_P, TYPE_NOEXCEPT_P): Use them.
728         (comp_except_specs): Define ce_derived, ce_normal, ce_exact enums.
729         (cp_tree_index): Add CPTI_NOEXCEPT_TRUE_SPEC, CPTI_NOEXCEPT_FALSE_SPEC.
730         (noexcept_true_spec, noexcept_false_spec): New macros.
731         * name-lookup.c (pushdecl_maybe_friend): Adjust.
732         * search.c (check_final_overrider): Adjust.
733         * decl.c (check_redeclaration_exception_specification): Adjust.
734         (use_eh_spec_block): Use type_throw_all_p.
735         (cxx_init_decl_processing): Set noexcept_false_spec,noexcept_true_spec.
736         Give operator new a noexcept-specification in C++0x mode.
737         * tree.c (build_exception_variant, cxx_type_hash_eq): Adjust.
738         (cp_build_type_attribute_variant): Don't test TYPE_RAISES_EXCEPTIONS.
740         Implement noexcept operator (5.3.7)
741         * cp-tree.def (NOEXCEPT_EXPR): New.
742         * except.c (check_noexcept_r, finish_noexcept_expr): New.
743         * cp-tree.h: Declare finish_noexcept_expr.
744         * parser.c (cp_parser_unary_expression): Parse noexcept-expression.
745         * pt.c (tsubst_copy_and_build): And tsubst it.
746         (type_dependent_expression_p): Handle it.
747         (value_dependent_expression_p): Handle it.
749         * call.c (build_conditional_expr): Never fold in unevaluated context.
750         * tree.c (build_aggr_init_expr): Propagate TREE_NOTHROW.
751         * semantics.c (simplify_aggr_init_expr): Likewise.
752         * typeck.c (merge_types): Call merge_exception_specifiers.
753         * decl.c (duplicate_decls): Check DECL_SOURCE_LOCATION rather than
754         DECL_ANTICIPATED for preferring new type.
756 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
758         * g++spec.c (lang_specific_driver): Use GCC-specific formats in
759         diagnostics.
761 2010-06-04  Jakub Jelinek  <jakub@redhat.com>
763         PR c++/44412
764         * typeck.c (build_class_member_access_expr): Call mark_exp_read
765         on object for static data members.
767 2010-06-04  Jakub Jelinek  <jakub@redhat.com>
768             Jason Merrill  <jason@redhat.com>
770         PR c++/44362
771         * call.c (build_conditional_expr): If both arg2 and arg3 are lvalues
772         with the same type, call mark_lvalue_use on both.
774 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
776         * class.c (struct vtbl_init_data_s): Remove last_init field.
777         (struct secondary_vptr_vtt_init_data_s): Change type of inits field
778         to a VEC.
779         (finish_vtbls): Use a VEC rather than a TREE_LIST for the accumulated
780         initializers.
781         (build_vtt): Likewise.
782         (initialize_vtable): Take a VEC instead of a tree.
783         (build_vtt_inits): Change return type to void.  Take a VEC **
784         instead of a tree *; accumulate results into said VEC.
785         (build_ctor_vtbl_group): Use a VEC rather than a TREE_LIST for the
786         accumulated initializers.  Pass the vtable to accumulate_vtbl_inits.
787         (accumulate_vtbl_inits): Add extra vtable tree parameter; take a VEC
788         instead of a tree.
789         (dfs_accumulate_vtbl_inits): Likewise.  Change return type to void.
790         (build_vtbl_initializer): Add VEC parameter; accumulate initializers
791         into it.
792         (dfs_build_secondary_vptr_vtt_inits): Use CONSTRUCTOR_APPEND_ELT
793         rather than tree_cons.
794         (build_vbase_offset_vtbl_entries): Likewise.
795         (add_vcall_offset): Likewise.
796         (build_rtti_vtbl_entries): Likewise.
797         * cp-tree.h (initialize_artificial_var): Take a VEC instead of a tree.
798         * decl.c (initialize_artificial_var): Use build_constructor instead
799         of build_constructor_from_list.
801 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
803         PR c++/44294
804         * class.c (layout_class_type): Check MAX_FIXED_MODE_SIZE on
805         bit-field.
807 2010-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
809         * parser.c (cp_parser_mem_initializer_list): Change error text.
811 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
813         * cp-objcp-common.c (shadowed_var_for_decl): Change into
814         tree_decl_map hashtab from tree_map.
815         (decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Adjust.
816         (init_shadowed_var_for_decl): Adjust initialization.
818         PR c++/44361
819         * cvt.c (convert_to_void): If implicit is NULL, call mark_rvalue_use
820         instead of calling mark_exp_read only when not an assignment.
822         PR debug/44367
823         * semantics.c (finalize_nrv): Don't copy DECL_ARTIFICIAL, DECL_IGNORED_P,
824         DECL_SOURCE_LOCATION and DECL_ABSTRACT_ORIGIN from var to result.
825         Set DECL_VALUE_EXPR on var.
827 2010-06-02  Jason Merrill  <jason@redhat.com>
829         * error.c (dump_type): Improve typedef handling.
831         PR c++/9726
832         PR c++/23594
833         PR c++/44333
834         * name-lookup.c (same_entity_p): New.
835         (ambiguous_decl): Multiple declarations of the same entity
836         are not ambiguous.
838 2010-06-01  Jason Merrill  <jason@redhat.com>
840         DR 990
841         * call.c (add_list_candidates): Prefer the default constructor.
842         (build_aggr_conv): Treat missing initializers like { }.
843         * typeck2.c (process_init_constructor_record): Likewise.
844         * init.c (expand_default_init): Use digest_init for
845         direct aggregate initialization, too.
847         * call.c (add_list_candidates): Split out...
848         (build_user_type_conversion_1): ...from here.
849         (build_new_method_call): And here.
850         (implicit_conversion): Propagate LOOKUP_NO_NARROWING.
852         PR c++/44358
853         * call.c (build_list_conv): Set list-initialization flags properly.
855 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
857         * typeck2.c (build_x_arrow): Make types_memoized a VEC.
859 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
860             Matthew Gingell  <gingell@adacore.com>
862         * Make-lang.in (CXX_C_OBJS): Add c-ada-spec.o.
863         * decl2.c: Include langhooks.h and c-ada-spec.h.
864         (cpp_check, collect_source_refs, collect_ada_namespace,
865         collect_all_refs): New functions.
866         (cp_write_global_declarations): Add handling of -fdump-ada-spec.
867         * lang-specs.h: Ditto.
869 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
871         * cp-tree.h (cp_build_function_call_nary): Declare.
872         * typeck.c (cp_build_function_call_nary): Define.
873         * decl.c (register_dtor_fn): Use it instead of
874         cp_build_function_call.
875         (cxx_maybe_build_cleanup): Likewise.
876         * decl2.c (generate_ctor_or_dtor_function): Likewise.
877         * except.c (do_get_exception_ptr): Likewise.
878         (do_begin_catch): Likewise.
879         (do_allocate_exception): Likewise.
880         (do_free_exception): Likewise.
881         (build_throw): Likewise.  Use cp_build_function_call_vec instead
882         of cp_build_function_call.
883         (do_end_catch): Likewise.
885 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
887         * cp-tree.h (struct cp_decl_specifier_seq): Move type_location field up.
888         (struct cp_declarator): Move id_loc field up.
890 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
892         * cp-tree.h (ATTRIBUTE_GCC_CXXDIAG): Remove.  Require that
893         this file is included before c-common.h.  Define GCC_DIAG_STYLE
894         before including diagnostic-core.h and toplev.h.
895         (pedwarn_cxx98): Use ATTRIBUTE_GCC_DIAG.
896         * pt.c: Include cp-tree.h before c-common.h.
898 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
900         * tree.c (c_register_addr_space): Add stub.
902 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
904         * g++spec.c (lang_specific_driver): Use fatal_error instead of
905         fatal.
907 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
909         Revert fix of PR c++/44188
910         * cp-tree.h (typedef_variant_p): Revert moving this declaration to
911         gcc/tree.h.
912         * tree.c (typedef_variant_p): Revert moving this definition to
913         gcc/tree.c.
914         * decl.c (grokdeclarator): Revert naming typedef handling.
916 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
918         * call.c: Include diagnostic-core.h instead of diagnostic.h.
919         * cp-lang.c: Don't include diagnostic.h
920         * name-lookup.c: Include diagnostic-core.h instead of
921         diagnostic.h.
922         (cp_emit_debug_info_for_using): Use seen_error.
923         * optimize.c: Include diagnostic-core.h instead of diagnostic.h.
924         * parser.c: Include diagnostic-core.h instead of diagnostic.h.
925         * pt.c (iterative_hash_template_arg): Use seen_error.
926         * repo.c: Include diagnostic-core.h instead of diagnostic.h.
927         * typeck2.c: Include diagnostic-core.h instead of diagnostic.h.
928         * Make-lang.in (cp/cp-lang.o, cp/typeck2.o, cp/call.o, cp/repo.o,
929         cp/optimize.o, cp/parser.o, cp/name-lookup.o): Update
930         dependencies.
932 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
934         PR c++/44188
935         * cp-tree.h (typedef_variant_p): Move this declaration to
936         gcc/tree.h.
937         * tree.c (typedef_variant_p): Move this definition to gcc/tree.c.
938         * decl.c (grokdeclarator): Do not rename debug info of an
939         anonymous tagged type named by a typedef.
941 2010-05-27  Jason Merrill  <jason@redhat.com>
943         PR c++/43555
944         * decl.c (grokdeclarator) [cdk_pointer et al]: Force evaluation of
945         anonymous VLA size.
947 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
949         PR bootstrap/44287
950         * rtti.c (emit_support_tinfos): Check for NULL_TREE.
951         * class.c (layout_class_type): Likewise.
952         * decl.c (finish_enum): Likewise.
953         * mangle.c (write_builitin_type): Likewise.
955 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
957         * cp-tree.h (cp_decl_specifier_seq): Add new bifield
958         explicit_int128_p.
959         * decl.c (grokdeclarator): Handle __int128.
960         * parser.c (cp_lexer_next_token_is_decl_specifier_ke): Likewise.
961         (cp_parser_simple_type_specifier): Likewise.
962         * rtti.c (emit_support_tinfos): Add int128 nodes for rtti.
963         * typeck.c (cp_common_type): Handle __int128.
964         * mangle.c (integer_type_codes): Add itk_int128 and
965         itk_unsigned_int128.
967 2010-05-26  Jason Merrill  <jason@redhat.com>
969         PR c++/43382
970         * pt.c (tsubst_pack_expansion): Don't get confused by recursive
971         unification.
973 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
975         * cp-lang.c: Do not include expr.h.
977 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
979         * decl.c: Do not include rtl.h
980         * semantics.c: Likewise.
982 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
984         * cp-tree.h: Do not include splay-tree.h.
985         (struct prtmem_cst): Remove unused field and false comment.
986         * typeck.c: Do not include rtl.h, expr.h, and tm_p.h.
987         * optimize.c: Do not inclde rtl.h, insn-config.h, and integrate.h.
988         * init.c: Do not include rtl.h and expr.h.
989         * class.c: Do not include rtl.h.  Include splay-tree.h.
990         (build_clone): Use plain NULL instead of NULL_RTX.
991         * decl.c: Do not include expr.h.  Explain why rtl.h has to be
992         included.  Include splay-tree.h.
993         * method.c: Do not include rtl.h and expr.h.
994         (use_thunk): Use plain NULL instead of NULL_RTX.
995         * except.c: Do not include rtl.h, expr.h, and libfuncs.h.
996         * tree.c: Do not include rtl.h, insn-config.h, integrate.h,
997         and target.h.  Include splay-tree.h.
998         * expr.c: Do not include rtl.h and expr.h.
999         * pt.c: Do not include obstack.h and rtl.h.
1000         (tsubst_friend_function): Use plain NULL instead of NULL_RTX.
1001         (tsubst_decl): Likewise.
1002         (instantiate_decl): Likewise.
1003         * semantics.c: Do not include exprt.h and debug.h.  Explain why
1004         rtl.h has to be included.
1005         * decl2.c: Do not include rtl.h and expr.h.  Include splay-tree.h.
1006         * call.c: Do not include rtl.h and expr.h.
1007         * search.c: Do not include obstack.h and rtl.h.
1008         * friend.c: Do not include rtl.h and expr.h.
1009         * Make-lang.in: Update dependencies.
1011 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
1013         PR c++/18249
1014         * parser.c (non_integral_constant): Add NIC_NONE.
1015         (required_token): Add RT_NONE.
1016         (cp_parser_unary_expression): Initialize non_constant_p
1017         to NIC_NONE.
1018         (cp_parser_asm_definition): Initialize missing to RT_NONE.
1019         (cp_parser_primary_expression, cp_parser_postfix_expression,
1020         cp_parser_cast_expression, cp_parser_binary_expression,
1021         cp_parser_functional_cast): Fix formatting.
1023 2010-05-25  Shujing Zhao  <pearly.zhao@oracle.com>
1024         
1025         PR c++/18249
1026         * parser.c: Remove inclusion of dyn-string.h.
1027         (non_integral_constant): New enum.
1028         (name_lookup_error): New enum.
1029         (required_token): New enum.
1030         (cp_parser_required_error): New function.
1031         (cp_parser_require): Change the type of variable token_desc to
1032         required_token and use cp_parser_required_error.
1033         (cp_parser_require_keyword): Likewise.
1034         (cp_parser_error): Use gmsgid as parameter.
1035         (cp_parser_name_lookup_error): Change the type of variable desired to
1036         name_lookup_error and put the diagnostic in the full sentences. Change
1037         caller.
1038         (cp_parser_non_integral_constant_expression): Change the type of the
1039         variable thing to non_integral_constant and put the diagnostics in
1040         full sentences. Change caller.
1042 2010-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1044         PR middle-end/44100
1045         * typeck.c (cp_build_unary_op): Fold offsetof-like computations.
1047 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
1049         * error.c (cp_diagnostic_starter): Update call to
1050         diagnostic_build_prefix.
1051         (cp_print_error_function,
1052         print_instantiation_partial_context_line): Check show_column flag
1053         in context.
1055 2010-05-24  Jason Merrill  <jason@redhat.com>
1057         PR c++/41510
1058         * decl.c (check_initializer): Don't wrap an init-list in a
1059         TREE_LIST.
1060         * init.c (build_aggr_init): Don't assume copy-initialization if
1061         init has CONSTRUCTOR_IS_DIRECT_INIT.
1062         * call.c (build_new_method_call): Sanity check.
1064 2010-05-24  Nathan Froyd  <froydnj@codesourcery.com>
1066         * rtti.c (tinfo_base_init): Use build_constructor instead of
1067         build_constructor_from_list.  Don't cons a tree node for
1068         returning.
1069         (generic_initializer): Use build_constructor_single instead of
1070         build_constructor_from_list.
1071         (ptr_initializer): Use build_constructor instead of
1072         build_constructor_from_list
1073         (ptm_initializer): Likewise.
1074         (class_initializer): Likewise.  Take varargs instead of TRAIL.
1075         (get_pseudo_ti_init): Adjust calls to class_initializer.  Use
1076         build_constructor instead of build_constructor_from_list.
1078 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
1080         * semantics.c: Include bitmap.h.
1081         * Make-lang.in: Update dependencies.
1083 2010-05-22  Jan Hubicka  <jh@suse.cz>
1085         * decl2.c (maybe_emit_vtables): Produce same comdat group when outputting
1086         comdat vtables.
1087         (cxx_callgraph_analyze_expr): Remove code marking vtables needed.
1089 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
1091         * cxx-pretty-print.c: Correct merge error.
1093 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
1095         * error.c: Include tree-diagnostic.h and tree-pretty-print.h.
1096         (cp_print_error_function): Use diagnostic_abstract_origin macro.
1097         (cp_printer): Handle %K here using percent_K_format.
1098         * cxx-pretty-print.c: Include tree-pretty-print.h.
1099         * Make-lang.in (cp/error.o, cp/cxx-pretty-print.o): Update
1100         dependencies.
1102 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1104         * error.c, tree.c, typeck2.c, cxx-pretty-print.c, mangle.c:
1105         Clean up redundant includes.
1107 2010-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
1109         PR c++/30298
1110         * decl.c (xref_basetypes): Return false in case of ill-formed
1111         redefinition.
1113 2010-05-19  Jason Merrill  <jason@redhat.com>
1115         * call.c (reference_binding): Use cp_build_qualified_type_real
1116         and cp_type_quals consistently.
1117         (add_function_candidate): Likewise.
1118         (build_conditional_expr): Likewise.
1119         (convert_like_real): Likewise.
1120         (type_passed_as): Likewise.
1121         * class.c (add_method): Likewise.
1122         (same_signature_p): Likewise.
1123         (layout_class_type): Likewise.
1124         * decl.c (cxx_init_decl_processing): Likewise.
1125         (cp_fname_init): Likewise.
1126         (grokdeclarator): Likewise.
1127         * decl2.c (cp_reconstruct_complex_type): Likewise.
1128         * init.c (build_new_1): Likewise.
1129         * method.c (do_build_copy_constructor): Likewise.
1130         (implicitly_declare_fn): Likewise.
1131         * pt.c (tsubst_aggr_type): Likewise.
1132         (tsubst): Likewise.
1133         * rtti.c (init_rtti_processing): Likewise.
1134         (build_headof): Likewise.
1135         (build_dynamic_cast_1): Likewise.
1136         (tinfo_base_init): Likewise.
1137         (emit_support_tinfos): Likewise.
1138         * semantics.c (capture_decltype): Likewise.
1139         * tree.c (cv_unqualified): Likewise.
1140         * typeck.c (composite_pointer_type): Likewise.
1141         (string_conv_p): Likewise.
1143         * mangle.c (write_CV_qualifiers_for_type): Tweak.
1145         * call.c (initialize_reference): Use CP_TYPE_CONST_P.
1146         * decl.c (start_decl): Likewise.
1147         * semantics.c (finish_compound_literal): Likewise.
1148         * typeck.c (check_return_expr): Use CP_TYPE_VOLATILE_P.
1149         (cp_type_readonly): Remove.
1150         * cp-tree.h: Remove declaration.
1152         * typeck.c (merge_types): Preserve memfn quals.
1154         * decl.c (grokdeclarator): Don't check quals on fn type.
1155         * typeck.c (cp_apply_type_quals_to_decl): Likewise.
1156         * tree.c (cp_build_qualified_type_real): Simplify qualifier checking.
1158         PR c++/44193
1159         * typeck.c (type_memfn_quals): New fn.
1160         (apply_memfn_quals): New fn.
1161         (cp_type_quals): Return TYPE_UNQUALIFIED for FUNCTION_TYPE.
1162         (cp_type_readonly): Use cp_type_quals.
1163         * cp-tree.h: Add declarations.
1164         * tree.c (cp_build_qualified_type_real): Don't set, but do
1165         preserve, quals on FUNCTION_TYPE.
1166         (strip_typedefs): Use apply_memfn_quals and type_memfn_quals.
1167         * decl.c (build_ptrmem_type): Likewise.
1168         (grokdeclarator): Likewise.
1169         (static_fn_type): Likewise.
1170         * decl2.c (change_return_type): Likewise.
1171         (cp_reconstruct_complex_type): Likewise.
1172         * pt.c (tsubst_function_type): Likewise.
1173         (unify): Likewise.
1174         (tsubst): Likewise.  Drop special FUNCTION_TYPE substitution code.
1176 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
1178         * tree.c (build_min_non_dep_call_vec): Update comment.
1180 2010-05-17  Jason Merrill  <jason@redhat.com>
1182         * call.c (struct z_candidate): Add explicit_targs field.
1183         (add_template_candidate_real): Set it.
1184         (build_over_call): Use it to control init-list warning.
1186         PR c++/44157
1187         * call.c (build_over_call): Limit init-list deduction warning to
1188         cases where the argument is actually an init-list.
1190         PR c++/44158
1191         * call.c (build_over_call): Don't do bitwise copy for move ctor.
1193 2010-05-17  Dodji Seketeli  <dodji@redhat.com>
1194             Jason Merrill  <jason@redhat.com>
1196         PR c++/44108
1197         * decl.c (compute_array_index_type): Call mark_rvalue_use.
1199 2010-05-15  Jason Merrill  <jason@redhat.com>
1201         * cp-tree.h (TYPE_NOEXCEPT_P): New macro.
1202         * except.c (begin_eh_spec_block): Use MUST_NOT_THROW_EXPR if
1203         TYPE_NOEXCEPT_P.
1204         (finish_eh_spec_block): Adjust.
1206 2010-05-15  Jakub Jelinek  <jakub@redhat.com>
1208         PR c++/44148
1209         * pt.c (tsubst): Unshare template argument.
1211 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
1213         * decl.c: Include tree-iterator.h, as fixup for tree-inline.h changes.
1214         * Make-lang.in: Fix dependencies accordingly.
1216 2010-05-14  Jason Merrill  <jason@redhat.com>
1218         C++ DR 475
1219         * except.c (build_throw): Simplify, adjust for DR 475.
1221         PR c++/44127
1222         * except.c (dtor_nothrow): Return nonzero for type with
1223         trivial destructor.
1225         PR c++/44127
1226         * cp-gimplify.c (gimplify_must_not_throw_expr): Use
1227         gimple_build_eh_must_not_throw.
1229 2010-05-14  Martin Jambor  <mjambor@suse.cz>
1231         * cp-lang.c (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove both its undef
1232         and define.
1234 2010-05-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
1236         * call.c (build_new_method_call): Change warning text.
1237         * typeck2.c (build_functional_cast): Change error text.
1239 2010-05-14  Shujing Zhao  <pearly.zhao@oracle.com>
1241         PR c++/30566
1242         * name-lookup.c (pushdecl_maybe_friend): Avoid the warnings about
1243         shadowing the outer parameter or variables by the declaration of
1244         nested function in nested structure or class. Warn the shadowing by
1245         the declaration of nested lambda expression.
1247 2010-05-13  Jason Merrill  <jason@redhat.com>
1249         * typeck.c (cp_build_array_ref): Factor out from...
1250         (build_array_ref): ...here.  Drop complain parm.
1251         (build_new_op): Adjust.
1252         * class.c (build_vtbl_ref_1): Adjust.
1253         * decl2.c (grok_array_decl): Adjust.
1254         * cp-tree.h: Adjust prototypes.
1256 2010-05-13  Jan Hubicka  <jh@suse.cz>
1258         * decl.c (cp_finish_decl): Do not worry about used attribute.
1260 2010-05-12  Jason Merrill  <jason@redhat.com>
1262         * typeck.c (build_array_ref): Take complain parm.
1263         * cp-tree.h: Add it to prototype.
1264         * call.c (build_new_op): Pass it.
1265         * class.c (build_vtbl_ref): Pass it.
1266         * decl2.c (grok_array_decl): Pass it.
1268         PR bootstrap/44048
1269         PR target/44099
1270         * cp-tree.def (NULLPTR_TYPE): Remove.
1271         * cp-tree.h (NULLPTR_TYPE_P): New.
1272         (SCALAR_TYPE_P): Use it.
1273         (nullptr_type_node): New.
1274         (cp_tree_index): Add CPTI_NULLPTR_TYPE.
1275         * decl.c (cxx_init_decl_processing): Call record_builtin_type on
1276         nullptr_type_node.
1277         * cvt.c (ocp_convert): Use NULLPTR_TYPE_P instead of NULLPTR_TYPE.
1278         * cxx-pretty-print.c (pp_cxx_constant): Likewise.
1279         * error.c (dump_type, dump_type_prefix, dump_type_suffix): Likewise.
1280         * mangle.c (write_type): Likewise.
1281         * name-lookup.c (arg_assoc_type): Likewise.
1282         * typeck.c (build_reinterpret_cast_1): Likewise.
1283         * rtti.c (typeinfo_in_lib_p): Likewise.
1284         (emit_support_tinfos): Remove local nullptr_type_node.
1286         * cp-tree.h (UNKNOWN_TYPE): Remove.
1287         * decl.c (cxx_init_decl_processing): Use LANG_TYPE instead.
1288         * error.c (dumy_type, dump_type_prefix, dump_type_suffix): Likewise.
1289         * typeck2.c (cxx_incomplete_type_diagnostic): Likewise.
1290         * class.c (instantiate_type): Check unknown_type_node rather than
1291         UNKNOWN_TYPE.
1292         * name-lookup.c (maybe_push_decl): Likewise.
1293         * rtti.c (get_tinfo_decl_dynamic): Likewise.
1294         (get_typeid): Likewise.
1295         * semantics.c (finish_offsetof): Likewise.
1297         PR c++/20669
1298         * call.c (add_template_candidate_real): If deduction fails, still
1299         add the template as a non-viable candidate.
1300         (equal_functions): Handle template candidates.
1301         (print_z_candidate): Likewise.
1302         (print_z_candidates): Likewise.
1303         (build_new_function_call): Likewise.
1305         * cp-tree.h (LOOKUP_LIST_ONLY): New.
1306         * call.c (add_candidates): Enforce it.
1307         (build_new_method_call): Try non-list ctor if no viable list ctor.
1308         (build_user_type_conversion_1): Likewise.
1310         * call.c (add_candidates): Distinguish between type(x) and
1311         x.operator type().
1312         (convert_class_to_reference): Set LOOKUP_NO_CONVERSION.
1313         (build_new_method_call): Give better error for conversion op.
1315         * call.c (add_candidates): Add first_arg and return_type parms.
1316         Add special constructor/conversion op handling.
1317         (convert_class_to_reference): Use it.
1318         (build_user_type_conversion_1): Likewise.
1319         (build_op_call): Likewise.
1320         (build_new_method_call): Likewise.
1321         (build_new_op): Adjust.
1322         (perform_overload_resolution): Adjust.
1324 2010-05-11  Paolo Carlini  <paolo.carlini@oracle.com>
1326         PR c++/34272
1327         PR c++/43630
1328         PR c++/34491
1329         * pt.c (process_partial_specialization): Return error_mark_node
1330         in case of unused template parameters in partial specialization.
1332 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
1334         PR c++/44062
1335         * semantics.c (finish_expr_stmt): Don't call mark_exp_read here...
1336         * cvt.c (convert_to_void): ... but here.  If expr is a COMPOUND_EXPR,
1337         look at its second operand.
1339 2010-05-10  Jason Merrill  <jason@redhat.com>
1341         PR c++/44017
1342         * semantics.c (baselink_for_fns): Revert earlier change.
1344         PR c++/44045
1345         * typeck.c (cp_build_modify_expr): Complain about assignment to
1346         array from init list.
1348 2010-05-10  Fabien Chêne  <fabien.chene@gmail.com>
1350         PR c++/43719
1351         * decl.c (check_initializer): strip array type before checking for
1352         uninitialized const or ref members.
1354 2010-05-07  Fabien Chêne  <fabien.chene@gmail.com>
1356         PR c++/43951
1357         * init.c (diagnose_uninitialized_cst_or_ref_member_1): Returns the
1358         error count. Emit errors only if compain is true.
1359         (build_new_1): Do not return error_mark_node if
1360         diagnose_uninitialized_cst_or_ref_member_1 does not diagnose any
1361         errors. Delay the check for user-provided constructor.
1362         (perform_member_init): Adjust.
1363         * cp-tree.h (diagnose_uninitialized_cst_or_ref_member): Change the
1364         prototype.
1366 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
1367             Jason Merrill  <jason@redhat.com>
1369         Add support for C++0x nullptr.
1370         * cp-tree.def: Add NULLPTR_TYPE.
1371         * cp-tree.h: Add nullptr_node.
1372         (cp_tree_index): Add CPTI_NULLPTR.
1373         (SCALAR_TYPE_P): Add NULLPTR_TYPE.
1374         * call.c (null_ptr_cst_p): Handle nullptr.
1375         (standard_conversion): Likewise.
1376         (convert_arg_to_ellipsis): Likewise.
1377         * mangle.c (write_type): Likewise.
1378         * name-lookup.c (arg_assoc_type): Likewise.
1379         * parser.c (cp_parser_primary_expression): Likewise.
1380         * typeck.c (cp_build_binary_op): Likewise.
1381         (build_reinterpret_cast_1): Likewise.
1382         * error.c (dump_type): Likewise.
1383         (dump_type_prefix, dump_type_suffix): Likewise.
1384         * decl.c (cxx_init_decl_processing): Likewise.
1385         * cxx-pretty-print.c (pp_cxx_constant): Likewise.
1386         * cvt.c (ocp_convert): Likewise.
1387         * rtti.c (typeinfo_in_lib_p, emit_support_tinfos): Put
1388         nullptr_t tinfo in libsupc++.
1390 2010-05-06  Jason Merrill  <jason@redhat.com>
1392         * semantics.c (simplify_aggr_init_expr): Use INIT_EXPR.
1394 2010-04-22  Jakub Jelinek <jakub@redhat.com>
1395             Dodji Seketeli <dodji@redhat.com>
1397         PR c/18624
1398         * cp-tree.h (mark_exp_read, rvalue_use, lvalue_use, type_use):
1399         Declare ...
1400         * expr.c (mark_exp_read, rvalue_use, lvalue_use, type_use): ... new fns.
1401         * typeck.c (cxx_sizeof_expr, cxx_alignof_expr): Call type_use.
1402         (decay_conversion, perform_integral_promotions): Call rvalue_use.
1403         (cp_build_unary_op): Call lvalue_use.
1404         * decl.c (unused_but_set_errorcount): New variable.
1405         (poplevel): Issue -Wunused-but-set-variable diagnostics.
1406         (duplicate_decls): Merge DECL_READ_P flags.
1407         (start_cleanup_fn): Set DECL_READ_P flag.
1408         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
1409         * tree.c (rvalue): Call rvalue_use.
1410         * pt.c (convert_nontype_argument): Likewise.
1411         * semantics.c (finish_expr_stmt, finish_asm_stmt, finish_typeof,
1412         finish_decltype_type): Likewise.
1413         * call.c (convert_like_real) <ck_identity, ck_user>: Call rvalue use.
1414         (build_x_va_arg, build_new_method_call, build_over_call): Call lvalue_use
1415         or rvalue_use depending on the expr.
1416         * init.c (build_new, build_delete): Likewise.
1417         * rtti.c (build_typeid, build_dynamic_cast_1): Likewise.
1419 2010-05-05  Jason Merrill  <jason@redhat.com>
1421         PR c++/43787
1422         * cp-gimplify.c (cp_gimplify_expr): Remove copies of empty classes.
1423         * call.c (build_over_call): Don't try to avoid INIT_EXPR copies here.
1425 2010-05-04  Paolo Carlini  <paolo.carlini@oracle.com>
1427         PR c++/43028
1428         * pt.c (unify): Check each elt for error_mark_node.
1430 2010-05-04  Jason Merrill  <jason@redhat.com>
1432         PR c++/38064
1433         * typeck.c (cp_build_binary_op): Allow enums for <> as well.
1435 2010-05-04  Paolo Carlini  <paolo.carlini@oracle.com>
1437         PR c++/43705
1438         * call.c (build_new_method_call): Return error_mark_node if fns is
1439         NULL_TREE.
1441 2010-05-03  Dodji Seketeli  <dodji@redhat.com>
1443         PR c++/43953
1444         * pt.c (most_specialized_class): Pretend we are processing
1445         a template decl during the call to coerce_template_parms.
1447 2010-05-03  Jason Merrill  <jason@redhat.com>
1449         PR c++/42810
1450         PR c++/43680
1451         * decl.c (finish_enum): Use the TYPE_MIN_VALUE and TYPE_MAX_VALUE
1452         from the selected underlying type unless -fstrict-enums.  Set
1453         ENUM_UNDERLYING_TYPE to have the restricted range.
1454         * cvt.c (type_promotes_to): Use ENUM_UNDERLYING_TYPE.
1455         * class.c (check_bitfield_decl): Likewise.
1457 2010-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1459         PR c++/43951
1460         * init.c (build_new_1): Revert the accidental checkin in
1461         revision 158918.
1463 2010-04-30  Jason Merrill  <jason@redhat.com>
1465         PR c++/43868
1466         * cxx-pretty-print.c (pp_cxx_decl_specifier_seq): Move pmf handling...
1467         (pp_cxx_type_specifier_seq): ...here.
1469 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
1471         * optimize.c, parser.c, mangle.c, cp-tree.h: Do not include varray.h.
1472         * Make-lang.in: Don't include varray.h dependency in CXX_TREE_H.
1474 2010-04-30  Shujing Zhao  <pearly.zhao@oracle.com>
1476         PR c++/43779
1477         * typeck.c (warn_args_num): New function.
1478         (convert_arguments): Use warn_args_num to print the diagnostic
1479         messages. 
1481 2010-04-29  Fabien Chêne  <fabien.chene@gmail.com>
1483         PR c++/43890
1484         * init.c (diagnose_uninitialized_cst_or_ref_member): check for
1485         user-provided constructor while recursing.
1487 2010-04-28  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1489         PR c++/9335
1490         * error.c (print_instantiation_partial_context_line): Handle
1491         recursive instantiation.
1492         (print_instantiation_partial_context): Likewise.
1494 2010-04-27  Jason Merrill  <jason@redhat.com>
1496         * init.c (perform_member_init): Check CLASS_TYPE_P.
1498 2010-04-27  Fabien Chêne  <fabien.chene@gmail.com>
1500         PR c++/29043
1501         * init.c (perform_member_init): check for uninitialized const or
1502         reference members, including array types.
1504 2010-04-24  Jason Merrill  <jason@redhat.com>
1506         * tree.c (get_fns): Split out from get_first_fn.
1507         * cp-tree.h: Declare it.
1508         * search.c (shared_member_p): Use it.
1509         * semantics.c (finish_qualified_id_expr): Simplify.
1510         (finish_id_expression): Simplify.
1512         * semantics.c (finish_non_static_data_member): Call maybe_dummy_object
1513         whenever object is NULL_TREE.  Don't do 'this' capture here.
1514         (finish_qualified_id_expr): Pass NULL_TREE.
1515         (finish_id_expression): Likewise.
1516         (lambda_expr_this_capture): Likewise.
1518         * semantics.c (finish_qualified_id_expr): Use maybe_dummy_object
1519         rather than checking current_class_ref directly.
1520         (finish_call_expr): Likewise.
1522         PR c++/43856
1523         * name-lookup.c (qualify_lookup): Disqualify lambda op().
1524         * class.c (current_nonlambda_class_type): New fn.
1525         * semantics.c (nonlambda_method_basetype): New.
1526         * cp-tree.h: Declare them.
1527         * tree.c (maybe_dummy_object): Handle implicit 'this' capture.
1529         * semantics.c (baselink_for_fns): Correct BASELINK_BINFO.
1531         PR c++/43875
1532         * semantics.c (lambda_return_type): Complain about
1533         braced-init-list.
1535         PR c++/43790
1536         * tree.c (cv_unqualified): Handle error_mark_node.
1538         PR c++/41468
1539         * call.c (convert_like_real) [ck_ambig]: Just return error_mark_node
1540         if we don't want errors.
1542         PR c++/41468
1543         * class.c (convert_to_base): Add complain parameter.  Pass
1544         ba_quiet to lookup_base if we don't want errors.
1545         (build_vfield_ref): Pass complain to convert_to_base.
1546         * call.c (convert_like_real): Likewise.
1547         (initialize_reference): Likewise.
1548         (perform_direct_initialization_if_possible): Pass complain to
1549         convert_like_real.
1550         * cp-tree.h: Adjust.
1552 2010-04-27  Fabien Chêne  <fabien.chene@gmail.com>
1553             Jason Merrill  <jason@redhat.com>
1555         PR c++/42844
1556         * decl.c (check_for_uninitialized_const_var): Handle classes that need
1557         constructing, too.
1558         (check_initializer): Call it for classes that need constructing, too.
1559         * class.c (in_class_defaulted_default_constructor): New.
1560         * cp-tree.h: Declare it.
1562 2010-04-20  Jason Merrill  <jason@redhat.com>
1564         PR c++/9335
1565         * init.c (constant_value_1): Treat error_mark_node as a constant
1566         if DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P is set.
1567         * cvt.c (ocp_convert): Handle getting error_mark_node from
1568         integral_constant_value.
1569         * decl.c (compute_array_index_type): Likewise.
1571 2010-04-20  Dodji Seketeli  <dodji@redhat.com>
1573         PR c++/43800
1574         PR c++/43704
1575         * typeck.c (incompatible_dependent_types_p): If one of the
1576         compared types if not a typedef then honour their main variant
1577         equivalence.
1579 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1581         * cp-tree.h (TYPE_REF_IS_RVALUE): Remove.
1583 2010-04-19  Dodji Seketeli  <dodji@redhat.com>
1585         PR c++/43704
1586         * typeck.c (structural_comptypes): Test dependent typedefs
1587         incompatibility before testing for their main variant based
1588         equivalence.
1590 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1592         * cp-tree.h (SCOPED_ENUM_P, UNSCOPED_ENUM_P, SET_SCOPED_ENUM_P): Use
1593         ENUM_IS_SCOPED bit instead of TYPE_LANG_FLAG_5.
1595 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1597         * decl.c (cxx_init_decl_processing): Remove second argument in call to
1598         build_common_tree_nodes.
1600 2010-04-14  Jason Merrill  <jason@redhat.com>
1602         PR c++/36625
1603         * parser.c (cp_parser_parenthesized_expression_list): Change
1604         is_attribute_list parm to int to indicate whether or not to
1605         handle initial identifier specially.
1606         (cp_parser_attribute_list): Use attribute_takes_identifier_p.
1608 2010-04-13  Jason Merrill  <jason@redhat.com>
1610         * call.c (type_decays_to): Check MAYBE_CLASS_TYPE_P instead of
1611         CLASS_TYPE_P.
1612         * parser.c (cp_parser_lambda_expression): Complain about lambda in
1613         unevaluated context.
1614         * pt.c (iterative_hash_template_arg): Don't crash on lambda.
1616 2010-04-12  Jason Merrill  <jason@redhat.com>
1618         PR c++/43641
1619         * semantics.c (maybe_add_lambda_conv_op): Use build_call_a and tweak
1620         return value directly.
1622         * call.c (type_decays_to): Call cv_unqualified for non-class type.
1624 2010-04-12  Fabien Chene  <fabien.chene@gmail.com>
1626         PR c++/25811
1627         * cp-tree.h (diagnose_uninitialized_cst_or_ref_member): Declare.
1628         * init.c (build_new_1): Check for uninitialized const members and
1629         uninitialized reference members, when using new without
1630         new-initializer. Call diagnose_uninitialized_cst_or_ref_member.
1631         (diagnose_uninitialized_cst_or_ref_member): Define, call
1632         diagnose_uninitialized_cst_or_ref_member_1.
1633         (diagnose_uninitialized_cst_or_ref_member_1): New function.
1635 2010-04-12  Richard Guenther  <rguenther@suse.de>
1637         PR c++/43611
1638         * semantics.c (expand_or_defer_fn_1): Do not keep extern
1639         template inline functions.
1641 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1643         PR c++/28584
1644         * typeck.c (cp_build_c_cast): Warn for casting integer to larger
1645         pointer type.
1647 2010-04-07  Jason Merrill  <jason@redhat.com>
1649         PR c++/43016
1650         * decl.c (start_preparsed_function): Do defer nested functions.
1652         PR c++/11094, DR 408
1653         * cp-tree.h (VAR_HAD_UNKNOWN_BOUND, SET_VAR_HAD_UNKNOWN_BOUND): New.
1654         * decl2.c (finish_static_data_member_decl): Set it.
1655         * decl.c (duplicate_decls): Propagate it.
1656         * pt.c (tsubst_decl): Don't substitute the domain of an array
1657         VAR_DECL if it's set.
1658         (regenerate_decl_from_template): Substitute it here.
1659         (type_dependent_expression_p): Return true if it's set.
1660         * semantics.c (finish_decltype_type): Instantiate such a variable.
1661         * typeck.c (cxx_sizeof_expr): Likewise.
1662         (strip_array_domain): New.
1664         PR c++/43145
1665         * name-lookup.c (current_decl_namespace): Non-static.
1666         (pop_nested_namespace): Sanity check.
1667         * cp-tree.h: Declare current_decl_namespace.
1668         * decl.c (grokvardecl): Use it instead of current_namespace.
1669         (grokfndecl): Likewise.
1671         PR c++/38392
1672         * pt.c (tsubst_friend_function): Instatiate a friend that has already
1673         been used.
1675         * pt.c (print_template_statistics): New.
1676         * cp-tree.h: Declare it.
1677         * tree.c (cxx_print_statistics): Call it.
1679         PR c++/41970
1680         * decl.c (grokvardecl): Tweak warning message.
1681         (grokfndecl): Likewise.
1683 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
1685         PR c++/42697
1686         *pt.c (tsubst_decl): Get the arguments of a specialization from
1687         the specialization template, not from the most general template.
1689 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
1691         PR c++/40239
1692         * typeck2.c (process_init_constructor_record):
1693         value-initialize members that are are not explicitely
1694         initialized.
1696 2010-04-07  Jie Zhang  <jie@codesourcery.com>
1698         PR c++/42556
1699         * typeck2.c (split_nonconstant_init_1): Drop empty CONSTRUCTOR
1700         when all of its elements are non-constant and have been split out.
1702 2010-04-06  Taras Glek  <taras@mozilla.com>
1703             Jason Merrill  <jason@redhat.com>
1705         * parser.c (cp_parser_class_specifier): Set class location to that
1706         of IDENTIFIER_NODE instead of '{' when possible.
1707         * semantics.c (begin_class_definition): Do not overide locations
1708         with less precise ones.
1710 2010-04-06  Jason Merrill  <jason@redhat.com>
1712         PR c++/43648
1713         * name-lookup.c (constructor_name_p): Allow X::~X even for typedefs.
1715         PR c++/43621
1716         * pt.c (maybe_update_decl_type): Check the return value from
1717         push_scope.
1719 2010-04-01  Jason Merrill  <jason@redhat.com>
1721         * decl.c (next_initializable_field): No longer static.
1722         * cp-tree.h: Declare it.
1723         * call.c (build_aggr_conv): Fail if there are more initializers
1724         than initializable fields.
1726         * semantics.c (maybe_add_lambda_conv_op): Use null_pointer_node
1727         instead of void_zero_node.
1729 2010-03-31  Dodji Seketeli  <dodji@redhat.com>
1731         PR c++/43558
1732         * cp-tree.h (TEMPLATE_TYPE_PARM_SIBLING_PARMS): New accessor macro.
1733         * pt.c (end_template_parm_list): Store sibling template parms of
1734         each TEMPLATE_TYPE_PARMs into its TEMPLATE_TYPE_PARM_SIBLING_PARMS.
1735         (push_template_decl_real): Don't store the containing template decl
1736         into the DECL_CONTEXT of TEMPLATE_TYPE_PARMs anymore.
1737         * typeck.c (get_template_parms_of_dependent_type): Get sibling parms
1738         of a TEMPLATE_TYPE_PARM from TEMPLATE_TYPE_PARM_SIBLING_PARMS.
1739         Simplify the logic.
1741 2010-03-30  Jason Merrill  <jason@redhat.com>
1743         PR c++/43076
1744         * pt.c (push_template_decl_real): Deal better with running out of
1745         scopes before running out of template parms.
1747         PR c++/41185
1748         PR c++/41786
1749         * parser.c (cp_parser_direct_declarator): Don't allow VLAs in
1750         function parameter context.  Don't print an error if parsing
1751         tentatively.
1753         PR c++/43559
1754         * pt.c (more_specialized_fn): Don't control cv-qualifier check
1755         with same_type_p.
1757 2010-03-26  Jason Merrill  <jason@redhat.com>
1759         PR c++/43509
1760         * parser.c (cp_parser_qualifying_entity): Do accept enum names in
1761         c++0x mode, but not other type-names.
1763 2010-03-26  Dodji Seketeli  <dodji@redhat.com>
1765         PR c++/43327
1766         * pt.c (add_to_template_args): Support NULL ARGS;
1767         (most_specialized_class): call coerce_template_parms on
1768         template arguments passed to get_class_bindings. Use
1769         add_to_template_args.
1770         (unify): Handle VAR_DECLs.
1772 2010-03-26  Dodji Seketeli  <dodji@redhat.com>
1774         * cp-tree.h (get_template_parms_at_level): Change unsigned parm
1775         into int.
1776         * pt.c (get_template_parms_at_level): Adjust.
1778 2010-03-25  Dodji Seketeli  <dodji@redhat.com>
1780         PR c++/43206
1781         * cp-tree.h (get_template_parms_at_level): Declare ...
1782         * pt.c (get_template_parms_at_level): ... new function.
1783         * typeck.c (get_template_parms_of_dependent_type): If a template
1784         type parm's DECL_CONTEXT isn't yet set, get its siblings from
1785         current_template_parms. Use get_template_parms_at_level. Remove
1786         useless test.
1787         (incompatible_dependent_types_p): If we get empty parms from just one
1788         of the template type parms we are comparing then the template parms are
1789         incompatible.
1791 2010-03-24  Jason Merrill  <jason@redhat.com>
1793         PR c++/43502
1794         * parser.c (make_declarator): Initialize id_loc.
1795         (cp_parser_lambda_declarator_opt): And set it.
1797 2010-03-23  Jason Merrill  <jason@redhat.com>
1799         Make lambda conversion op and op() non-static.
1800         * semantics.c (maybe_add_lambda_conv_op): Make non-static.
1801         Also add the thunk function returned by the conversion op.
1802         Mark the conversion deleted if the op() is variadic.
1803         * decl2.c (mark_used): Give helpful message about deleted conversion.
1804         * parser.c (cp_parser_lambda_declarator_opt): Don't make op() static.
1805         * semantics.c (finish_this_expr): Adjust.
1806         * mangle.c (write_closure_type_name): Adjust.
1807         * decl.c (grok_op_properties): Don't allow it.
1808         * call.c (build_user_type_conversion_1): No static conversion ops.
1809         (build_op_call): Or op().
1811         * decl2.c (change_return_type): Fix 'this' quals.
1813 2010-03-22  Jason Merrill  <jason@redhat.com>
1815         PR c++/43333
1816         * tree.c (pod_type_p): Use old meaning in C++98 mode.
1818         PR c++/43281
1819         * pt.c (contains_auto_r): New fn.
1820         (do_auto_deduction): Use it.
1821         (tsubst): Don't look at TREE_TYPE of a TEMPLATE_TYPE_PARM.
1823 2010-03-20  Simon Martin  <simartin@users.sourceforge.net>
1825         PR c++/43081:
1826         * decl2.c (grokfield): Handle invalid initializers for member
1827         functions.
1829 2010-03-20  Dodji Seketeli  <dodji@redhat.com>
1831         PR c++/43375
1832         * method.c (make_alias_for): Avoid crashing when DECL_LANG_SPECIFIC
1833         is NULL.
1834         * decl2.c (vague_linkage_p): Likewise.
1836 2010-03-18  Paolo Carlini  <paolo.carlini@oracle.com>
1838         PR c++/43418
1839         * parser.c (cp_parser_for_init_statement): Use NULL_TREE, not
1840         false, in the cp_parser_expression_statement call.
1842 2010-03-05  Jason Merrill  <jason@redhat.com>
1844         * mangle.c (mangle_decl): Give name collision error even without
1845         ASM_OUTPUT_DEF.
1847 2010-03-04  Marco Poletti  <poletti.marco@gmail.com>
1849         * pt.c (process_partial_specialization): Use error_n instead of
1850         error.
1852 2010-03-03  Jason Merrill  <jason@redhat.com>
1854         PR c++/12909
1855         * mangle.c (mangle_decl): Handle VAR_DECL, too.
1857 2010-03-03  Jason Merrill  <jason@redhat.com>
1859         PR c++/12909
1860         * mangle.c: Include cgraph.h.
1861         (mangle_decl): If the mangled name will change in a later
1862         ABI version, make the later mangled name an alias.
1863         * method.c (make_alias_for): Copy DECL_ARGUMENTS.
1864         * Make-lang.in (mangle.o): Depend on cgraph.h.
1865         * method.c (make_alias_for): Handle VAR_DECL, too.
1866         * decl2.c (vague_linkage_p): Rename from vague_linkage_fn_p.
1867         * tree.c (no_linkage_check): Adjust.
1868         * decl.c (maybe_commonize_var): Adjust.
1869         * cp-tree.h: Adjust.
1871 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
1873         * pt.c (redeclare_class_template): Use error_n and inform_n.
1875 2010-02-27  Mark Mitchell  <mark@codesourcery.com>
1877         PR c++/42748
1878         * cp-tree.h (push_tinst_level): Declare.
1879         (pop_tinst_level): Likewise.
1880         * pt.c (push_tinst_level): Give it external linkage.
1881         (pop_tinst_level): Likewise.
1882         * mangle.c (mangle_decl_string): Set the source location to that
1883         of the decl while mangling.
1885 2010-02-27  Simon Martin  <simartin@users.sourceforge.net>
1887         PR c++/42054
1888         * pt.c (redeclare_class_template): Return false if there are erroneous
1889         template parameters.
1891 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1893         * pt.c (push_tinst_level): Replace -ftemplate-depth- with 
1894         -ftemplate-depth=.
1896 2010-02-24  Jason Merrill  <jason@redhat.com>
1898         PR c++/12909
1899         * mangle.c (write_type): Give -Wabi warning for old vector mangling.
1901         * class.c (layout_class_type): Don't give -Wabi warning for a bug
1902         in a previous ABI version.
1904 2010-02-23  Jason Merrill  <jason@redhat.com>
1906         PR c++/43143
1907         * typeck2.c (digest_init_r): Accept value init of array.
1909 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1911         PR c++/43126
1912         * typeck.c (convert_arguments): Update error message.
1914 2010-02-22  Mike Stump  <mikestump@comcast.net>
1916         PR c++/43125
1917         * decl.c (duplicate_decls): Merge DECL_PRESERVE_P.
1919 2010-02-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1921         PR c++/23510
1922         * error.c (print_instantiation_partial_context_line): New.
1923         (print_instantiation_partial_context): Print at most 12 contexts,
1924         skip the rest with a message.
1926 2010-02-21  Dodji Seketeli  <dodji@redhat.com>
1928         PR c++/42824
1929         * pt.c (lookup_template_class): Better support of specialization
1930         of member of class template implicit instantiation.
1932 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1934         PR c++/35669
1935         * call.c (conversion_null_warnings): Replace -Wconversion with
1936         -Wconversion-null.
1937         * cvt.c (build_expr_type_conversion): Likewise.
1939 2010-02-18  Jason Merrill  <jason@redhat.com>
1941         PR c++/42837
1942         * class.c (create_vtable_ptr): Set DECL_PACKED if type is packed.
1944         PR c++/43108
1945         * typeck.c (cp_build_binary_op): Adapt mixed complex/non handling from
1946         C build_binary_op.
1947         * cp-tree.h (WANT_VECTOR_OR_COMPLEX): Rename from WANT_VECTOR.
1948         * cvt.c (build_expr_type_conversion): Allow COMPLEX_TYPE.
1950         PR c++/43070
1951         * semantics.c (finish_goto_stmt): Don't call decay_conversion.
1953         PR c++/26261
1954         PR c++/43101
1955         * pt.c (tsubst_qualified_id): Do normal lookup in non-dependent scope.
1956         (maybe_update_decl_type): New fn.
1957         * parser.c (cp_parser_init_declarator): Use it.
1959         PR c++/43109
1960         * semantics.c (begin_class_definition): Don't crash on unnamed ns.
1962 2010-02-17  Jason Merrill  <jason@redhat.com>
1964         PR c++/43075
1965         * call.c (build_over_call): Don't create zero-sized assignments.
1966         * cp-gimplify.c (cp_genericize_r): Don't remove them here.
1967         * cp-objcp-common.c (cp_expr_size): Remove.
1968         * cp-tree.h: Remove prototype.
1970         PR c++/43069
1971         * name-lookup.c (set_decl_namespace): Don't copy DECL_CONTEXT if the
1972         decl we looked up doesn't match.
1974         PR c++/43093
1975         * cp-gimplify.c (cp_gimplify_expr) [INIT_EXPR]: Return if we don't
1976         have an INIT_EXPR anymore.
1978         PR c++/43079
1979         * pt.c (convert_nontype_argument): Change assert to test.
1981 2010-02-16  Jason Merrill  <jason@redhat.com>
1983         * cp-gimplify.c (cp_gimplify_expr): Fix error recovery.
1985         PR c++/43031
1986         * cp-gimplify.c (cp_gimplify_expr) [MODIFY_EXPR]: Use
1987         VIEW_CONVERT_EXPR for conversions between structural equality types
1988         that the back end can't tell are the same.
1990         PR c++/43036
1991         * tree.c (build_cplus_array_type): Set TYPE_MAIN_VARIANT to strip
1992         cv-quals from element here.
1993         (cp_build_qualified_type_real): Not here.  Preserve typedef name.
1995 2010-02-14  Jason Merrill  <jason@redhat.com>
1997         PR c++/41997
1998         * semantics.c (finish_compound_literal): Use
1999         cp_apply_type_quals_to_decl when creating a static variable.
2001 2010-02-12  Jason Merrill  <jason@redhat.com>
2003         PR c++/43024
2004         * name-lookup.h (current_binding_level): Check for null
2005         cp_function_chain.
2007 2010-02-12  Jason Merrill  <jason@redhat.com>
2009         PR c++/43054
2010         * tree.c (cp_tree_equal): Correct CALL_EXPR logic.
2012 2010-02-12  Jakub Jelinek  <jakub@redhat.com>
2014         PR c++/43033
2015         * name-lookup.c (pushdecl_maybe_friend): Check default args of t
2016         instead of x.
2018 2010-02-10  Jason Merrill  <jason@redhat.com>
2020         PR c++/41896
2021         * semantics.c (outer_lambda_capture_p): Revert.
2022         (add_capture): Only finish_member_declaration if
2023         we're in the lambda class.
2024         (register_capture_members): New.
2025         * cp-tree.h: Declare it.
2026         * parser.c (cp_parser_lambda_expression): Call it.
2028 2010-02-10  Jason Merrill  <jason@redhat.com>
2030         PR c++/41896
2031         * semantics.c (outer_lambda_capture_p): Use current_function_decl
2032         instead of current_class_type.
2034 2010-02-10  Jason Merrill  <jason@redhat.com>
2036         PR c++/42983, core issue 906
2037         * method.c (defaultable_fn_check): Check virtualness.
2039 2010-02-10  Jason Merrill  <jason@redhat.com>
2041         PR c++/43016
2042         * semantics.c (maybe_add_lambda_conv_op): Set DECL_INTERFACE_KNOWN.
2044 2010-02-10  Shujing Zhao  <pearly.zhao@oracle.com>
2046         * Make-lang.in (cp/cvt.o, cp/parser.o, cp/search.o): Depend on intl.h.
2047         * cvt.c (warn_ref_binding): Wrap the messages into G_() for easy
2048         translation.
2049         * parser.c (cp_parser_postfix_expression, cp_parser_new_type_id)
2050         (cp_parser_cast_expression, cp_parser_condition, cp_parser_decltype)
2051         (cp_parser_parameter_declaration)
2052         (cp_parser_exception_specification_opt)
2053         (cp_parser_exception_declaration): Likewise.
2054         * pt.c (check_default_tmpl_args): Likewise.
2055         * search.c (lookup_field_r): Likewise.
2057 2010-02-09  Jason Merrill  <jason@redhat.com>
2059         PR c++/42399
2060         * pt.c (tsubst_copy_and_build): Propagate LAMBDA_EXPR_LOCATION.
2062 2010-02-09  Jason Merrill  <jason@redhat.com>
2064         PR c++/42370
2065         * decl2.c (change_return_type): New fn.
2066         * semantics.c (apply_lambda_return_type): Use it.
2067         * cp-tree.h: Declare it.
2069 2010-02-05  Richard Guenther  <rguenther@suse.de>
2071         * Make-lang.in (cp/cp-lang.o): Depend on gt-cp-cp-lang.h.
2072         * cp-lang.c: Include gt-cp-cp-lang.h.
2073         * config-lang.in (gtfiles): Add cp/cp-lang.c.
2075 2010-02-05  Dodji Seketeli  <dodji@redhat.com>
2077         PR c++/42915
2078         * typeck.c (get_template_parms_of_dependent_type): Try getting
2079         the template parameters fromt the type itself first.
2081 2010-02-03  Jason Merrill  <jason@redhat.com>
2083         PR c++/4926
2084         PR c++/38600
2085         * mangle.c (write_unqualified_id): Split out from write_expression.
2086         (write_unqualified_name): Call it.
2087         (write_member_name): Likewise.
2088         (write_expression): Support TEMPLATE_ID_EXPR.
2089         Disambiguate operator names.
2091         PR c++/12909
2092         * mangle.c (write_type) [VECTOR_TYPE]: Change mangling with
2093         -fabi-version=4.
2095 2010-02-02  Jason Merrill  <jason@redhat.com>
2097         PR c++/41090
2098         * decl.c (cp_finish_decl): Add local statics to cfun->local_decls.
2099         * optimize.c (clone_body): Remap their initializers when making base
2100         variants.
2101         (maybe_clone_body): Complain if multiple clones aren't safe.
2103 2010-01-29  Dodji Seketeli  <dodji@redhat.com>
2105         PR c++/42758
2106         PR c++/42634
2107         PR c++/42336
2108         PR c++/42797
2109         PR c++/42880
2110         * cp-tree.h (NON_DEFAULT_TEMPLATE_ARGS_COUNT,
2111         SET_NON_DEFAULT_TEMPLATE_ARGS_COUNT,
2112         GET_NON_DEFAULT_TEMPLATE_ARGS_COUNT): New accessor macros.
2113         * pt.c (coerce_template_parms, type_unification_real,
2114         expand_template_argument_pack, coerce_template_parameter_pack):
2115         Set the non default template args count.
2116         (current_template_args): Always set non defaulted
2117         template args count when compiled with --enable-checking
2118         (tsubst_template_args, type_unification_real): Propagate the non
2119         defaulted template args count.
2120         * error.c (get_non_default_template_args_count): Renamed
2121         count_non_default_template_args into this. Don't calculate the
2122         non default template argument count anymore. Use the new
2123         accessor macros above to get it.
2124         (dump_template_argument_list, dump_type, dump_decl,
2125         dump_template_parms): Adjust.
2126         * parser.c (cp_parser_template_argument_list): Always set defaulted
2127         template args count when compiled with --enable-checking.
2129 2010-01-29  Shujing Zhao  <pearly.zhao@oracle.com>
2131         * decl.c (redeclaration_error_message): Wrap the return messages into
2132         G_() for easy translation.
2134 2010-01-28  Jason Merrill  <jason@redhat.com>
2136         PR c++/42880
2137         * semantics.c (begin_class_definition): Don't use type_as_string.
2139 2010-01-28  Dodji Seketeli  <dodji@redhat.com>
2141         PR c++/42713
2142         PR c++/42820
2143         * typeck.c (get_template_parms_of_dependent_type): Factorized
2144         this out of incompatible_template_type_parms_p
2145         (incompatible_dependent_types_p): Renamed
2146         incompatible_template_type_parms_p into this. Make it detect
2147         two incompatible dependent typedefs too.
2148         (structural_comptypes): Use incompatible_dependent_types_p.
2149         * pt.c (get_template_info):
2150         Handle BOUND_TEMPLATE_TEMPLATE_PARAM.
2152 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
2153             Jason Merrill  <jason@redhat.com>
2155         * mangle.c (write_type): Mangle transparent record as member type.
2156         * semantics.c (begin_class_definition): Recognize decimal classes
2157         and set TYPE_TRANSPARENT_AGGR.
2159 2010-01-20  Jason Merrill  <jason@redhat.com>
2161         PR c++/42338
2162         * mangle.c (write_expression): Handle tree codes that have extra
2163         arguments in the middle-end.
2165 2010-01-20  Paolo Carlini  <paolo.carlini@oracle.com>
2167         PR c++/42038
2168         * except.c (expand_start_catch_block): Deal correctly with
2169         do_begin_catch returning error_mark_node.
2171 2010-01-20  Jason Merrill  <jason@redhat.com>
2173         PR c++/41788
2174         * class.c (layout_class_type): Set packed_maybe_necessary for packed
2175         non-PODs.
2177         PR c++/41920
2178         * semantics.c (build_lambda_object): Call mark_used on captured
2179         variables.
2181         PR c++/40750
2182         * decl.c (grokdeclarator): Clear type_quals for a member function
2183         declared using a typedef.  Don't complain about adding cv-quals
2184         to a function typedef in C++0x mode.
2186 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
2188         * decl.c (create_array_type_for_decl): Remove set but not used
2189         variable error_msg.  Remove break stmts after return stmts.
2191 2010-01-19  Dodji Seketeli  <dodji@redhat.com>
2193         * error.c (dump_template_parms, count_non_default_template_args):
2194         Revert fix of PR c++/42634.
2196 2010-01-18  Dodji Seketeli  <dodji@redhat.com>
2198         PR c++/42634
2199         * error.c (dump_template_parms): Use innermost template
2200         arguments before calling count_non_default_template_args.
2201         (count_non_default_template_args): We are being called with
2202         template innermost arguments now. There is no need to ensure
2203         that again.
2205 2010-01-18  Dodji Seketeli  <dodji@redhat.com>
2207         PR c++/42766
2208         * cvt.c (build_expr_type_conversion): Look through OVERLOAD.
2210 2010-01-17  Dodji Seketeli  <dodji@redhat.com>
2212         PR c++/42697
2213         *pt.c (tsubst_decl):  Revert commit for PR c++/42697.
2215 2010-01-17  Dodji Seketeli  <dodji@redhat.com>
2217         PR c++/42697
2218         *pt.c (tsubst_decl): Get the arguments of a specialization from
2219         the specialization template, not from the most general template.
2221 2010-01-16  Jason Merrill  <jason@redhat.com>
2223         PR c++/42761
2224         * semantics.c (finish_decltype_type): Within a template, treat
2225         unresolved CALL_EXPR as dependent.
2227 2010-01-15  Dodji Seketeli  <dodji@redhat.com>
2229         * error.c (dump_template_parms,count_non_default_template_args):
2230         Revert changes of PR c++/42634.
2232 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
2234         PR middle-end/42674
2235         * decl.c (finish_function): Don't emit -Wreturn-type warnings in
2236         functions with noreturn attribute.
2238 2010-01-14  Jason Merrill  <jason@redhat.com>
2240         PR c++/42701
2241         * call.c (build_new_method_call): Don't free the vec here.
2243         PR c++/42655
2244         * call.c (convert_like_real): Do full decay_conversion for ck_rvalue.
2246 2010-01-13  Dodji Seketeli  <dodji@redhat.com>
2248         PR c++/42634
2249         * error.c (dump_template_parms): Use innermost template
2250         arguments before calling count_non_default_template_args.
2251         (count_non_default_template_args): We are being called with
2252         template innermost arguments now. There is no need to ensure
2253         that again.
2255 2010-01-07  Dodji Seketeli  <dodji@redhat.com>
2257         c++/40155
2258         * pt.c (unify_pack_expansion): In non-deduced contexts, re-use template
2259         arguments that were previously deduced.
2261 2010-01-05  Jason Merrill  <jason@redhat.com>
2263         * pt.c (unify_pack_expansion): Handle deduction from init-list.
2264         * call.c (build_over_call): Don't complain about it.
2266 2010-01-04  Jason Merrill  <jason@redhat.com>
2268         PR c++/42555
2269         * pt.c (tsubst_decl): Don't apply type attributes in place.
2271         PR c++/42567
2272         * semantics.c (describable_type): Remove decltype comment and
2273         semantics.
2277 Copyright (C) 2010 Free Software Foundation, Inc.
2279 Copying and distribution of this file, with or without modification,
2280 are permitted in any medium without royalty provided the copyright
2281 notice and this notice are preserved.