c-common.c (c_expand_expr, c_staticp): Remove.
[platform/upstream/gcc.git] / gcc / cp / ChangeLog
1 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
2
3         * cp/cp-objcp-common.h (LANG_HOOKS_STATICP): Remove.
4         * cp/cp-objcp-common.c (cxx_staticp): Remove.
5         * cp/cp-tree.h (cxx_staticp): Remove.
6
7 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
8
9         PR c++/39554
10         * parser.c (cp_parser_postfix_expression): Don't call
11         warning_if_disallowed_function_p.
12
13 2009-03-27  Jan Hubicka  <jh@suse.cz>
14
15         * except.c (choose_personality_routine): Set terminate_node to abort
16         for java exceptions.
17
18 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
19             Jakub Jelinek  <jakub@redhat.com>
20
21         PR debug/37959
22         * cp-objcp-common.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
23         (cp_function_decl_explicit_p): New prototype.
24         * cp-objcp-common.c (cp_function_decl_explicit_p): New function.
25
26 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27
28         PR c++/38638
29         * parser.c (cp_parser_elaborated_type_specifier): If we have a
30         typename tag and don't have either a TYPE_DECL or a
31         TEMPLATE_ID_EXPR, set the type to NULL.
32
33 2009-03-27  Simon Martin  <simartin@users.sourceforge.net>
34
35         PR c++/37647
36         * decl.c (grokdeclarator): Reject [con|de]stuctors in a non-class
37         scope.
38
39 2009-03-27  Simon Martin  <simartin@users.sourceforge.net>
40
41         PR c++/29727
42         * decl.c (check_array_designated_initializer): Handle error_mark_node.
43
44 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
45
46         PR c++/35652
47         * typeck.c (cp_pointer_sum): Adjust call to pointer_int_sum.
48
49 2009-03-26  Andrew Haley  <aph@redhat.com>
50
51         PR C++/39380
52         * decl2.c (possibly_inlined_p): If java exceptions are in use
53         don't inline a decl unless it is explicitly marked inline.
54         * lex.c: (pragma_java_exceptions): New variable.
55         (handle_pragma_java_exceptions): Set pragma_java_exceptions.
56         * cp-tree.h (pragma_java_exceptions): Declare new variable.
57
58 2009-03-24  Jason Merrill  <jason@redhat.com>
59
60         PR c++/28274
61         * name-lookup.c (pushdecl_maybe_friend): Check default args later.
62
63 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
64
65         PR c/39495
66         * semantics.c (handle_omp_for_class_iterator): Swap cond operands and
67         code if iter is the second operand.
68         * parser.c (cp_parser_binary_expression): Add no_toplevel_fold_p
69         argument.  If it is set, don't build the toplevel expression with
70         build_x_binary_op, but build2.
71         (cp_parser_assignment_expression,  cp_parser_omp_for_incr): Adjust
72         callers.
73         (cp_parser_omp_for_cond): Don't assume the first operand of the
74         comparison must be decl.
75
76 2009-03-23  Jason Merrill  <jason@redhat.com>
77
78         PR c++/37729
79         * pt.c (make_fnparm_pack): Split out from...
80         (instantiate_decl): ...here.
81         (tsubst_pack_expansion): Handle being called in a late-specified
82         return type.
83
84         PR c++/39526
85         * name-lookup.c (pushdecl_maybe_friend): Don't warn about shadowing
86         a parm with a parm.
87
88 2009-03-20  Jason Merrill  <jason@redhat.com>
89
90         PR c++/28879
91         * parser.c (cp_parser_direct_declarator): In a template, wrap 
92         non-constant expression in NOP_EXPR with TREE_SIDE_EFFECTS set.
93         * pt.c (tsubst): Preserve it in a partial instantiation.
94         (dependent_type_p_r): Don't check value_dependent_expression_p.
95         * decl.c (compute_array_index_type): Don't check
96         value_dependent_expression_p if TREE_SIDE_EFFECTS.
97
98         C++ core issue 703
99         * typeck2.c (check_narrowing): Don't complain about loss of 
100         precision when converting a floating-point constant.
101
102 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
103
104         PR c/39495
105         * parser.c (cp_parser_omp_for_cond): Don't check lhs if decl is NULL.
106         (cp_parser_omp_for_loop): Always use cp_parser_omp_for_cond.
107
108 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
109
110         * parser.c (struct cp_token): Reorder fields for 64-bit hosts.
111         (eof_token): Adjust.
112
113 2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>
114
115         PR c++/39425
116         * parser.c (cp_parser_explicit_specialization): Don't skip the
117         rest of the specialization when begin_specialization returns
118         false.
119
120 2009-03-17  Jason Merrill  <jason@redhat.com>
121
122         * decl.c (grokfndecl): Set DECL_CONTEXT on parms.
123         (duplicate_decls): Adjust DECL_CONTEXT of newdecl's parms.
124         * pt.c (check_explicit_specialization): Likewise.
125         (tsubst_copy) [PARM_DECL]: Return a dummy parm if we don't have a
126         local specialization.
127         * tree.c (cp_tree_equal) [PARM_DECL]: Check type and index, not name.
128         * decl2.c (parm_index): New fn.
129         * semantics.c (finish_decltype_type): Don't use describable_type.
130         * mangle.c (write_expression): Likewise.  Mangle ALIGNOF_EXPR.
131         Give a sorry for unsupported codes rather than crash.  Mangle
132         conversions with other than 1 operand.  New mangling for PARM_DECL.
133         * operators.def (ALIGNOF_EXPR): Mangle as "az".
134
135 2009-03-17  Jing Yu  <jingyu@google.com>
136
137         PR middle-end/39378
138         * method.c (use_thunk): Change is_thunk from crtl to cfun.
139
140 2009-03-17  Paolo Carlini  <paolo.carlini@oracle.com>
141
142         PR c++/39475
143         * semantics.c (check_trait_type): New.
144         (finish_trait_expr): Use it.
145
146 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
147
148         * name-lookup.c (cp_emit_debug_info_for_using): Emit USING_STMTs
149         instead of calling imported_module_or_decl debug hook if
150         building_stmt_tree ().
151         * cp-gimplify.c (cp_gimplify_expr): Don't assert the first operand
152         is a NAMESPACE_DECL.
153
154         PR debug/37890
155         * name-lookup.c (do_namespace_alias): Don't call global_decl debug
156         hook at function scope.
157
158         PR debug/39471
159         * cp-gimplify.c (cp_gimplify_expr): Don't set DECL_NAME
160         on IMPORTED_DECL.
161
162 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
163
164         PR c++/39371
165         * semantics.c (finish_switch_cond): Don't call get_unwidened.
166         * decl.c (finish_case_label): Pass SWITCH_STMT_TYPE as 3rd argument
167         instead of TREE_TYPE (cond).
168
169 2009-03-08  H.J. Lu  <hongjiu.lu@intel.com>
170
171         PR c++/39060
172         * parser.c (cp_parser_late_parsing_default_args): Continue
173         the loop when cp_parser_assignment_expression returns
174         error_mark_node.
175
176 2009-03-07  Jason Merrill  <jason@redhat.com>
177
178         PR c++/39367
179         * init.c (build_new_1): Don't use a VLA type.
180         (build_vec_init): Handle getting a pointer for BASE.
181
182 2009-03-06  H.J. Lu  <hongjiu.lu@intel.com>
183
184         PR c++/37520
185         * cp-tree.h: Check NO_DOT_IN_LABEL before NO_DOLLAR_IN_LABEL
186         when mangling symbols.
187
188 2009-03-06  Paolo Carlini  <paolo.carlini@oracle.com>
189
190         PR c++/33492
191         * error.c (dump_expr): Don't try to print THROW_EXPRs in full.
192
193 2009-03-06  Alexandre Oliva  <aoliva@redhat.com>
194
195         * decl.c (record_builtin_java_type): Use canonicalized integer
196         types.
197
198 2009-03-04  Jason Merrill  <jason@redhat.com>
199
200         PR c++/38908
201         * class.c (is_really_empty_class): New fn.
202         * cp-tree.h: Declare it.
203         * cp-objcp-common.c (cp_expr_size): Use it.
204
205         PR c++/13549
206         * semantics.c (perform_koenig_lookup): Handle TEMPLATE_ID_EXPR.
207         * parser.c (cp_parser_postfix_expression): Call it for 
208         TEMPLATE_ID_EXPR.
209         * tree.c (is_overloaded_fn): Look through TEMPLATE_ID_EXPR.
210         (get_first_fn): Likewise.
211
212         PR c++/9634
213         PR c++/29469
214         PR c++/29607
215         Implement DR 224.
216         * decl.c (make_typename_type): Do look inside currently open classes.
217         * parser.c (cp_parser_lookup_name): Likewise.
218         (cp_parser_template_name): Likewise.
219         * pt.c (dependent_scope_p): New function.
220         * cp-tree.h: Declare it.
221         * class.c (currently_open_class): Return fast if T isn't a class.
222
223 2009-02-26  H.J. Lu  <hongjiu.lu@intel.com>
224
225         PR c++/37789
226         * parser.c (cp_parser_mem_initializer): Return error_mark_node
227         if cp_parser_mem_initializer_id returns error_mark_node.
228
229 2009-02-24  Richard Guenther  <rguenther@suse.de>
230
231         PR c++/39242
232         * pt.c (instantiate_decl): Do not instantiate extern, non-inline
233         declared functions.
234
235 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
236
237         PR c++/36411
238         * pt.c (coerce_template_template_parms): Return 0 if parameter
239         is error_mark_node.
240
241 2009-02-23  Jason Merrill  <jason@redhat.com>
242
243         * pt.c (unify): Call maybe_adjust_types_for_deduction when
244         deducing from an initializer list.
245
246 2009-02-20  Jason Merrill  <jason@redhat.com>
247
248         PR c++/39225
249         * decl.c (grokdeclarator): Handle ~identifier.
250
251 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
252
253         PR target/39175
254         * decl2.c (determine_visibility): If visibility changed and
255         DECL_RTL has been already set, call make_decl_rtl to update symbol
256         flags.
257
258 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
259
260         PR c++/39188
261         * cp-tree.h (maybe_commonize_var): New.
262
263         * decl.c (maybe_commonize_var): Make it extern.
264
265         * decl2.c (finish_anon_union): Call maybe_commonize_var.
266
267 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
268
269         PR c++/39219
270         * parser.c (cp_parser_enum_specifier): Apply all attributes.
271
272 2009-02-18  Jason Merrill  <jason@redhat.com>
273
274         * cfns.h: Tweak pathname for cfns.gperf.
275
276 2009-02-13  Jason Merrill  <jason@redhat.com>
277
278         PR c++/39070
279         * semantics.c (finish_call_expr): Change koenig_p parm to int.
280         If -1, don't set KOENIG_LOOKUP_P but do keep hidden candidates.
281         * cp-tree.h: Adjust prototype.
282         * pt.c (tsubst_copy_and_build) [CALL_EXPR]: Pass -1.
283
284 2009-02-12  Jason Merrill  <jason@redhat.com>
285
286         PR c++/38950
287         * pt.c (unify)[TEMPLATE_PARM_INDEX]: Convert to the tsubsted type.
288
289 2009-02-11  Jason Merrill  <jason@redhat.com>
290
291         PR c++/39153
292         * decl2.c (cp_write_global_declarations): 
293         Check DECL_DEFAULTED_FN, not DECL_ARTIFICIAL.
294
295         PR c++/30111
296         * init.c (build_value_init_noctor): Split out from...
297         (build_value_init): ...here.
298         (expand_aggr_init_1): Handle value-initialization.
299         * cp-tree.h: Add declaration.
300         * class.c (type_has_user_provided_constructor): 
301         Handle non-class arguments.
302
303 2009-02-10  Jason Merrill  <jason@redhat.com>
304
305         PR c++/38649
306         * class.c (defaultable_fn_p): Handle ... properly.
307
308         PR c++/36744
309         * tree.c (lvalue_p_1): Condition rvalue ref handling on
310         treat_class_rvalues_as_lvalues, too.
311
312 2009-02-10  Paolo Carlini  <paolo.carlini@oracle.com>
313
314         PR c++/34397
315         * typeck.c (build_x_array_ref): New.
316         * cp-tree.h: Declare it.
317         * pt.c (tsubst_copy_and_build): Use it for case ARRAY_REF.
318
319 2009-02-09  Jason Merrill  <jason@redhat.com>
320
321         PR c++/39109
322         * semantics.c (simplify_aggr_init_expr): Do zero-initialization here.
323         * init.c (build_value_init): Not here. Don't build a TARGET_EXPR.
324         * tree.c (get_target_expr): Handle AGGR_INIT_EXPR.
325         * cp-gimplify.c (cp_gimplify_init_expr): Remove special handling
326         for build_value_init TARGET_EXPR.
327         * cp-tree.h (AGGR_INIT_ZERO_FIRST): New macro.
328
329 2009-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
330
331         PR c++/35147
332         PR c++/37737
333         * cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Check TREE_VEC_LENGTH.
334
335 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
336
337         PR c++/39095
338         * operators.def: Use COMPONENT_REF code for ->/pt operator again,
339         remove ./dt operator.
340         * mangle.c (write_expression): Handle COMPONENT_REF after handling
341         ADDR_EXPR, for COMPONENT_REF without ARROW_EXPR inside of it
342         write_string ("dt") instead of using operators.def.
343
344 2009-02-03  Jason Merrill  <jason@redhat.com>
345
346         * typeck.c (cp_build_unary_op): Only complain about taking address
347         of main if pedantic.
348
349 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
350
351         PR inline-asm/39059
352         * parser.c (cp_parser_primary_expression): Reject FIXED_CSTs.
353
354         PR c++/39056
355         * typeck2.c (digest_init_r): Don't call process_init_constructor
356         for COMPLEX_TYPE.
357
358 2009-02-03  Paolo Bonzini  <bonzini@gnu.org>
359
360         PR c++/36897
361         * pt.c (convert_nontype_argument_function): Expect expr to be an
362         ADDR_EXPR.
363
364         PR c++/37314
365         * typeck.c (merge_types): Call resolve_typename_type if only
366         one type is a typename.
367
368 2009-02-02  Jason Merrill  <jason@redhat.com>
369
370         PR c++/39054
371         * parser.c (cp_parser_unqualified_id): Don't wrap error_mark_node 
372         in BIT_NOT_EXPR.
373
374 2009-02-01  Paolo Carlini  <paolo.carlini@oracle.com>
375
376         PR c++/39053
377         * parser.c (cp_parser_pure_specifier): If there are no tokens left
378         do not call cp_lexer_consume_token.
379
380 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
381
382         PR c++/39028
383         * parser.c (cp_parser_already_scoped_statement): Handle __label__
384         declarations.
385
386 2009-01-30  Paolo Carlini  <paolo.carlini@oracle.com>
387
388         PR c++/33465
389         * error.c (dump_expr): Handle FIX_TRUNC_EXPR and FLOAT_EXPR.
390
391 2009-01-30  Paolo Carlini  <paolo.carlini@oracle.com>
392
393         PR c++/38655
394         * error.c (dump_type_prefix, dump_type_suffix): Handle FIXED_POINT_TYPE.
395
396 2009-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
397
398         * typeck.c (invalid_nonstatic_memfn_p): Use
399         DECL_NONSTATIC_MEMBER_FUNCTION_P.
400
401 2009-01-27  Paolo Carlini  <paolo.carlini@oracle.com>
402
403         PR c++/37554
404         * call.c (build_over_call): If convert_for_arg_passing returns
405         error_mark_node unconditionally return it.
406
407 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
408
409         * class.c (check_field_decls): Also inherit packed for bitfields
410         regardless of their type.
411
412 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
413
414         PR c++/38930
415         * decl2.c (grokfield): Reverting changes of PR c++/26693
416         (save_template_attributes): Likewise.
417         * decl.c (grokdeclarator): Likewise.
418         * name-lookup.c (pushdecl_maybe_friend): Likewise.
419         * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): Likewise.
420         (append_type_to_template_for_access_check): Likewise.
421         * semantics.c (check_accessibility_of_qualified_id): Likewise.
422         * pt.c (instantiate_class_template, instantiate_template ): Likewise.
423         (tsubst): Likewise.
424         (resolve_type_name_type): Likewise.
425         (append_type_to_template_for_access_check): Likewise.
426
427 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
428
429         PR c++/26693
430         * decl2.c (grokfield): when a typedef appears in a
431         class, create the typedef variant type node for it.
432         (save_template_attributes): Creating typedef variant type node
433          here is now useless.
434         * decl.c (grokdeclarator): If the typedef'ed struct/class was
435         anonymous, set the proper type name to all its type variants.
436         * name-lookup.c (pushdecl_maybe_friend): Reuse the
437         set_underlying_type function to install typedef variant types.
438         * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor
439         macro.
440         (append_type_to_template_for_access_check): New entry points.
441         * semantics.c (check_accessibility_of_qualified_id):
442         When a typedef that is a member of a class appears in a template,
443         add it to the template. It will be ...
444         * pt.c (instantiate_class_template, instantiate_template ): ... access
445         checked at template instantiation time.
446         (tsubst): Handle the case of being called with NULL args.
447         (resolve_type_name_type): The type name should be the name of the
448         main type variant.
449         (append_type_to_template_for_access_check): New entry point.
450
451 2009-01-19  Jason Merrill  <jason@redhat.com>
452
453         PR c++/23287
454         * parser.c (cp_parser_unqualified_id): In a template,
455         accept ~identifier.
456         * typeck.c (lookup_destructor): Handle IDENTIFIER_NODE.
457
458 2009-01-16  Jason Merrill  <jason@redhat.com>
459
460         PR c++/38877
461         * tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
462         * init.c (build_new): Don't call describable_type unless we
463         have an auto.
464
465         PR c++/29470
466         * pt.c (tsubst_decl) [USING_DECL]: Propagate access flags.
467
468         PR c++/38579
469         * search.c (protected_accessible_p): N doesn't vary.
470
471 2009-01-15  Jason Merrill  <jason@redhat.com>
472
473         PR c++/38850
474         * pt.c (tsubst_copy_and_build): Tell finish_call_expr to
475         accept hidden friends.
476
477 2009-01-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
478
479         PR C++/29388
480         * decl.c (grokdeclarator): Check for a non namespace/class context.
481
482 2009-01-15  Jason Merrill  <jason@redhat.com>
483
484         PR c++/36334
485         PR c++/37646
486         * tree.c (lvalue_p_1): Handle BASELINK.  A COMPONENT_REF to
487         a function isn't necessarily an lvalue. Take tree, not const_tree.
488         (lvalue_p, real_lvalue_p): Take tree, not const_tree.
489         * typeck.c (lvalue_or_else): Likewise.
490         * cp-tree.h: Adjust prototypes.
491
492 2009-01-15  Steve Ellcey  <sje@cup.hp.com>
493
494         PR c++/38357
495         * pt.c (tsubst): Check for NULL args.
496
497 2009-01-15  Dodji Seketeli  <dodji@redhat.com>
498
499         PR c++/38636
500         * name-lookup.c (pushtag): Don't create members to types that are not
501         being created.
502
503 2009-01-14  Nick Clifton  <nickc@redhat.com>
504
505         PR c++/37862
506         * parser.c: Pass cp_id_kind computed in
507         cp_parser_postfix_dot_deref_expression to
508         cp_parser_primary_expression.
509
510 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
511
512         PR c++/38795
513         * tree.c (cp_walk_subtrees): Handle REINTERPRET_CAST_EXPR,
514         STATIC_CAST_EXPR, CONST_CAST_EXPR and DYNAMIC_CAST_EXPR the same
515         as CAST_EXPR.
516
517 2009-01-12  Jason Merrill  <jason@redhat.com>
518             Steve Ellcey  <sje@cup.hp.com>
519
520         PR c++/35109
521         * name-lookup.c (lookup_name_real): Keep looking past a hidden 
522         binding.
523
524 2009-01-12  Dodji Seketeli  <dodji@redhat.com>
525
526         PR c++/36019
527         * pt.c (parameter_of_template_p): New function.
528         * cp-tree.h: Declare it.
529         * name-lookup.c (binding_to_template_parms_of_scope_p): New
530         function.
531         (outer_binding): Take template parameters in account when looking for
532         a name binding.
533
534 2009-01-12  Jason Merrill  <jason@redhat.com>
535
536         PR c++/31488
537         * tree.c (pod_type_p): Return 1 for structs created by the back end.
538
539 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
540
541         PR c/32041
542         * parser.c (cp_parser_builtin_offsetof): Allow `->' in
543         offsetof member-designator, handle it as `[0].'.
544
545         PR c++/38794
546         * decl.c (start_function): If grokdeclarator hasn't returned
547         FUNCTION_DECL nor error_mark_node, issue diagnostics.
548
549 2009-01-11  Jakub Jelinek  <jakub@redhat.com>
550
551         PR c++/36254
552         * cp-gimplify.c (genericize_if_stmt): Renamed from ...
553         (gimplify_if_stmt): ... this.
554         (cp_gimplify_expr): Don't handle IF_STMT here.
555         (cp_genericize_r): Call genericize_if_stmt for IF_STMT.
556
557 2009-01-10  Andrew Pinski  <pinskia@gmail.com>
558
559         PR c++/38648
560         * typeck.c (cp_build_modify_expr): Check for NULL current_function_decl.
561
562         PR c++/36695
563         * typeck2.c (build_functional_cast): Check for reference type and NULL
564         PARMS.
565
566 2009-01-09  Steve Ellcey  <sje@cup.hp.com>
567
568         * typeck.c (cp_build_unary_op): Check for ERROR_MARK.
569
570 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
571
572         PR c++/35335
573         * error.c (dump_expr): Handle EXPR_STMT like BIND_EXPR.
574
575 2009-01-09  John F. Carr  <jfc@mit.edu>
576
577         PR c++/37877
578         * parser.c (cp_parser_class_specifier): Clear
579         parser->in_unbraced_linkage_specification_p while parsing class
580         specifiers.
581
582 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
583
584         PR c++/38725
585         * semantics.c (finish_goto_stmt): Convert destination to
586         void *.
587
588 2009-01-06  Jason Merrill  <jason@redhat.com>
589
590         PR c++/35297
591         PR c++/35477
592         PR c++/35784
593         PR c++/36846
594         PR c++/38276
595         * pt.c (check_default_tmpl_args): Don't complain about
596         out-of-order parameter packs in the enclosing class
597         or parameter packs after default args.
598         (coerce_template_parms): If we have more than one
599         parameter pack, don't flatten argument packs.
600         (template_args_equal): Handle argument packs.
601         (comp_template_args): Don't flatten argument packs.
602         (check_instantiated_arg): Split out from...
603         (check_instantiated_args): Here.  Handle arg packs.
604         (convert_template_argument): Just check that nontype argument
605         packs have the right type.
606
607 2009-01-05  Dodji Seketeli  <dodji@redhat.com>
608
609         PR c++/38472
610         * typeck.c (type_after_usual_arithmetic_conversions): Fix a typo.
611
612 2009-01-05  Jason Merrill  <jason@redhat.com>
613
614         PR c++/38698
615         * typeck2.c (process_init_constructor_union): Handle union with
616         no fields.
617
618         * mangle.c (write_expression): Remove mangling for zero-operand
619         casts.
620
621         PR c++/38701
622         * decl.c (cp_finish_decl): Clear DECL_INITIAL for invalid
623         defaulting.
624
625         PR c++/38702
626         * class.c (defaultable_fn_p): Only operator== can be a copy
627         assignment operator.
628
629 2009-01-02  Jason Merrill  <jason@redhat.com>
630
631         PR c++/38698
632         * typeck2.c (process_init_constructor_union): Handle excess
633         initializers.
634         (process_init_constructor_record): Likewise.
635
636         PR c++/38684
637         * typeck2.c (digest_init_r): Don't use process_init_constructor
638         for non-aggregate classes.