OSDN Git Service

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