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