]> gcc.gnu.org Git - gcc.git/blob - gcc/cp/ChangeLog
typeck.c (cp_apply_type_quals_to_decl): Expand documentation.
[gcc.git] / gcc / cp / ChangeLog
1 2007-10-16 Mark Mitchell <mark@codesourcery.com>
2
3 * typeck.c (cp_apply_type_quals_to_decl): Expand documentation.
4 * decl.c (start_decl): Tidy.
5 (start_decl_1): Call cp_apply_type_quals_to_decl after completing
6 the type.
7 (grokdeclarator): Clarify comment.
8
9 2007-10-14 Andrew Pinski <pinskia@gmail.com>
10
11 PR c++/30303
12 * decl.c (grokfndecl): Return NULL after the "definition of
13 implicitly-declared" error happened.
14
15 2007-10-12 Simon Martin <simartin@users.sourceforge.net>
16
17 PR c++/26698
18 * call.c (build_user_type_conversion_1): Do not consider conversion
19 functions to convert a (possibly cv-qualified) object to the (possibly
20 cv-qualified) same object type (or a reference to it), to a (possibly
21 cv-qualified) base class of that type (or a reference to it).
22
23 2007-10-12 Paolo Carlini <pcarlini@suse.de>
24
25 * pt.c (tsubst): Use template_parm_level_and_index.
26
27 2007-10-12 Jakub Jelinek <jakub@redhat.com>
28
29 PR c++/32121
30 * parser.c (cp_parser_compound_statement): Handle label-declarations
31 at the beginning of the compound statement.
32 (cp_parser_block_declaration): Issue diagnostics about __label__
33 not at the beginning of a block.
34
35 2007-10-11 Paolo Carlini <pcarlini@suse.de>
36
37 PR c++/33461
38 * pt.c (coerce_template_parameter_pack): Do not pass error_mark_node
39 to convert_template_argument.
40 (coerce_template_parms): Return error_mark_node after fixed-length
41 error.
42 (tsubst_decl): Check for error_mark_node the return value of the
43 first tsubst in 'case VAR_DECL'.
44
45 2007-10-08 Ollie Wild <aaw@google.com>
46
47 * typeck2.c (digest_init): Call cplus_expand_constant after
48 convert_for_initialization.
49 * cp-objcp-common.h (LANG_HOOKS_EXPAND_CONSTANT): Removed.
50 * expr.c (cplus_expand_constant): Updated function description.
51
52 2007-10-04 Jason Merrill <jason@redhat.com>
53
54 PR c++/20416
55 * call.c (initialize_reference): Handle local static reference
56 temps properly.
57
58 2007-10-03 Jason Merrill <jason@redhat.com>
59
60 PR c++/32470
61 * name-lookup.c (push_namespace_with_attrs): Fold back into...
62 (push_namespace): Here.
63 (handle_namespace_attrs): New fn for the attr code.
64 (leave_scope): Don't pop_visibility.
65 * name-lookup.h (struct cp_binding_level): Remove has_visibility.
66 * parser.c (cp_parser_namespace_definition): Call
67 handle_namespace_attrs and pop_visibility as appropriate.
68
69 PR c++/11756
70 * mangle.c (write_type) [TYPEOF_TYPE]: Just sorry.
71
72 2007-10-03 Alexandre Oliva <aoliva@redhat.com>
73
74 * decl.c (duplicate_decls): Preserve linkage flags for mere
75 redeclarations of gnu_inline definitions.
76
77 2007-10-03 Jason Merrill <jason@redhat.com>
78
79 PR c++/15764
80 * decl.c (wrap_cleanups_r): New fn.
81 (wrap_temporary_cleanups): New fn.
82 (initialize_local_var): Call it.
83
84 2007-09-29 Jason Merrill <jason@redhat.com>
85
86 PR c++/33094
87 * decl.c (make_rtl_for_nonlocal_decl): It's ok for a member
88 constant to not have DECL_EXTERNAL if it's file-local.
89
90 2007-09-28 Ollie Wild <aaw@google.com>
91
92 Revert
93 2007-09-27 Ollie Wild <aaw@google.com>
94
95 * typeck2.c (digest_init): Call cplus_expand_constant after
96 convert_for_initialization.
97 * cp-objcp-common.h (LANG_HOOKS_EXPAND_CONSTANT): Removed.
98 * expr.c (cplus_expand_constant): Updated function description.
99
100 2007-09-28 Jason Merrill <jason@redhat.com>
101
102 PR c++/10179
103 * class.c (layout_empty_base): Take rli parameter, update
104 rli->record_align if empty base has user-specified alignment.
105 (build_base_field): Pass rli to it.
106
107 2007-09-28 Paolo Carlini <pcarlini@suse.de>
108
109 PR c++/33213
110 * error.c (dump_decl): Deal with TYPE_PACK_EXPANSION.
111
112 2007-09-28 Paolo Carlini <pcarlini@suse.de>
113
114 PR c++/33118
115 * error.c (dump_expr): Deal with ARGUMENT_PACK_SELECT.
116 (dump_type): Use dump_template_argument for TYPE_ARGUMENT_PACK.
117 (dump_parameters): Just call dump_type for argument packs too.
118
119 2007-09-28 Jakub Jelinek <jakub@redhat.com>
120
121 PR c++/31434
122 * tree.c (cp_build_qualified_type_real): Handle TYPE_PACK_EXPANSION
123 qualification by creating qualified PACK_EXPANSION_PATTERN and
124 then calling make_pack_expansion on it.
125
126 2007-09-27 Ollie Wild <aaw@google.com>
127
128 * typeck2.c (digest_init): Call cplus_expand_constant after
129 convert_for_initialization.
130 * cp-objcp-common.h (LANG_HOOKS_EXPAND_CONSTANT): Removed.
131 * expr.c (cplus_expand_constant): Updated function description.
132
133 2007-09-27 Jason Merrill <jason@redhat.com>
134
135 PR c++/33571
136 * decl2.c (is_late_template_attribute): Don't crash on unknown
137 attribute.
138
139 2007-09-27 Paolo Carlini <pcarlini@suse.de>
140
141 PR c++/33493
142 * error.c (dump_expr): Deal with DELETE_EXPR and VEC_DELETE_EXPR.
143 * cxx-pretty-print.c (pp_cxx_delete_expression): Add missing
144 spaces in the formatting.
145 * cxx-pretty-print.h (pp_cxx_delete_expression): Declare.
146
147 2007-09-27 Jakub Jelinek <jakub@redhat.com>
148
149 * error.c (cxx_print_error_function): Add third argument, pass
150 it over to lhd_print_error_function.
151 (cp_print_error_function): If diagnostic->abstract_origin, print
152 virtual backtrace.
153 * cp-tree.h (struct diagnostic_info): New forward decl.
154 (cxx_print_error_function): Add third argument.
155
156 2007-09-25 Simon Martin <simartin@users.sourceforge.net>
157
158 PR c++/33207
159 * name-lookup.c (pushtag): Do not create an implicit typedef before
160 the associated type declaration is known to be valid.
161
162 2007-09-25 Jakub Jelinek <jakub@redhat.com>
163
164 * tree.c (cxx_printable_name): Compare FUNCTION_DECL uids
165 rather than pointers.
166
167 2007-09-24 Danny Smith <dannysmith@user.sourceforge.net>
168
169 PR c++/14688
170 * search.c (check_final_overrider): Fail if
171 targetm.comp_type_attributes returns 0.
172
173 2007-09-24 Jason Merrill <jason@redhat.com>
174
175 PR c++/33239
176 * pt.c (resolve_typename_type): Don't look things up in the original
177 template if it would mean losing template arguments.
178
179 2007-09-24 Jakub Jelinek <jakub@redhat.com>
180
181 PR c++/33506
182 * cp-tree.h (cxx_type_hash_eq): New prototype.
183 * cp-objcp-common.h (LANG_HOOKS_TYPE_HASH_EQ): Redefine.
184 * tree.c (cxx_type_hash_eq): New function.
185
186 2007-09-24 Douglas Gregor <doug.gregor@gmail.com>
187
188 PR c++/33185
189 * tree.c (cp_build_qualified_type_real): Build a canonical
190 ARRAY_TYPE if the original ARRAY_TYPE was not a canonical type.
191
192 2007-09-24 Douglas Gregor <doug.gregor@gmail.com>
193
194 PR c++/33112
195 PR c++/33185
196 * tree.c (cplus_array_compare): Compare pointers, not types.
197 (build_cplus_array_type_1): Store new array type into the hash
198 table before building the canonical type; build the canonical type
199 correctly.
200 (cp_build_qualified_type_real): Put all of the array types with
201 cv-qualified element types into the C++ array hash table, built as
202 variants of the unqualified versions.
203
204 2007-09-23 Jason Merrill <jason@redhat.com>
205
206 PR c++/16370
207 * decl.c (grokdeclarator): Look through implicit TYPE_DECLs
208 for deprecation warnings.
209
210 2007-09-22 Jason Merrill <jason@redhat.com>
211
212 PR c++/15269
213 * call.c (build_over_call): Warn about deprecated virtuals.
214
215 PR c++/19407
216 * cp-tree.h (ATTR_IS_DEPENDENT): New macro.
217 (MAYBE_TAGGED_TYPE_P): Remove.
218 * pt.c (apply_late_template_attributes): Check ATTR_IS_DEPENDENT
219 instead of calling is_late_template_attribute again.
220 (tsubst_decl) [TYPE_DECL]: Just check if the name is the tag.
221 (tsubst): A typedef is a TYPE_NAME != TYPE_MAIN_DECL.
222 Don't crash on typedefs from non-template classes.
223 * decl2.c (grokfield): Don't sorry about attrs on template parms.
224 (is_late_template_attribute): All attributes applied to template
225 parms or typename types are dependent. Static.
226 (splice_template_attributes): Pass decl through.
227 (save_template_attributes): Likewise.
228
229 2007-09-20 Jakub Jelinek <jakub@redhat.com>
230
231 PR c++/33496
232 * pt.c (tsubst_copy) <case SIZEOF_EXPR>: Handle error_mark_node
233 returned from tsubst_pack_expansion.
234 (tsubst_copy_and_build) <case SIZEOF_EXPR>: Likewise.
235 (tsubst_copy_and_build) <case CONSTRUCTOR>: Likewise.
236
237 2007-09-20 Paolo Carlini <pcarlini@suse.de>
238
239 PR c++/33460
240 * semantics.c (finish_id_expression): Use consistently
241 context_for_name_lookup.
242 * decl.c (fixup_anonymous_aggr): Fix error message for
243 anonymous struct (vs union).
244
245 2007-09-19 Jason Merrill <jason@redhat.com>
246
247 PR c++/7586
248 * pt.c (tsubst): Handle typedefs by looking for the specialization.
249 (retrieve_specialization): Only tagged types use
250 DECL_TEMPLATE_INSTANTIATIONS.
251 (instantiate_class_template): Push nested classes too.
252 (tsubst_decl) [TYPE_DECL]: Only check for canonical decl for
253 tagged types.
254 * cp-tree.h (MAYBE_TAGGED_TYPE_P): New macro.
255 * init.c (is_aggr_type): Remove redundant tests.
256 * class.c (push_nested_class): Use CLASS_TYPE_P.
257
258 2007-09-20 Paolo Carlini <pcarlini@suse.de>
259
260 PR c++/33459
261 * init.c (build_zero_init): If, recursively, build_zero_init
262 returns a NULL_TREE, do not append it to the VEC of constructors.
263
264 2007-09-18 Jason Merrill <jason@redhat.com>
265
266 PR c++/17743
267 * pt.c (apply_late_template_attributes): Set processing_template_decl.
268 (tsubst_decl) [TYPE_DECL]: Preserve naming typedef, pass
269 ATTR_FLAG_TYPE_IN_PLACE.
270 (tsubst): Do unqualified lookup to find typedefs from current class.
271 [ARRAY_TYPE]: Propagate alignment info.
272 * decl2.c (is_late_template_attribute): Only defer handling of
273 attribute aligned if the expression is dependent.
274 (save_template_attributes): If we're deferring any attributes,
275 make this a naming typedef.
276
277 2007-09-18 Paolo Carlini <pcarlini@suse.de>
278
279 PR c++/33462 (again)
280 * cxx-pretty-print.c (pp_cxx_va_arg_expression): Print
281 va_arg instead of __builtin_va_arg.
282
283 2007-09-18 Paolo Carlini <pcarlini@suse.de>
284
285 PR c++/33462
286 * cxx-pretty-print.c (pp_cxx_va_arg_expression): Add.
287 (pp_cxx_primary_expression): Use it.
288 * cxx-pretty-print.h (pp_cxx_va_arg_expression): Declare.
289 * error.c (dump_expr): Use it.
290
291 2007-09-18 Paolo Carlini <pcarlini@suse.de>
292
293 PR c++/33463
294 * cxx-pretty-print.c (pp_cxx_postfix_expression): Split
295 out case TYPEID_EXPR to...
296 (pp_cxx_typeid_expression): ... here; use pp_cxx_left_paren
297 and pp_cxx_right_paren.
298 * cxx-pretty-print.h (pp_cxx_typeid_expression): Declare.
299 * error.c (dump_expr): Use it.
300
301 2007-09-18 Paolo Carlini <pcarlini@suse.de>
302
303 PR c++/33464
304 * cxx-pretty-print.c (pp_cxx_trait_expression): Add.
305 (pp_cxx_primary_expression): Use it.
306 * cxx-pretty-print.h (pp_cxx_trait_expression): Declare.
307 * error.c (dump_expr): Use it.
308
309 2007-09-16 Paolo Carlini <pcarlini@suse.de>
310
311 PR c++/33124
312 * init.c (build_new): Remove warning for zero-element
313 allocations.
314
315 2007-09-16 Nathan Sidwell <nathan@codesourcery.com>
316
317 PR c++/32756
318 * call.c (maybe_handle_implicit_object): Set this_p, clear
319 rvaluedness_matches_p.
320 (compare_ics): Do not compare rvaluedness matching when one of the
321 operands is an implicit object.
322
323 2007-09-14 Jason Merrill <jason@redhat.com>
324
325 PR c++/17743, c++/19163
326 * decl2.c (is_late_template_attribute): New fn.
327 (splice_template_attributes, save_template_attributes): New fns.
328 (cplus_decl_attributes): Call save_template_attributes.
329 * pt.c (apply_late_template_attributes): New fn.
330 (instantiate_class_template, tsubst_decl): Use it.
331 * cp-tree.h: Declare is_late_template_attribute.
332
333 2007-09-13 Tom Tromey <tromey@redhat.com>
334
335 * parser.c (cp_lexer_new_main): Don't use
336 c_lex_return_raw_strings.
337 (cp_lexer_get_preprocessor_token): Update. Add special case when
338 lexer is NULL.
339
340 2007-09-11 Jan Hubicka <jh@suse.cz>
341
342 * method.c (use_thunk): Use tree_rest_of_compilation
343 * cp-objecp-common.h (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
344 (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Define.
345 * cp-tree.h (expand_body): Kill.
346 (emit_associated_thunks): Declare.
347 * semantics.c (emit_associated_thunks): Export.
348 (expand_body): Kill.
349
350 2007-09-09 David Daney <ddaney@avtrex.com>
351
352 PR c++/33324
353 * init.c (build_new_1): Use POINTER_PLUS_EXPR instead of MINUS_EXPR
354 to calculate cookie_ptr.
355
356 2007-09-08 Jason Merrill <jason@redhat.com>
357
358 PR c++/33342
359 * pt.c (most_specialized_class): Set processing_template_decl
360 while tsubsting partial spec args.
361
362 2007-09-06 Jason Merrill <jason@redhat.com>
363
364 * decl2.c (get_guard): Copy visibility from the guarded variable.
365
366 2007-09-06 Jan Hubicka <jh@suse.cz>
367
368 * semantics.c (expand_body): Do not mark arguments of clones used.
369
370 2007-09-06 Paolo Carlini <pcarlini@suse.de>
371
372 PR c++/32674
373 * decl.c (cp_finish_decl): When processing_template_decl,
374 deal correctly with init as TREE_LIST.
375
376 2007-09-06 Tom Tromey <tromey@redhat.com>
377
378 * decl.c (finish_function): Put return's location on line zero of
379 file.
380
381 2007-09-05 Jason Merrill <jason@redhat.com>
382
383 PR c++/15745
384 * except.c (prepare_eh_type): Use type_decays_to.
385
386 PR c++/15097
387 * init.c (build_delete): Use build_headof to get the address of the
388 complete object if we aren't using the deleting destructor.
389 * rtti.c (build_headof): No longer static.
390 * cp-tree.h: Declare it.
391
392 2007-09-06 Jakub Jelinek <jakub@redhat.com>
393
394 * decl.c (duplicate_decls): Set TREE_NOTHROW on __builtin_XX
395 decl if a prototype for XX is provided with throw().
396
397 PR c++/33289
398 * decl.c (builtin_function_1): Set DECL_ANTICIPATED also
399 on __*_chk non-__builtin_* decls.
400
401 2007-09-05 Paolo Carlini <pcarlini@suse.de>
402
403 PR c++/30302
404 * semantics.c (finish_id_expression): Use context_for_name_lookup
405 insted of DECL_CONTEXT, to see through anonymous structs and unions.
406 * class.c (finish_struct_anon): Deal correctly with anonymous
407 structs (vs unions, as GNU extension) in error messages.
408
409 2007-09-05 Jan Hubicka <jh@suse.cz>
410
411 * cp/sematics.c (expand_body): Remove unnecesary import_export_decl
412 call, DECL_EXTERNAL checks and current_function_decl saving.
413
414 2007-09-05 Paolo Carlini <pcarlini@suse.de>
415
416 PR c++/29731 (again)
417 * parser.c (cp_parser_primary_expression): Return error_mark_node
418 when a statement-expression is found in a template-argument list.
419
420 2007-09-04 Jason Merrill <jason@redhat.com>
421
422 * except.c (initialize_handler_parm): Use
423 fold_build_cleanup_point_expr.
424
425 PR c++/31419
426 * call.c (reference_binding): Don't look for user-defined conversions
427 to the same type.
428
429 PR c++/31411
430 * except.c (initialize_handler_parm): Put a CLEANUP_POINT_EXPR inside
431 the MUST_NOT_THROW_EXPR.
432
433 2007-09-04 Richard Sandiford <richard@codesourcery.com>
434
435 * decl.c (cp_finish_decl): Call determine_visibility before
436 make_rtl_for_nonlocal_decl.
437
438 2007-09-04 Jason Merrill <jason@redhat.com>
439
440 PR c++/14032
441 * pt.c (most_specialized_class): Substitute outer template
442 arguments into the arguments of a member template partial
443 specialization.
444 (strip_innermost_template_args): New fn.
445
446 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
447
448 * Make-lang.in (g++spec.o): Remove SHLIB_MULTILIB.
449
450 2007-09-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
451
452 * call.c (name_as_c_string): Supply a TYPE for CONST_CAST.
453 * decl.c (cp_make_fname_decl): Likewise,
454 * parser.c (cp_parser_string_literal): Likewise,
455 * tree.c (pod_type_p, zero_init_p): Use CONST_CAST_TREE.
456 * typeck.c (cp_type_quals, cp_type_readonly, cp_has_mutable_p):
457 Likewise,
458
459 2007-09-02 Paolo Carlini <pcarlini@suse.de>
460
461 PR c++/33208
462 * typeck.c (build_unary_op): Fix error message for
463 Boolean expression as operand to operator--.
464
465 2007-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
466
467 * tree.c (pod_type_p, zero_init_p): Use strip_array_types.
468 * typeck.c (cp_type_quals, cp_type_readonly, cp_has_mutable_p):
469 Likewise.
470
471 2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
472
473 PR c++/32597
474 * init.c (build_default_init): Make extern.
475 * cp-tree.h (build_default_init): Declare here.
476 * pt.c (tsubst_expr): When the instantiation of the initializer of
477 a variable results in an empty list, default-initialize the
478 variable.
479 (tsubst_copy_and_build): When the instantiation of the initializer
480 in a new expression results in an empty initializer list,
481 default-initialize it.
482
483 2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
484
485 * mangle.c (write_type): Change mangling of rvalue reference from
486 `RR' to `O'.
487
488 2007-08-31 Jakub Jelinek <jakub@redhat.com>
489
490 * decl.c (duplicate_decls): Remove duplicated line.
491
492 2007-08-31 Paolo Carlini <pcarlini@suse.de>
493
494 PR c++/33210
495 * cxx-pretty-print.c (pp_cxx_unqualified_id): Deal with
496 BOUND_TEMPLATE_TEMPLATE_PARM.
497
498 2007-08-31 Paolo Carlini <pcarlini@suse.de>
499
500 PR c++/32113
501 * search.c (lookup_member): Check the name argument for
502 error_mark_node.
503
504 2007-08-31 Paolo Carlini <pcarlini@suse.de>
505
506 PR c++/33212
507 * parser.c (cp_parser_trait_expr): Check rerurn value of
508 cp_parser_type_id.
509
510 2007-08-30 Ollie Wild <aaw@google.com>
511
512 * cvt.c (cp_convert_to_pointer): Remove force parameter. Call
513 convert_ptrmem for pointer to member conversions.
514 (convert_to_pointer_force): Update cp_convert_to_pointer call.
515 (ocp_convert): Update cp_convert_to_pointer call.
516 * typeck.c (convert_ptrmem): Add conditional for null pointers to
517 members.
518 (build_static_cast_1): Check can_convert for conversions in either
519 direction.
520 (get_delta_difference_1): New function.
521 (get_delta_difference): Refactor to call get_delta_difference_1.
522
523 2007-08-30 Jakub Jelinek <jakub@redhat.com>
524
525 * decl.c (start_preparsed_function): Set
526 DECL_DISREGARD_INLINE_LIMITS for GNU_INLINE_P functions.
527
528 2007-08-28 Paolo Carlini <pcarlini@suse.de>
529
530 PR c++/33209
531 * error.c (dump_expr): Deal with TEMPLATE_TYPE_PARM and
532 BOUND_TEMPLATE_TEMPLATE_PARM.
533
534 2007-08-28 Jakub Jelinek <jakub@redhat.com>
535
536 PR c++/32596
537 PR c++/32400
538 * pt.c (check_explicit_specialization): Set DECL_INTERFACE_KNOWN
539 and DECL_NOT_REALLY_EXTERN if tmpl_func is not public.
540
541 2007-08-27 Jason Merrill <jason@redhat.com>
542
543 PR c++/29000
544 * pt.c (build_non_dependent_expr, type_dependent_expression_p):
545 Look inside STMT_EXPR.
546 * semantics.c (stmt_expr_value_expr): New fn.
547 * cp-tree.h: Declare it.
548
549 PR c++/28558
550 * decl.c (groktypename): Ignore attributes applied to class type.
551
552 2007-08-28 Richard Guenther <rguenther@suse.de>
553
554 * decl.c (duplicate_decls): Merge DECL_DISREGARD_INLINE_LIMITS.
555
556 2007-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
557
558 * error.c (dump_expr): Handle COMPLEX_CST.
559 * cxx-pretty-print.c (pp_cxx_primary_expression): Likewise.
560 (pp_cxx_expression): Likewise.
561
562 2007-08-27 Alexandre Oliva <aoliva@redhat.com>
563
564 * decl.c (GNU_INLINE_P): New.
565 (duplicate_decls): Handle gnu_inline. Merge attributes and
566 some flags in overriding definitions.
567 (redeclaration_error_message): Handle gnu_inline.
568 (start_preparsed_function): Likewise.
569
570 2007-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
571
572 * call.c (sufficient_parms_p): Constify.
573 * class.c (same_signature_p): Likewise.
574 * cp-gimplify.c (is_invisiref_parm,
575 cxx_omp_privatize_by_reference): Likewise.
576 * cp-objcp-common.c (has_c_linkage): Likewise.
577 * cp-tree.h (NON_THUNK_FUNCTION_CHECK, THUNK_FUNCTION_CHECK,
578 sufficient_parms_p, same_signature_p, copy_fn_p, move_fn_p,
579 grok_ctor_properties, nothrow_libfn_p, skip_artificial_parms_for,
580 num_artificial_parms_for, comp_template_parms,
581 template_parameter_pack_p, any_dependent_template_arguments_p,
582 any_type_dependent_arguments_p, any_value_dependent_elements_p,
583 repo_export_class_p, cxx_omp_privatize_by_reference, pod_type_p,
584 zero_init_p, member_p, cp_lvalue_kind,
585 builtin_valid_in_constant_expr_p, decl_anon_ns_mem_p,
586 varargs_function_p, is_dummy_object, special_function_kind,
587 string_conv_p, type_unknown_p, comp_except_specs, compparms,
588 comp_cv_qualification, is_bitfield_expr_with_lowered_type,
589 unlowered_expr_type, ptr_reasonably_similar, cp_type_readonly,
590 cp_has_mutable_p, at_least_as_qualified_p,
591 invalid_nonstatic_memfn_p, lvalue_or_else, lvalue_p): Likewise.
592 * decl.c (copy_fn_p, move_fn_p, grok_ctor_properties): Likewise.
593 * except.c (nothrow_libfn_p): Likewise.
594 * method.c (skip_artificial_parms_for, num_artificial_parms_for):
595 Likewise.
596 * pt.c (comp_template_parms, template_parameter_pack_p,
597 any_type_dependent_arguments_p, any_value_dependent_elements_p,
598 any_dependent_template_arguments_p): Likewise.
599 * repo.c (repo_export_class_p): Likewise.
600 * semantics.c (anon_aggr_type_p): Likewise.
601 * tree.c (lvalue_p_1, real_lvalue_p, lvalue_p,
602 builtin_valid_in_constant_expr_p, decl_anon_ns_mem_p,
603 varargs_function_p, member_p, is_dummy_object, pod_type_p,
604 zero_init_p, special_function_p): Likewise.
605 * typeck.c (comp_array_types, type_unknown_p, comp_except_specs,
606 comp_array_types, at_least_as_qualified_p, comp_cv_qualification,
607 compparms, invalid_nonstatic_memfn_p,
608 is_bitfield_expr_with_lowered_type, unlowered_expr_type,
609 string_conv_p, ptr_reasonably_similar, cp_type_readonly,
610 cp_has_mutable_p, lvalue_or_else): Likewise.
611
612 2007-08-25 Paolo Bonzini <bonzini@gnu.org>
613
614 * decl.c (cp_tree_node_structure): Kill TINST_LEVEL case.
615 * cp-objcp-common.c (cp_tree_size): Ditto.
616 * tree.c (cp_walk_subtrees): Ditto
617 * cp-tree.def (TINST_LEVEL): Go away.
618 * cp-tree.h (struct tinst_level_s): Rename to struct tinst_level,
619 move together with other non-tree structs.
620 (enum cp_tree_node_structure_enum): Nuke TS_CP_TINST_LEVEL.
621 (union lang_tree_node): Eliminate tinst_level field.
622 (TINST_DECL, TINST_LOCATION, TINST_IN_SYSTEM_HEADER_P): Annihilate.
623 (current_instantiation, outermost_tinst_level): Return
624 a "struct tinst_level *".
625
626 * error.c (print_instantiation_partial_context): Change second
627 parameter to a "struct tinst_level *". Replace accessor macros
628 with field access.
629 (print_instantiation_full_context): Likewise.
630 * lex.c (in_main_input_context): Likewise.
631
632 * pt.c (struct pending_templates): New.
633 (pending_templates, last_pending_template): Use it as a type.
634 (current_tinst_level): Change typo to "struct tinst_level *"
635 (reopen_tinst_level): Accept "struct tinst_level *", return decl.
636 (add_pending_template): Construct a "struct pending_template".
637 Replace TINST_LEVEL accessor macros with field access.
638 (push_tinst_level): Likewise, using GGC_NEW instead of make_node.
639 (pop_tinst_level): Likewise.
640 (instantiate_pending_templates): Likewise. Factor common code used
641 when an instantiation has been done.
642 (outermost_tinst_level): Replace tree_last with loop.
643 (current_instantiation): Return a "struct tinst_level *".
644
645 2007-08-24 Ollie Wild <aaw@google.com>
646
647 * name-lookup.c (add_decl_to_level): Remove addition to vtables chain.
648 * name-lookup.h (cp_binding_level): Remove vtables member.
649
650 2007-08-24 Richard Guenther <rguenther@suse.de>
651
652 * tree.c (cp_cannot_inline_tree_fn): Remove.
653 * cp-tree.h (cp_cannot_inline_tree_fn): Likewise.
654 * cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN):
655 Remove define.
656
657 2007-08-24 Jakub Jelinek <jakub@redhat.com>
658
659 PR c++/32567
660 * typeck.c (build_unary_op) <case PREINCREMENT_EXPR>: Return
661 error_mark_node right away if build_expr_type_conversion
662 returned it.
663
664 PR c++/32898
665 * name-lookup.c (set_decl_namespace): lookup_qualified_name failure
666 is error_mark_node rather than NULL_TREE.
667 * pt.c (check_explicit_specialization): Likewise.
668
669 PR c++/31941
670 * error.c (resolve_virtual_fun_from_obj_type_ref): Handle
671 TARGET_VTABLE_USES_DESCRIPTORS targets properly.
672
673 2007-08-22 Jason Merrill <jason@redhat.com>
674
675 PR c++/29365
676 * pt.c (outermost_tinst_level): New function.
677 * lex.c (in_main_input_context): New function.
678 * cp-tree.h: Declare it.
679 * decl2.c (constrain_class_visibility): Use it to avoid warning
680 about uses of the anonymous namespace in the main input file.
681
682 2007-08-21 Jakub Jelinek <jakub@redhat.com>
683
684 * init.c (build_new_1): Use get_target_expr instead of save_expr.
685
686 2007-08-20 Pawel Sikora <pluto@pld-linux.org>
687
688 PR c++/7302
689 * class.c (finish_struct_1): Warn when a class has virtual
690 functions and accessible non-virtual destructor.
691
692 2007-08-20 Richard Guenther <rguenther@suse.de>
693
694 PR c++/22369
695 PR c++/22451
696 * call.c (build_new_method_call): Convert initializer to
697 the basetype.
698 * init.c (build_aggr_init): Do not fiddle with types.
699 (build_vec_delete_1): Use correct type for POINTER_PLUS_EXPR.
700 * except.c (build_throw): Do not drop qualifiers for the
701 pointer type.
702 * typeck.c (get_member_function_from_ptrfunc): Do not
703 fiddle with types, instead convert.
704 (build_ptrmemfunc1): Convert to the target type for
705 initialization.
706 (gfc_trans_allocate): Convert result to target type.
707 * cp-objcp-common.c (cxx_get_alias_set): Pointers to
708 pointer-to-member structures shall have alias set zero as well.
709
710 2007-08-20 Richard Guenther <rguenther@suse.de>
711
712 * cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P):
713 Remove.
714 * cp-tree.h (cp_auto_var_in_fn_p): Remove.
715 (nonstatic_local_decl_p): Likewise.
716 * tree.c (cp_auto_var_in_fn_p): Remove.
717 * decl.c (nonstatic_local_decl_p): Remove.
718
719 2007-08-20 Richard Guenther <rguenther@suse.de>
720
721 * cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES):
722 Remove define.
723 * tree.h (cp_walk_tree): New define to walk_tree_1 with
724 cp_walk_subtrees lh parameter.
725 (cp_walk_tree_without_duplicates): New define to
726 walk_tree_without_duplicates_1 with cp_walk_subtrees lh parameter.
727 * tree.c (count_trees): Call
728 cp_walk_tree_without_duplicates.
729 (verify_stmt_tree): Call cp_walk_tree.
730 (break_out_target_exprs): Likewise.
731 (WALK_SUBTREE): Likewise.
732 * cp-gimplify.c (cp_genericize): Likewise.
733 * cp-pt.c (find_parameter_packs_r): Likewise.
734 (uses_parameter_packs): Likewise.
735 (make_pack_expansion): Likewise.
736 (check_for_bare_parameter_packs): Likewise.
737 (for_each_template_parm): Likewise.
738 * decl.c (check_default_argument): Call
739 cp_walk_tree_without_duplicates.
740 * except.c (build_throw): Likewise.
741 * decl2.c (type_visibility): Likewise.
742 * semantics.c (expand_or_defer_fn): Likewise.
743 (finalize_nrv): Call cp_walk_tree.
744
745 2007-08-20 Jakub Jelinek <jakub@redhat.com>
746
747 PR c++/33025
748 * init.c (build_new_1): Rename placement_var variable to placement_expr.
749 Initialize it with save_expr rather than get_temp_regvar.
750
751 2007-08-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
752
753 PR c++/28989
754 * tree.c (lvalue_p_1 <case SAVE_EXPR>): SAVE_EXPRs are never
755 lvalues.
756
757 2007-08-17 Ollie Wild <aaw@google.com>
758
759 PR c++/31749
760 * name-lookup.c (do_nonmember_using_decl): Shift implicit type
761 declarations into appropriate slots for comparison. Fix type
762 comparison.
763
764 2007-08-17 Paolo Carlini <pcarlini@suse.de>
765
766 PR c++/32112
767 * error.c (dump_decl): Deal with UNBOUND_CLASS_TEMPLATE.
768 * cxx-pretty-print.c (pp_cxx_unqualified_id): Likewise.
769
770 2007-08-17 Paolo Carlini <pcarlini@suse.de>
771
772 PR c++/32870
773 * parser.c (cp_parser_class_head): Improve error message.
774
775 2007-08-16 Seongbae Park <seongbae.park@gmail.com>
776
777 * pt.c (instantiate_decl): Set input_location
778 for the function end.
779
780 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
781
782 * cp-objcp-common.c (cxx_warn_unused_global_decl, cp_expr_size):
783 Constify.
784 * cp-tree.h (local_variable_p, nonstatic_local_decl_p,
785 class_tmpl_impl_spec_p, cp_auto_var_in_fn_p, cp_type_quals,
786 cxx_incomplete_type_diagnostic, cxx_incomplete_type_error,
787 cxx_warn_unused_global_decl, cp_expr_size): Likewise.
788 * decl.c (local_variable_p, nonstatic_local_decl_p): Likewise.
789 * tree.c (class_tmpl_impl_spec_p, cp_auto_var_in_fn_p): Likewise.
790 * typeck.c (cp_type_quals): Likewise.
791 * typeck2.c (cxx_incomplete_type_diagnostic,
792 cxx_incomplete_type_error): Likewise.
793
794 2007-08-16 Paolo Carlini <pcarlini@suse.de>
795
796 PR c++/31132
797 * pt.c (tsubst_friend_function): When check_classfn
798 returns error_mark_node likewise return it.
799
800 2007-08-15 Jakub Jelinek <jakub@redhat.com>
801
802 PR c++/32992
803 * typeck.c (check_return_expr): Don't NRV optimize vars in
804 anonymous unions.
805 * decl.c (finish_function): Comment fix.
806
807 2007-08-15 Paolo Carlini <pcarlini@suse.de>
808
809 PR c++/33035
810 * pt.c (push_template_decl_real): Depending on TYPE_P
811 use either TYPE_CONTEXT or DECL_CONTEXT.
812
813 2007-08-14 Mark Mitchell <mark@codesourcery.com>
814
815 * semantics.c (finish_omp_clauses): Strip a NOP_EXPR if
816 constructors and destructors return this.
817
818 2007-08-14 Paolo Carlini <pcarlini@suse.de>
819
820 PR c++/27211
821 * decl2.c (check_classfn): Return error_mark_node in case of error;
822 in that case, do not call add_method.
823 * decl.c (start_decl): Deal with check_classfn returning
824 error_mark_node.
825 (grokfndecl): Likewise.
826 * pt.c (tsubst_friend_function): Likewise.
827
828 2007-08-14 Andrew Pinski <pinskia@gmail.com>
829
830 PR c++/30428
831 * typeck.c (build_binary_op): Disallow vector float types with
832 BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
833
834 2007-08-11 Ian Lance Taylor <iant@google.com>
835
836 * cp-objcp-common.c (cxx_get_alias_set): Change return type to
837 alias_set_type.
838 * cp/cp-tree.h (cxx_get_alias_set): Update declaration.
839
840 2007-08-10 Ollie Wild <aaw@google.com>
841
842 * name-lookup.c (do_nonmember_using_decl): Print an error for ambiguous
843 type lookups.
844 (ambiguous_decl): Construct tree of ambiguous types. Remove extaneous
845 function parameter.
846 (unqualified_namespace_lookup): Fix ambiguous_decl call.
847 (lookup_using_namespace): Fix ambiguous_decl call.
848 (qualified_lookup_using_namespace): Fix ambiguous_decl call.
849
850 2007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
851
852 * call.c (name_as_c_string): Use CONST_CAST.
853 * decl.c (build_decl): Likewise.
854 * parser.c (cp_parser_string_literal): Likewise.
855
856 2007-08-10 Paolo Carlini <pcarlini@suse.de>
857
858 PR c++/17763
859 * error.c (dump_expr): Consistently use the *_cxx_*
860 variants of the pretty-print functions.
861
862 2007-08-10 Paolo Carlini <pcarlini@suse.de>
863
864 PR c++/22256
865 * decl.c (check_special_function_return_type): Just error
866 on return type specified for conversion operator.
867
868 2007-08-09 Daniel Berlin <dberlin@dberlin.org>
869
870 * typeck2.c (readonly_error): Handle general expressions.
871 * error.c (dump_expr): Handle POINTER_PLUS_EXPR
872
873 2007-08-06 Dan Hipschman <dsh@google.com>
874
875 * method.c (use_thunk): Use DECL_NAME instead of DECL_RTL to
876 access function name.
877
878 2007-08-04 Alfred Minarik <a.minarik@aon.at>
879
880 PR pch/13676
881 * lang-specs.h: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
882 * g++spec.c (lang_specific_driver): Check them.
883
884 2007-08-06 Paolo Carlini <pcarlini@suse.de>
885
886 PR c++/19532
887 * pt.c (inline_needs_template_parms): Fix comment; change return type
888 to bool.
889
890 2007-08-05 Volker Reichelt <v.reichelt@netcologne.de>
891
892 Revert:
893 2007-03-26 Dirk Mueller <dmueller@suse.de>
894
895 * parser.c (cp_parser_member_declaration): Pedwarn
896 about stray semicolons after member declarations.
897
898 2007-08-02 Lee Millward <lee.millward@gmail.com>
899
900 PR c++/30849
901 PR c++/30850
902 PR c++/30851
903 * parser.c (cp_parser_asm_definition): Detect and discard asm
904 statements with invalid inputs or outputs.
905 (cp_parser_asm_operand_list): Return error mark node if any
906 of the operands are invalid. Adjust documentation.
907
908 2007-08-02 Nick Clifton <nickc@redhat.com>
909
910 * typeck.c: Change copyright header to refer to version 3 of the
911 GNU General Public License and to point readers at the COPYING3
912 file and the FSF's license web page.
913 * optimize.c, lang-specs.h, init.c, class.c, repo.c, decl.c,
914 config-lang.in, cp-tree.def, call.c, decl.h, ptree.c,
915 Make-lang.in, method.c, rtti.c, cp-objcp-common.c, g++spec.c,
916 cp-objcp-common.h, except.c, error.c, operators.def, cvt.c,
917 tree.c, mangle.c, cp-tree.h, dump.c, search.c, friend.c, expr.c,
918 cp-gimplify.c, cxx-pretty-print.c, cp-lang.c, typeck2.c, pt.c,
919 cxx-pretty-print.h, semantics.c, name-lookup.c, lex.c, decl2.c,
920 name-lookup.h, parser.c: Likewise.
921
922 2007-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
923
924 PR middle-end/32668
925 * call.c (magic_varargs_p): Honor the "type generic" attribute.
926
927 2007-07-30 Paolo Carlini <pcarlini@suse.de>
928
929 PR c++/32108
930 * semantics.c (finish_label_stmt): Reject the __label__
931 extension outside function scopes.
932
933 2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
934
935 * parser.c (eof_token): Un-constify.
936 (cp_lexer_new_main, cp_lexer_new_from_tokens, VEC_alloc,
937 cp_lexer_consume_token, cp_lexer_purge_token): Remove spurious
938 casts.
939
940 2007-07-28 Kazu Hirata <kazu@codesourcery.com>
941
942 * pt.c, tree.c, typeck2.c: Fix comment typos.
943
944 2007-07-28 Simon Martin <simartin@users.sourceforge.net>
945 Mark Mitchell <mark@codesourcery.com>
946
947 PR c++/30917
948 * name-lookup.c (lookup_name_real): Non namespace-scope bindings can be
949 hidden due to friend declarations in local classes.
950
951 2007-07-27 Douglas Gregor <doug.gregor@gmail.com>
952
953 * typeck.c (structural_comptypes): Compare DECLTYPE_TYPE nodes.
954 * cp-tree.def (DECLTYPE_TYPE): New.
955 * error.c (dump_type): Dump DECLTYPE_TYPE nodes.
956 (dump_type_prefix): Ditto.
957 (dump_type_suffix): Ditto.
958 * tree.c (DECLTYPE_TYPE): Walk DECLTYPE_TYPE nodes.
959 * mangle.c (write_type): Handle DECLTYPE_TYPE.
960 * cp-tree.h (IS_AGGR_TYPE): DECLTYPE_TYPE nodes can be aggregate
961 types.
962 (DECLTYPE_TYPE_EXPR): New.
963 (DECLTYPE_TYPE_ID_EXPR_OR_MEMBER_ACCESS_P): New.
964 (finish_declared_type): Declare.
965 * cxx-pretty-print.c (pp_cxx_type_specifier_seq): Print
966 DECLTYPE_TYPE nodes.
967 (pp_cxx_type_id): Ditto.
968 * pt.c (for_each_template_parm_r): Walk DECLTYPE_TYPE children.
969 (tsubst): Substitute into a DECLTYPE_TYPE node.
970 (tsubst_copy): Ditto.
971 (unify): Cannot deduce anything from TYPEOF_TYPE or DECLTYPE_TYPE
972 nodes.
973 (dependent_type_p_r): DECLTYPE_TYPE types are always dependent.
974 * semantics.c (finish_typeof): TYPEOF_TYPE types need to use
975 structural equality (because we can't hash the expressions).
976 (finish_declared_type): New.
977 * lex.c (reswords): Add "decltype" keyword.
978 * parser.c cp_lexer_next_token_is_decl_specifier_keyword
979 (cp_parser_postfix_expression): Add member_access_only_p to
980 restrict postfix expression to member access expressions.
981 (cp_parser_unary_expression): Update call to
982 cp_parser_postfix_expression to reflect new parameter.
983 (cp_parser_declared_type): New.
984 (cp_parser_simple_type_specifier): Parse decltype types.
985
986 2007-07-27 Mark Mitchell <mark@codesourcery.com>
987
988 PR c++/32346
989 * call.c (convert_for_arg_passing): Only widen bitfields to their
990 declared types if necessary.
991
992 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
993
994 * parser.c (cp_parser_string_literal, cp_parser_sizeof_operand):
995 Constify.
996
997 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
998
999 * decl.c (typename_hash, typename_compare): Constify.
1000 * mangle.c (hash_type, compare_type): Likewise.
1001 * pt.c (eq_local_specializations, hash_local_specialization):
1002 Likewise.
1003 * tree.c (cplus_array_hash, cplus_array_compare, list_hash_eq,
1004 list_hash): Likewise.
1005 * typeck2.c (pat_compare): Likewise.
1006
1007 2007-07-24 Nathan Sidwell <nathan@codesourcery.com>
1008
1009 * method.c (implicitly_declare_fn): Increase alignment if member
1010 function pointer format requires it.
1011
1012 2007-07-24 Paolo Carlini <pcarlini@suse.de>
1013
1014 PR c++/29001
1015 * typeck.c (check_return_expr): Do not pass a null argument
1016 to null_ptr_cst_p.
1017
1018 2007-07-24 Paolo Carlini <pcarlini@suse.de>
1019
1020 PR c++/32561
1021 * decl.c (redeclaration_error_message): Call DECL_ANON_UNION_VAR_P
1022 only on VAR_DECL.
1023
1024 2007-07-22 Nathan Sidwell <nathan@codesourcery.com>
1025
1026 PR c++/32839
1027 * typeck.c (convert_arguments): Only use default args if we have
1028 a function decl.
1029
1030 PR c++/30818
1031 * typeck.c (structural_comptypes): No need to check
1032 resolve_typename_type return value here.
1033 * cp-tree.h (TYPENAME_IS_RESOLVING_P): New.
1034 * pt.c (resolve_typename_type): Follow typename typedefs. Return
1035 original type rather than error_mark_node in case of failure.
1036 * parser.c (cp_parser_nested_name_specifier_opt): Adjust
1037 resolve_typename_type result check.
1038 (cp_parser_direct_declarator, cp_parser_head,
1039 cp_parser_constructor_declarator_p): Likewise.
1040
1041 2007-07-12 Kazu Hirata <kazu@codesourcery.com>
1042
1043 * pt.c (template_parms_variadic_p): Remove.
1044 * cp-tree.h: Remove the prototype for template_parms_variadic_p.
1045
1046 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1047
1048 PR c++/30854
1049 * error.c (dump_expr) <case AGGR_INIT_EXPR>: Pass true as last
1050 argument to dump_aggr_init_expr_args instead of false.
1051
1052 2007-07-11 Douglas Gregor <doug.gregor@gmail.com>
1053
1054 * typeck.c (comptypes): When USE_CANONICAL_TYPES, use the
1055 canonical types; otherwise, fall back to structural type
1056 comparisons. If ENABLE_CHECKING and USE_CANONICAL_TYPES, give an
1057 internal compiler error if the canonical types are wrong.
1058
1059 2007-07-11 Paolo Carlini <pcarlini@suse.de>
1060
1061 PR c++/32560
1062 * parser.c (cp_parser_make_indirect_declarator): When the
1063 the code argument is ERROR_MARK return cp_error_declarator.
1064
1065 2007-07-09 Geoffrey Keating <geoffk@apple.com>
1066
1067 PR 32617
1068 * decl.c (cxx_init_decl_processing): Don't set
1069 force_align_functions_log.
1070 (grokfndecl): Honour ptrmemfunc_vbit_in_pfn.
1071 * typeck.c (cxx_alignof_expr): When alignof is used on a plain
1072 FUNCTION_DECL, return its alignment.
1073
1074 2007-07-09 Richard Guenther <rguenther@suse.de>
1075
1076 * decl.c (start_preparsed_function): Do not promote return type.
1077
1078 2007-07-08 Paolo Carlini <pcarlini@suse.de>
1079
1080 PR c++/30535
1081 * pt.c (unify): Never pass error_mark_node to template_decl_level.
1082
1083 2007-07-07 Mark Mitchell <mark@codesourcery.com>
1084
1085 PR c++/32232
1086 * pt.c (resolve_overloaded_unification): Robustify. Return a
1087 bool, not an int.
1088 (type_unification_real): Adjust accordingly.
1089
1090 2007-07-06 Richard Guenther <rguenther@suse.de>
1091
1092 * init.c (build_new_1): Use the correct pointer type.
1093 * typeck2.c (build_m_component_ref): Likewise.
1094
1095 2007-07-05 Mark Mitchell <mark@codesourcery.com>
1096
1097 PR c++/32245
1098 * init.c (build_zero_init): Always build an initializer for
1099 non-static storage.
1100 * typeck2.c (build_functional_cast): Use build_zero_init.
1101
1102 PR c++/32251
1103 * init.c (build_new_1): Always pass the allocation function to
1104 build_op_delete_call.
1105 * call.c (build_op_delete_call): Handle operator delete with a
1106 variable-argument list. Do not issue an error when no matching
1107 deallocation function is available for a new operator.
1108
1109 PR c++/31992
1110 * cp-tree.h (any_value_dependent_elements_p): Declare it.
1111 * decl.c (value_dependent_init_p): New function.
1112 (cp_finish_decl): Use it.
1113 * pt.c (value_dependent_expression_p): Use
1114 any_value_dependent_elements_p.
1115 * parser.c (cp_parser_primary_expression): Add comment about
1116 treating dependent qualified names as integral
1117 constant-expressions.
1118
1119 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
1120
1121 * decl.c (build_ptrmemfunc_type): Always use structural equality
1122 tests when comparing pointer-to-member-function types, because the
1123 handling of TYPE_GET_PTRMEMFUNC_TYPE currently defeats canonical
1124 types.
1125
1126 2007-07-03 Mark Mitchell <mark@codesourcery.com>
1127
1128 * init.c (build_new): Tweak comment.
1129
1130 2007-06-29 Dave Brolley <brolley@redhat.com>
1131
1132 PR c++/31743
1133 * parser.c (cp_parser_new_type_id): Don't reduce a named array
1134 type to its base type and number of elements here.
1135 * init.c (build_new): Call complete_type_or_else to ensure that the
1136 type is complete and to issue a diagnostic if it is not.
1137 (build_new_1): Don't call complete_type_or_else here.
1138
1139 2007-07-03 Richard Guenther <rguenther@suse.de>
1140
1141 PR c++/32609
1142 * class.c (fixed_type_or_null): Re-lookup the hashtable slot
1143 after recursing.
1144
1145 2007-07-02 Simon Baldwin <simonb@google.com>
1146
1147 * parser.c (cp_parser_elaborated_type_specifier): Added a warning
1148 for inner-style nested forward declarations that don't declare
1149 anything useful.
1150
1151 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1152
1153 PR c++/31748
1154 * semantics.c (finish_omp_clauses): Use %qD instead of %qE for
1155 DECL_P in not a variable and appears more than once error messages.
1156
1157 2007-07-01 Ollie Wild <aaw@google.com>
1158
1159 * name-lookup.c (ambiguous_decl): Fix case when new->value is hidden.
1160 (select_decl): Remove function.
1161 (unqualified_namespace_lookup): Populate binding by calling
1162 ambiguous_decl. Remove select_decl call.
1163 (lookup_qualified_name): Remove select_decl call.
1164 * decl.c (lookup_and_check_tag): Check for ambiguous references.
1165 * parser.c (cp_parser_elaborated_type_specifier): Skip redundant error
1166 generation when name lookup is ambiguous.
1167
1168 2007-06-29 Douglas Gregor <doug.gregor@gmail.com>
1169
1170 PR c++/31724
1171 * init.c (build_new_1): Use structural equality on the copy of the
1172 array type.
1173
1174 2007-06-28 Geoffrey Keating <geoffk@apple.com>
1175
1176 * decl2.c (determine_visibility): Implement
1177 flag_visibility_ms_compat effect on type info.
1178 * decl.c (cxx_init_decl_processing): Implement
1179 global effect of flag_visibility_ms_compat.
1180
1181 2007-06-28 Geoffrey Keating <geoffk@apple.com>
1182
1183 * decl2.c (start_objects): Mark constructor-running function
1184 as artificial.
1185
1186 2007-06-26 Simon Martin <simartin@users.sourceforge.net>
1187
1188 PR c++/32111
1189 * decl.c (grokdeclarator): Reset friendp for member functions declared
1190 friend of their own class.
1191
1192 2007-06-23 Mark Mitchell <mark@codesourcery.com>
1193
1194 * decl2.c (determine_visibility): Don't look for dllexport here.
1195 (determine_visibility_from_class): Tidy.
1196
1197 2007-06-18 Simon Baldwin <simonb@google.com>
1198
1199 PR c++/31923
1200 * parser.c (cp_parser_single_declaration): Added check for storage
1201 class other than sc_none in parsed declaration, and a flag to indicate
1202 if the call is part of an explicit template specialization parse.
1203 * (cp_parser_explicit_specialization): Specialization check flag added
1204 to call to cp_parser_single_declaration(), set true.
1205 * (cp_parser_template_declaration_after_export): Specialization check
1206 flag added to call to cp_parser_single_declaration(), set false.
1207 * pt.c (check_explicit_specialization): Added code to copy visiblity
1208 and linkage from the templated function to the explicit specialization.
1209
1210 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1211
1212 * typeck.c (build_binary_op): For templates build the
1213 expression in pieces to avoid the assert in build2_stat.
1214 (get_member_function_from_ptrfunc):
1215 Change over to using POINTER_PLUS_EXPR and convert
1216 the second operand to sizetype.
1217 * typeck2.c (build_m_component_ref): Likewise.
1218 * init.c (expand_virtual_init): Create a POINTER_PLUS_EXPR
1219 instead of PLUS_EXPR for pointers.
1220 (build_new_1): Likewise.
1221 (build_vec_delete_1): Likewise.
1222 (build_vec_delete): Likewise.
1223 * class.c (build_base_path): Likewise.
1224 (build_base_path): Likewise.
1225 (convert_to_base_statically): Likewise.
1226 (fixed_type_or_null): Handle POINTER_PLUS_EXPR.
1227 (get_vtbl_decl_for_binfo): Handle POINTER_PLUS_EXPR
1228 instead of PLUS_EXPR.
1229 (dfs_accumulate_vtbl_inits): Create a POINTER_PLUS_EXPR
1230 instead of PLUS_EXPR for pointers.
1231 * call.c (build_special_member_call): Likewise.
1232 * rtti.c (build_headof): Likewise.
1233 Use sizetype instead of ptrdiff_type_node.
1234 (tinfo_base_init): Create a POINTER_PLUS_EXPR
1235 instead of PLUS_EXPR for pointers.
1236 * except.c (expand_start_catch_block): Do a
1237 NEGATIVE and then a POINTER_PLUS_EXPR instead
1238 of a MINUS_EXPR.
1239 * cp-gimplify.c (cxx_omp_clause_apply_fn): Convert
1240 PLUS_EXPR on pointer types over to use
1241 POINTER_PLUS_EXPR and remove the conversion
1242 to the pointer types.
1243 * method.c (thunk_adjust): Use POINTER_PLUS_EXPR for
1244 adding to a pointer type. Use size_int instead of
1245 ssize_int. Convert the index to sizetype before
1246 adding it to the pointer.
1247
1248 2007-06-15 Mark Mitchell <mark@codesourcery.com>
1249
1250 * cp-tree.h (DECL_VAR_MARKED_P): Remove.
1251 (DECL_ANON_UNION_VAR_P): New macro.
1252 * class.c (fixed_type_or_null): Tidy. Use a hash table, rather
1253 than DECL_VAR_MARKED_P, to keep track of which variables we have
1254 seen.
1255 * decl.c (redeclaration_error_message): Complain about redeclaring
1256 anonymous union members at namespace scope.
1257 * decl2.c (build_anon_union_vars): Set DECL_ANON_UNION_VAR_P.
1258
1259 2007-06-14 Geoff Keating <geoffk@apple.com>
1260
1261 * decl2.c (determine_visibility): Ensure that functions with
1262 hidden types as parameters are hidden.
1263
1264 PR 31093
1265 * decl2.c (determine_visibility): Remove duplicate code for
1266 handling type info.
1267
1268 2007-06-12 Ian Lance Taylor <iant@google.com>
1269
1270 PR libstdc++/29286
1271 * init.c (avoid_placement_new_aliasing): New static function.
1272 (build_new_1): Call it.
1273
1274 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
1275
1276 * cp-objcp-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
1277 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
1278
1279 2007-06-08 Jakub Jelinek <jakub@redhat.com>
1280
1281 PR c++/32177
1282 * semantics.c (finish_omp_for): Call fold_build_cleanup_point_expr
1283 on init, the non-decl cond operand and increment value.
1284
1285 2007-06-07 Simon Martin <simartin@users.sourceforge.net>
1286
1287 PR c++/30759
1288 * decl.c (check_initializer): Report an error when a brace enclosed
1289 initializer is used for a non-aggregate type in C++98.
1290 (redeclaration_error_message): Rewrote flag_cpp0x in terms of
1291 cxx_dialect.
1292 (grokdeclarator): Likewise.
1293 (move_fn_p): Likewise.
1294 * typeck.c (check_return_expr): Likewise.
1295 * call.c (reference_binding): Likewise.
1296 * error.c (cp_cpp_error): Likewise.
1297 * pt.c (check_default_tmpl_args): Likewise.
1298 (tsubst): Likewise.
1299 * lex.c (init_reswords): Likewise.
1300 * parser.c (p_parser_primary_expression): Likewise.
1301 (TOKEN_PRECEDENCE): Likewise.
1302 (cp_parser_init_declarator): Likewise.
1303 (cp_parser_ptr_operator): Likewise.
1304 (cp_parser_parameter_declaration): Likewise.
1305 (cp_parser_enclosed_template_argument_list): Likewise.
1306 (cp_parser_skip_to_end_of_template_parameter_list): Likewise.
1307 (cp_parser_next_token_ends_template_argument_p): Likewise.
1308
1309 2007-06-04 Simon Baldwin <simonb@google.com>
1310
1311 * decl.c (grokdeclarator): Readability change. Moved case labels
1312 into direct switch statement scope.
1313
1314 2007-06-04 Paolo Carlini <pcarlini@suse.de>
1315
1316 * call.c (convert_like_real): Remove pointless code.
1317
1318 2007-05-31 Mark Mitchell <mark@codesourcery.com>
1319
1320 * decl.c (get_atexit_fn_ptr_type): New function.
1321 (get_atexit_node): Use it.
1322 (start_cleanup_fn): Likewise.
1323 (register_dtor_fn): Use the object's destructor, instead of a
1324 separate cleanup function, where possible.
1325 * cp-tree.h (CPTI_ATEXIT_FN_PTR_TYPE): New enumerator.
1326 (atexit_fn_ptr_type_node): New macro.
1327 * decl2.c (build_cleanup): Use build_address.
1328
1329 2007-05-31 Daniel Berlin <dberlin@dberlin.org>
1330
1331 * typeck.c (build_binary_op): Include types in error.
1332
1333 2007-05-31 Jakub Jelinek <jakub@redhat.com>
1334
1335 PR c++/31806
1336 * decl.c (cp_finish_decl): Also clear was_readonly if a static var
1337 needs runtime initialization.
1338
1339 2007-05-31 Paolo Carlini <pcarlini@suse.de>
1340
1341 PR c++/32158
1342 * semantics.c (finish_trait_expr): Complete the types.
1343
1344 2007-05-30 Russell Yanofsky <russ@yanofsky.org>
1345 Douglas Gregor <doug.gregor@gmail.com>
1346 Pedro Lamarao <pedro.lamarao@mndfck.org>
1347 Howard Hinnant <howard.hinnant@gmail.com>
1348
1349 PR c++/7412
1350 PR c++/29939
1351 * typeck.c (comptypes): Don't consider rvalue and lvalue
1352 reference types to be equivalent.
1353 (check_return_expr): Move from certain lvalues when returning
1354 them.
1355 * decl.c (grokdeclarator): Implement reference collapsing.
1356 (copy_fn_p): Don't consider constructors taking rvalue references
1357 to be copy constructors.
1358 (move_fn_p): New.
1359 * call.c (conversion): New "rvaluedness_matches_p" member.
1360 (convert_class_to_reference): Require reference type as first
1361 parameter instead of base type.
1362 (reference_binding): Add logic to handle rvalue references.
1363 (implicit_conversion): Update inaccurate comment.
1364 (convert_like_real): Disable creation of temporaries that are
1365 impossible to initialize for types with move constructors.
1366 (build_over_call): Elide move constructors when possible.
1367 (maybe_handle_implicit_object): Set "rvaluedness_matches_p".
1368 (maybe_handle_ref_bind): Return conversion instead of type node.
1369 (compare_ics): Add logic to use "rvaluedness_matches_p" values to
1370 determine preferred conversion sequences.
1371 * cp-tree.h (TYPE_REF_IS_RVALUE): New.
1372 (LOOKUP_PREFER_RVALUE): New.
1373 (DECL_MOVE_CONSTRUCTOR_P): New.
1374 (struct cp_declarator): Add "reference" member for reference
1375 types, with new "rvalue_ref" flag.
1376 (cp_build_reference_type): Declare.
1377 (move_fn_p): Declare.
1378 * error.c (dump_type_prefix): Format rvalue reference types
1379 correctly in error messages.
1380 * except.c (build_throw): Move from certain lvalues when
1381 throwing.
1382 * mangle.c (write_type): Mangle rvalue references differently
1383 than regular references.
1384 * parser.c (make_reference_declarator): Add boolean parameter for
1385 rvalue references.
1386 (cp_parser_make_indirect_declarator): New.
1387 (cp_parser_new_declarator_opt): Call
1388 cp_parser_make_indirect_declarator.
1389 (cp_parser_conversion_declarator_opt): Ditto.
1390 (cp_parser_declarator): Ditto.
1391 (cp_parser_ptr_operator): Parse "&&" tokens into rvalue reference
1392 declarators.
1393 * pt.c (tsubst): Implement reference collapsing.
1394 (maybe_adjust_types_for_deduction): Implement special template
1395 parameter deduction rule for rvalue references.
1396 (type_unification_real): Update calls to
1397 maybe_adjust_types_for_deduction.
1398 (try_one_overload): Ditto.
1399 (unify_pack_expansion): Ditto.
1400 * tree.c (lvalue_p_1): Handle rvalue reference types.
1401 (cp_build_reference_type): New.
1402
1403 2007-05-30 Jakub Jelinek <jakub@redhat.com>
1404
1405 PR c++/31809
1406 * decl.c (cp_finish_decl): Clear TREE_READONLY flag on TREE_STATIC
1407 variables that need runtime initialization.
1408
1409 2007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
1410
1411 PR c++/31339
1412 * typeck.c (build_unary_op <case PREINCREMENT_EXPR,
1413 case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
1414 case POSTDECREMENT_EXPR>): Return the error_mark_node
1415 if either the real or imaginary parts would an
1416 error_mark_node.
1417
1418 2007-05-25 Simon Martin <simartin@users.sourceforge.net>
1419 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1420
1421 PR c++/31745
1422 * parser.c (cp_parser_skip_to_closing_brace): Return true if the next
1423 token is a closing brace, false if there are no tokens left.
1424 (cp_parser_namespace_alias_definition): Only consume the next token if
1425 it is a closing brace.
1426
1427 * parser.c (cp_parser_class_specifier): Likewise.
1428
1429 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
1430
1431 * semantics.c (finish_member_declaration): Fix a typo in the
1432 last checkin.
1433
1434 2007-05-25 Douglas Gregor <doug.gregor@gmail.com>
1435
1436 PR c++/31431
1437 PR c++/31432
1438 PR c++/31434
1439 PR c++/31435
1440 PR c++/31437
1441 PR c++/31438
1442 PR c++/31442
1443 PR c++/31443
1444 PR c++/31444
1445 PR c++/31445
1446 * error.c (dump_type): Dump TYPE_ARGUMENT_PACK nodes.
1447 * cp-tree.h (check_for_bare_parameter_packs): Returns bool.
1448 * pt.c (check_for_bare_parameter_packs): Return bool indicated
1449 whether everything was okay. Fix indentation.
1450 (push_template_decl_real): Check for bare parameter packs in
1451 function parameters; where errors occur, mark the parameter types
1452 with ERROR_MARK_NODEs to avert ICEs.
1453 (coerce_template_parameter_pack): New.
1454 (coerce_template_parms): Moved parameter pack coercion into
1455 coerce_template_parameter_pack, and permit it anywhere in the
1456 template parameter list (not just at the end). Parameter and
1457 argument indices can vary (somewhat) separately now, so add
1458 PARM_IDX and ARG_IDX.
1459 (fn_type_unification): Don't set an argument pack as incomplete if
1460 no argument pack was deduced.
1461 (type_unification_real): If a type parameter is a parameter pack
1462 and has not otherwise been deduced, it will be deduced to an empty
1463 parameter pack.
1464 (more_specialized_fn): Use the actual lengths of the argument
1465 lists when comparing against expansions.
1466 * semantics.c (finish_member_declaration): If a field's type has
1467 bare parameter packs, error and set its type to ERROR_MARK_NODE.
1468
1469 2007-05-24 Danny Smith <dannysmith@users.sourceforge.net>
1470
1471 PR target/27067
1472 * mangle.c (mangle_decl): Call targetm.mangle_decl_assembler_name.
1473
1474 2007-05-22 Ollie Wild <aaw@google.com>
1475
1476 * name-lookup.c (ambiguous_decl): Adds check for hidden types.
1477 (unqualified_namespace_lookup): Adds check for hidden types.
1478
1479 2007-05-22 Ollie Wild <aaw@google.com>
1480
1481 * decl.c (duplicate_decls): Verify namespace names are unique.
1482
1483 2007-05-21 Mark Mitchell <mark@codesourcery.com>
1484
1485 * decl.c (cxx_maybe_build_cleanup): Handle
1486 __attribute__((cleanup)).
1487
1488 2007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1489
1490 * cvt.c (cp_convert_and_check): Don't check warnings if the
1491 conversion failed.
1492
1493 2007-05-18 Geoffrey Keating <geoffk@apple.com>
1494
1495 * mangle.c (write_real_cst): Use 'unsigned long' for %lx.
1496
1497 2007-05-14 Paolo Carlini <pcarlini@suse.de>
1498
1499 PR c++/29928
1500 * rtti.c (get_tinfo_decl_dynamic, get_typeid): Try to complete the
1501 type only if is a class type (5.2.8/4).
1502
1503 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
1504
1505 * cp-objcp-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
1506 * decl.c (grokdeclarator): Use unsigned_type_for instead of
1507 c_common_unsigned_type.
1508
1509 2007-05-11 Silvius Rus <rus@google.com>
1510
1511 * cp/typeck.c (build_indirect_ref): Add call to
1512 strict_aliasing_warning.
1513 (build_reinterpret_cast_1): Condition call to
1514 strict_aliasing_warning.
1515
1516 2007-05-11 Jan Hubicka <jh@suse.cz>
1517
1518 * semantics.c (expand_or_defer_fn): Do not call c_record_cdtor_fn.
1519 * decl2.c (start_objects): ctors and dtors are no longer public.
1520 (cp_write_global_declarations): Do not call c_build_cdtor_fns.
1521
1522 2007-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
1523
1524 * typeck.c (build_unary_op): Remove code that used to
1525 handle non lvalue increments/decrements.
1526
1527 2007-05-07 Mike Stump <mrs@apple.com>
1528
1529 * parser.c (check_empty_body): Add.
1530 (cp_parser_iteration_statement): Add call to check_empty_body.
1531
1532 2007-05-05 Geoffrey Keating <geoffk@apple.com>
1533
1534 PR 31775
1535 * mangle.c (write_mangled_name): Mangle static variable names.
1536 (write_unqualified_name): Use local-source-name for
1537 namespace-scope static variables.
1538
1539 2007-05-04 Dirk Mueller <dmueller@suse.de>
1540
1541 * cp-tree.h (DECL_MAIN_P): only if -ffreestanding is
1542 not in effect.
1543
1544 2007-05-02 Seongbae Park <seongbae.park@gmail.com>
1545
1546 PR c++/31663
1547 * decl2.c (constrain_class_visibility):
1548 Use strip_pointer_or_array_types instead of strip_array_types.
1549
1550 2007-04-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
1551
1552 PR C++/30221
1553 * decl.c (reshape_init_r): Don't reshape the first element if it
1554 is a pointer to member function.
1555
1556 2007-04-27 Simon Baldwin <simonb@google.com>
1557
1558 * decl.c (grokparms): Changed message format from %qD to %qE.
1559
1560 2007-04-27 Douglas Gregor <doug.gregor@gmail.com>
1561
1562 * error.c (maybe_warn_variadic_templates): Variadic templates are
1563 now in C++0x, so only warn about them in C++98 mode.
1564
1565 2007-04-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
1566
1567 PR C++/30016
1568 * typeck.c (build_reinterpret_cast_1): Only allow conversion to
1569 integeral types from vectors types.
1570
1571 2007-04-26 Jakub Jelinek <jakub@redhat.com>
1572
1573 PR c++/31598
1574 * semantics.c (finish_omp_clauses): Don't create CP_OMP_CLAUSE_INFO
1575 for type dependent OMP_CLAUSE_DECLs.
1576
1577 2007-04-24 Mark Mitchell <mark@codesourcery.com>
1578
1579 PR c++/31338
1580 * cp-tree.h (ARITHMETIC_TYPE): Include COMPLEX_TYPE.
1581 * typeck.c (type_after_usual_arithmetic_conversions): Adjust, as
1582 COMPLEX_TYPE is now an ARITHMETIC_TYPE.
1583 * init.c (build_zero_init): Adjust, as
1584 COMPLEX_TYPE is now a SCALAR_TYPE.
1585 * typeck2.c (digest_init): Allow brace-enclosed initializers for
1586 COMPLEX_TYPE, even though that is now a SCALAR_TYPE.
1587
1588 2007-04-25 Paolo Carlini <pcarlini@suse.de>
1589
1590 * semantics.c (classtype_has_nothrow_copy_or_assign_p): Adjust
1591 per N2255; rename as classtype_has_nothrow_assign_or_copy_p.
1592 (trait_expr_value): Adjust.
1593
1594 2007-04-23 Simon Baldwin <simonb@google.com>
1595
1596 * decl.c (grokparms): Added new error for duplicate function
1597 parameters names in function prototypes, to match gcc behavior.
1598
1599 2007-04-23 Jan Hubicka <jh@suse.cz>
1600
1601 * cp/decl2.c (finish_objects): Do not call target constructor/destructor
1602 bits dirrectly.
1603
1604 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
1605
1606 * cp-tree.h (lang_tree_node): Use GENERIC_NEXT
1607 instead of checking GIMPLE_STMT_P in chain_next.
1608
1609 2007-04-17 Mark Mitchell <mark@codesourcery.com>
1610
1611 PR c++/31513
1612 * call.c (convert_for_arg_passing): Convert bitfields to their
1613 declared types.
1614
1615 2007-04-17 Simon Martin <simartin@users.sourceforge.net>
1616
1617 PR c++/31517
1618 * pt.c (value_dependent_expression_p): Handle MODOP_EXPRs.
1619
1620 2007-04-16 Seongbae Park <seongbae.park@gmail.com>
1621
1622 PR c++/29365
1623 * cp/decl2.c (constrain_class_visibility):
1624 Do not warn about the use of anonymous namespace in the main input file.
1625
1626 2007-04-15 Mark Mitchell <mark@codesourcery.com>
1627
1628 * cp-tree.h (current_template_parms): Fix typo in comment.
1629
1630 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
1631
1632 * cp-tree.h, error.c: Fix comment typos.
1633
1634 2007-04-13 Jason Merrill <jason@redhat.com>
1635
1636 PR c++/31074
1637 * call.c (reference_binding): Add c_cast_p parm. If true,
1638 add quals to TO as needed to make it reference-compatible.
1639
1640 2007-04-11 Jan Hubicka <jh@suse.cz>
1641
1642 * cp/class.c (convert_to_base_statically): Fold produced tree; verify
1643 that we are not processing template_decl.
1644
1645 2007-04-09 Mark Mitchell <mark@codesourcery.com>
1646
1647 PR c++/31449
1648 * class.c (build_base_path): Ensure that the converted pointer has
1649 the same cv-qualification as the input.
1650
1651 2007-04-09 Paolo Carlini <pcarlini@suse.de>
1652
1653 * tree.c (cp_tree_equal): Deal with TRAIT_EXPR.
1654
1655 2007-04-08 Steven Bosscher <steven@gcc.gnu.org>
1656
1657 * cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS):
1658 Do not set it.
1659 (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do not set it.
1660 * tree.c (cp_add_pending_fn_decls): Remove.
1661 * cp-tree.h (cp_add_pending_fn_decls): Remove prototype.
1662
1663 2007-04-07 Daniel Berlin <dberlin@dberlin.org>
1664
1665 Revert change removing staticp.
1666
1667 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
1668
1669 * cp-objcp-common.c (cxx_staticp): Remove.
1670 * cp-objcp-common.h (LANG_HOOKS_STATICP): Remove.
1671 * cp-tree.h (cxx_staticp):
1672
1673 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
1674
1675 * class.c (check_for_override): Don't remove dllmport attribute
1676 of virtual methods.
1677
1678 2007-04-03 Jakub Jelinek <jakub@redhat.com>
1679
1680 PR c++/30847
1681 * typeck.c (build_modify_expr): For COND_EXPR on LHS, if RHS has void
1682 type issue error and return early.
1683
1684 2007-03-30 Jason Merrill <jason@redhat.com>
1685
1686 PR c++/31187
1687 * typeck.c (cp_type_readonly): New fn.
1688 * cp-tree.h: Declare it.
1689 * decl.c (start_decl): Set implicit DECL_THIS_STATIC here.
1690 (cp_finish_decl): Not here.
1691
1692 2007-03-31 Richard Guenther <rguenther@suse.de>
1693
1694 * optimize.c (maybe_clone_body): Replace splay-tree usage by
1695 pointer-map.
1696
1697 2007-03-31 Douglas Gregor <doug.gregor@gmail.com>
1698
1699 PR c++/31138
1700 PR c++/31140
1701 PR c++/31141
1702 * parser.c (declarator_can_be_parameter_pack): New.
1703 (cp_parser_template_parameter): Only parse the `...' if the
1704 declarator can be a parameter pack.
1705 (cp_parser_parameter_declaration): Ditto. Also, handle when TYPE
1706 is NULL.
1707 * pt.c (find_parameter_packs_r): Look into the bounds on integer
1708 types (they could be used as array bounds).
1709 (check_for_bare_parameter_packs): Deal with TEMPLATE_PARM_INDEX.
1710 (tsubst_pack_expansion): Handle failure to expand parameter
1711 packs.
1712
1713 2007-03-30 Paolo Carlini <pcarlini@suse.de>
1714
1715 PR c++/26099
1716 * cp-tree.h (enum cp_trait_kind, struct tree_trait_expr,
1717 TRAIT_EXPR_TYPE1, TRAIT_EXPR_TYPE2, TRAIT_EXPR_KIND): Add.
1718 (enum cp_tree_node_structure_enum, union lang_tree_node): Update.
1719 (CLASS_TYPE_NON_UNION_P): Add.
1720 (struct lang_type_class): Add has_complex_dflt.
1721 (TYPE_HAS_COMPLEX_DFLT, TYPE_HAS_TRIVIAL_DFLT): Add.
1722 (locate_copy, locate_ctor, locate_dtor, finish_trait_expr): Declare.
1723 * cp-tree.def: Add TRAIT_EXPR.
1724 * cp-objcp-common.c (cp_tree_size): Add TRAIT_EXPR case.
1725 * lex.c (struct resword): Add __has_nothrow_assign,
1726 __has_nothrow_constructor, __has_nothrow_copy, __has_trivial_assign,
1727 __has_trivial_constructor, __has_trivial_copy,
1728 __has_trivial_destructor, __has_virtual_destructor, __is_abstract,
1729 __is_base_of, __is_class, __is_convertible_to, __is_empty, __is_enum,
1730 __is_pod, __is_polymorphic, __is_union.
1731 * parser.c (cp_parser_primary_expression): Deal with the new RIDs.
1732 (cp_parser_trait_expr): New.
1733 * semantics.c (finish_trait_expr, trait_expr_value
1734 classtype_has_nothrow_copy_or_assign_p): New.
1735 * method.c (locate_copy, locate_ctor, locate_dtor): Do not define
1736 as static.
1737 * decl.c (cp_tree_node_structure): Add TRAIT_EXPR.
1738 * class.c (check_bases, check_field_decl, check_bases_and_members):
1739 Deal with TYPE_HAS_COMPLEX_DFLT (t) too.
1740 * pt.c (uses_template_parms, tsubst_copy_and_build,
1741 value_dependent_expression_p, type_dependent_expression_p): Deal with
1742 TRAIT_EXPR.
1743 * tree.c (cp_walk_subtrees): Deal with TRAIT_EXPR.
1744
1745 2007-03-29 Richard Guenther <rguenther@suse.de>
1746
1747 * tree.c (cp_walk_subtrees): Do not set input_location.
1748
1749 2007-03-28 Simon Martin <simartin@users.sourceforge.net>
1750
1751 PR c++/29077
1752 * decl.c (grokfndecl): Properly setup decl if it is a constructor or a
1753 destructor.
1754
1755 2007-03-28 Douglas Gregor <doug.gregor@gmail.com>
1756
1757 * parser.c (struct cp_parser): Update comment for
1758 greater_than_is_operator_p.
1759 (cp_parser_primary_expression): In C++0x mode, a cast operator can
1760 be terminated with a `>>' token when !GREATER_THAN_IS_OPERATOR_P.
1761 (TOKEN_PRECEDENCE): In C++0x mode, `>>' is treated like `>' when
1762 !GREATER_THAN_IS_OPERATOR_P.
1763 (cp_parser_binary_expression): When -Wc++0x-compat, warn about
1764 `>>' operators that will become two `>' tokens in C++0x.
1765 (cp_parser_parameter_declaration): Treat `>>' like `>' in C++0x
1766 mode, allowing it to terminate default arguments.
1767 (cp_parser_enclosed_template_argument_list): In C++0x mode, treat
1768 `>>' like two consecutive `>' tokens.
1769 (cp_parser_skip_to_end_of_template_parameter_list): Ditto.
1770 (cp_parser_next_token_ends_template_argument_p): In C++0x, `>>'
1771 ends a template argument.
1772
1773 2007-03-28 Douglas Gregor <doug.gregor@gmail.com>
1774
1775 * decl.c (redeclaration_error_message): Complain when redeclaring
1776 a friend function with default template arguments (C++0x mode only).
1777 * cp-tree.h (check_default_tmpl_args): Declare.
1778 * pt.c (check_default_tmpl_args): In C++0x mode, permit default
1779 template arguments in function templates. Add support for checking
1780 the default template arguments of friend templates.
1781 (push_template_decl_real): Fix call to check_default_tmpl_args.
1782 (type_unification_real): If a template parameter has not been
1783 deduced but provides a default template argument, substitute into
1784 that default template argument.
1785 * parser.c (cp_parser_init_declarator): When declaring (but not
1786 defining!) a function template in C++0x mode, check for default
1787 template arguments.
1788
1789 2007-03-28 Douglas Gregor <doug.gregor@gmail.com>
1790
1791 PR c++/29993
1792 * decl.c (grokdeclarator): Deal with cv-qualified function type
1793 typedefs in the same way for member and non-member functions.
1794
1795 2007-03-26 Dirk Mueller <dmueller@suse.de>
1796
1797 * parser.c (cp_parser_member_declaration): Pedwarn
1798 about stray semicolons after member declarations.
1799
1800 2007-03-26 Paolo Carlini <pcarlini@suse.de>
1801
1802 PR c++/30500
1803 * pt.c (instantiate_decl): Set in_system_header.
1804
1805 2007-03-22 Mark Mitchell <mark@codesourcery.com>
1806
1807 * cp-tree.h (current_tempalte_parms): Improve documentation.
1808 * pt.c (current_template_args): Likewise.
1809
1810 PR c++/30863
1811 * parser.c (cp_parser_parse_and_diagnose_invalid_type_name): Do
1812 not consume tokens when failing.
1813
1814 2007-03-22 Jim Wilson <wilson@specifix.com>
1815 Mark Mitchell <mark@codesourcery.com>
1816
1817 PR c++/31273
1818 * call.c (standard_conversion): Use type_decays_to. Keep FCODE
1819 consistent with FROM.
1820
1821 2007-03-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1822
1823 * error.c (dump_expr): Handle dependent names that designate types.
1824 * cxx-pretty-print.c (pp_cxx_unqualified_id): Handle TYPENAME_TYPE.
1825
1826 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
1827
1828 * cp-tree.def, parser.c, pt.c: Fix comment typos.
1829
1830 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1831
1832 * cvt.c (cp_convert_and_check) : Define.
1833 * cp-tree.h (cp_convert_and_check): Declare.
1834 * call.c (convert_conversion_warnings): Rename to
1835 conversion_null_warnings. The warning for floating-point to
1836 integer is handled by convert_and_check in convert_like_real.
1837 (convert_like_real): convert_conversion_warnings was renamed as
1838 conversion_null_warnings.
1839 * typeck.c (build_binary_op): Use cp_convert_and_check to warn for
1840 overflow and changes of value during conversion.
1841
1842 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1843
1844 PR c++/30891
1845 * parser.c (cp_parser_statement): If 'namespace' is found, this
1846 only can be a namespace alias definition, so parse it now.
1847 (cp_parser_namespace_alias_definition): if we find an open brace
1848 instead of '=', then this is actually a misplaced namespace
1849 definition.
1850
1851 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1852
1853 PR c++/24924
1854 * decl.c (cxx_init_decl_processing): Move command-line options
1855 processing to c-opts.c.
1856
1857 2007-03-15 Douglas Gregor <doug.gregor@gmail.com>
1858
1859 * ptree.c (cxx_print_type): Use formatting markup for integers
1860 when printing template parameter index/level/orig level.
1861 (cxx_print_xnode): Ditto.
1862 * cp-tree.h (TEMPLATE_PARM_PARAMETER_PACK): Use TREE_LANG_FLAG_0.
1863 (struct template_parm_index_s): Remove the PARAMETER_PACK member.
1864 Make INDEX, LEVEL, and ORIG_LEVEL integers instead of
1865 HOST_WIDE_INTs.
1866 (struct saved_scope): Make X_PROCESSING_TEMPLATE_DECL an int,
1867 rather than a HOST_WIDE_INT.
1868 Turn X_PROCESSING_EXPLICIT_INSTANTIATION, SKIP_EVALUATION, and
1869 NEED_POP_FUNCTION_CONTEXT into bool bitfields; reorder fields for
1870 better bit-packing.
1871 (struct language_function): Make RETURNS_VALUE, RETURNS_NULL,
1872 RETURNS_ABNORMALLY, IN_FUNCTION_TRY_HANDLER, and
1873 IN_BASE_INITIALIZER bool bitfields.
1874 (struct cp_declarator): Make KIND a 4-bit field. Make
1875 PARAMETER_PACK_P a bool bitfield just after KIND.
1876 * pt.c (uses_parameter_packs): Destroy the pointer set.
1877 (make_pack_expansion): Ditto.
1878 (check_for_bare_parameter_packs): Ditto.
1879 * name-lookup.c (push_to_top_level): Make need_pop a bool value.
1880
1881 2007-03-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
1882
1883 PR c++/31165
1884 * call.c (convert_default_arg): Instead of copying the node,
1885 unshare it.
1886
1887 2007-03-15 Dirk Mueller <dmueller@suse.de>
1888
1889 PR c++/30860
1890 * call.c (convert_conversion_warnings): New..
1891 (convert_like_real): .. factored out from here.
1892 (convert_conversion_warnings): Add warning about
1893 false being converted to NULL in argument passing.
1894
1895 2007-03-14 Dirk Mueller <dmueller@suse.de>
1896
1897 * cp/semantics.c (c_finish_if_stmt): Call empty_if_body_warning.
1898 (finish_do_body): Warn about empty body in do/while statement.
1899
1900 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1901
1902 * class.c (warn_hidden): Add OPT_Woverloaded_virtual to warning.
1903
1904 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1905
1906 PR c/21438
1907 * typeck.c (build_binary_op): Call warn_for_div_zero instead of
1908 warning.
1909
1910 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
1911
1912 * cp/repo.c (init_repo): Initialize random_seed saved options.
1913 (finish_repo): Adjust.
1914
1915 2007-03-13 Mark Mitchell <mark@codesourcery.com>
1916
1917 PR bootstrap/30899
1918 * Make-lang.in (doc/g++.1): Use $< to specify the location from
1919 which to copy.
1920
1921 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
1922
1923 * decl.c (compute_array_index_type): New warning flag warn_vla.
1924
1925 2007-03-12 Mark Mitchell <mark@codesourcery.com>
1926
1927 PR c++/30108
1928 * call.c (convert_default_arg): Copy non-constant arguments.
1929
1930 2007-03-11 Mark Mitchell <mark@codesourcery.com>
1931
1932 PR c++/31038
1933 * parser.c (cp_parser_postfix_expression): Disallow compound
1934 literals in constant expressions.
1935
1936 PR c++/30328
1937 * semantics.c (finish_typeof): Use unlowered_expr_type.
1938
1939 2007-03-10 Mark Mitchell <mark@codesourcery.com>
1940
1941 PR c++/30274
1942 * cp-tree.h (unlowered_expr_type): New function.
1943 * typeck.c (is_bitfield_expr_with_lowered_type): Handle
1944 COMPOUND_EXPR, MODIFY_EXPR, and SAVE_EXPR.
1945 (unlowered_expr_type): New function.
1946 (build_unary_op): Disallow predecrements of bool bitfields.
1947 * call.c (build_conditional_expr): Use unlowered_expr_type.
1948 * pt.c (type_unification_real): Likewise.
1949
1950 2007-03-09 Douglas Gregor <doug.gregor@gmail.com>
1951
1952 PR c++/20599
1953 * typeck.c (check_return_expr): Check for bare parameter packs.
1954 (comptypes): Compare template parameter packs and
1955 type pack expansions.
1956 * decl.c (grokdeclarator): Deal with the declaration of function
1957 parameter packs.
1958 (grokparms): Verify that the (optional) function parameter pack is
1959 at the end of the parameter list.
1960 (xref_basetypes): Handle pack expansions in the base class.
1961 (cp_tree_node_structure): Handle ARGUMENT_PACK_SELECT.
1962 * cp-tree.def (TYPE_ARGUMENT_PACK): New.
1963 (NONTYPE_ARGUMENT_PACK): New.
1964 (TYPE_PACK_EXPANSION): New.
1965 (EXPR_PACK_EXPANSION): New.
1966 (ARGUMENT_PACK_SELECT): New.
1967 * cp-objcp-common.c (cp_tree_size): Compute size of
1968 (NON)TYPE_ARGUMENT_PACK, (TYPE|EXPR)_PACK_EXPANSION, and
1969 ARGUMENT_PACK_SELECT.
1970 * error.c (dump_template_argument): Print template argument packs.
1971 (dump_template_argument_list): Ditto.
1972 (dump_template_parameter): Dump `...' for template type parameter
1973 packs.
1974 (dump_type): Dump TYPE_PACK_EXPANSION nodes.
1975 (dump_parameters): Print function parameter packs.
1976 (dump_template_parms): Print template argument packs.
1977 (dump_expr): Dump EXPR_PACK_EXPANSION nodes.
1978 (maybe_warn_variadic_templates): New.
1979 * operators.def: Add ellipsis operator for EXPR_PACK_EXPANSION.
1980 * tree.c (cp_walk_subtrees): Walk BASELINK, TYPE_ARGUMENT_PACK,
1981 NONTYPE_ARGUMENT_PACK, TYPE_PACK_EXPANSION, EXPR_PACK_EXPANSION,
1982 CAST_EXPR.
1983 * mangle.c (write_type): Mangle TYPE_PACK_EXPANSION.
1984 (write_template_arg): Write argument packs as separate arguments.
1985 * cp-tree.h (struct template_parm_index_s): Add flag that
1986 indicates that the template parameter is actually a parameter
1987 pack.
1988 (struct tree_argument_pack_select): New.
1989 (enum cp_tree_node_structure_enum): Add TS_CP_ARGUMENT_PACK_SELECT.
1990 (union lang_tree_node): Add argument_pack_select.
1991 (FUNCTION_PARAMETER_PACK_P): New.
1992 (PACK_EXPANSION_P): New.
1993 (PACK_EXPANSION_PATTERN): New.
1994 (SET_PACK_EXPANSION_PATTERN): New.
1995 (PACK_EXPANSION_PARAMETER_PACKS): New.
1996 (ARGUMENT_PACK_P): New.
1997 (ARGUMENT_PACK_ARGS): New.
1998 (SET_ARGUMENT_PACK_ARGS): New.
1999 (ARGUMENT_PACK_INCOMPLETE_P): New.
2000 (ARGUMENT_PACK_EXPLICIT_ARGS): New.
2001 (TEMPLATE_PARM_PARAMETER_PACK): New.
2002 (TEMPLATE_TYPE_PARAMETER_PACK): New.
2003 (ARGUMENT_PACK_SELECT_FROM_PACK): New.
2004 (ARGUMENT_PACK_SELECT_INDEX): New.
2005 (ARGUMENT_PACK_SELECT_ARG): New.
2006 (struct cp_declarator): Add parameter_pack_p flag.
2007 (maybe_warn_variadic_templates): Declare.
2008 (process_template_parm): Add bool parameter IS_PARAMETER_PACK, to
2009 indicate a template parameter pack.
2010 (uses_parameter_packs): Declare.
2011 (template_parameter_pack_p): Declare.
2012 (template_parms_variadic_p): Declare.
2013 (make_pack_expansion): Declare.
2014 (check_for_bare_parameter_packs): Declare.
2015 * cxx-pretty-print.c (pp_cxx_unary_expression): Print
2016 sizeof... expressions.
2017 (pp_cxx_expression): Print pack expansions and non-type argument
2018 packs.
2019 (pp_cxx_exception_specification): Print pack expansions.
2020 (pp_cxx_direct_declarator): Print ellipsis for parameter packs.
2021 (pp_cxx_ctor_initializer): Print pack expansions.
2022 (pp_cxx_type_id): Print pack expansions.
2023 (pp_cxx_template_argument_list): Print argument packs.
2024 (pp_cxx_template_parameter): Print ellipsis for template parameter
2025 packs.
2026 * pt.c (comp_template_parms): Compare template parameter packs.
2027 (template_parameter_pack_p): New.
2028 (template_parms_variadic_p): New.
2029 (template_args_variadic_p): New.
2030 (make_ith_pack_parameter_name): New.
2031 (struct find_parameter_pack_data): New.
2032 (find_parameter_packs_r): New.
2033 (uses_parameter_packs): New.
2034 (make_pack_expansion): New.
2035 (check_for_bare_parameter_packs): New.
2036 (expand_template_argument_pack): New.
2037 (reduce_template_parm_level): Propagate parameter pack flag.
2038 (process_template_parm): Add is_parameter_pack parameter to state
2039 when the parameter is actually a parameter pack. Create template
2040 parameter packs when is_parameter_pack is true.
2041 (current_template_args): The argument for a template parameter
2042 pack is an argument pack containing a single pack expansion.
2043 (process_partial_specialization): When checking that non-type
2044 argument expressions do not involve template parameters, loop over
2045 the arguments in argument packs separately.
2046 (push_template_decl_real): Check that the type of the declaration
2047 does not have any bare parameter packs. Check that primary
2048 templates have no more than one parameter pack, and that it comes
2049 at the end of the template parameter list.
2050 (convert_template_argument): Handle coercions for pack expansion
2051 expressions by coercing the pattern then rebuilding the expansion.
2052 (coerce_template_parms): When coercing the arguments for a
2053 variadic template, pack "extra" arguments into an argument pack.
2054 (coerce_template_template_parms): Cannot coerce between parameter
2055 packs and non-pack parameters.
2056 (template_args_equal): Compare PACK_EXPANSION_P expressions.
2057 (comp_template_args): Expand all template arguments packs before
2058 comparing template argument lists.
2059 (mangle_class_name_for_template): Make argument packs as separate
2060 template arguments.
2061 (for_each_template_parm_r): No need to handle BASELINK.
2062 (instantiate_class_template): Handle pack expansions in the base
2063 class list.
2064 (tsubst_pack_expansion): New.
2065 (tsubst_template_args): Handle substitutions of argument packs and
2066 pack expansion into template argument lists.
2067 (tsubst_decl): Expand function parameter packs into separate
2068 function parameters.
2069 (tsubst_arg_types): Expand a type pack expansion into separate
2070 argument types.
2071 (tsubst_exception_specification): Handle pack expansions in
2072 exception specifiers.
2073 (tsubst): See through ARGUMENT_PACK_SELECT arguments when
2074 replacing a template parameter with its argument. If we encounter
2075 a substitution for an argument pack, just return the parameter
2076 itself.
2077 (tsubst_copy): sizeof(X...) returns the number of elements in
2078 parameter pack X. See through ARGUMENT_PACK_SELECT when the
2079 PARM_DECL is a parameter pack.
2080 (tsubst_expr): Expression pack expansions and argument packs
2081 cannot show up here; they will all be handled through function
2082 calls, sizeof, and template argument lists.
2083 (tsubst_copy_and_build): sizeof(X...) returns the number of
2084 elements in parameter pack X. Handle pack expansions in TREE_LIST
2085 and CONSTRUCTOR nodes.
2086 (fn_type_unification): Handle "incomplete" explicit template
2087 argument lists that specify some of the arguments for a template
2088 parameter pack.
2089 (type_unification_real): Unify arguments against pack expansions.
2090 (template_parm_level_and_index): New, helper function.
2091 (unify_pack_expansion): New.
2092 (unify): Unify argument packs on an argument-by-argument basis,
2093 handling variadic argument packs as well.
2094 (more_specialized_fn): Handle unification of function parameter
2095 packs. All things being equal, prefer non-variadic function
2096 templates to variadic function templates.
2097 (more_specialized_class): Prefer the variadic class template
2098 partial specialization that binds fewer arguments to a parameter
2099 pack.
2100 (regenerate_decl_from_template): Expand function parameter packs
2101 into separate parameters.
2102 (instantiate_decl): Ditto.
2103 (tsubst_initializer_list): Handle pack expansions for base-class
2104 initializers.
2105 (dependent_type_p_r): Determine dependent types in argument packs
2106 and pack expansions.
2107 (value_dependent_expression_p): Determine value-dependence of
2108 non-type argument packs.
2109 (dependent_template_arg_p): Handle argument packs.
2110 * semantics.c (finish_cond): Check for bare parameter packs.
2111 (finish_expr_stmt): Ditto.
2112 (finish_for_expr): Ditto.
2113 (finish_switch_cond): Ditto.
2114 (finish_mem_initializers): Ditto.
2115 * name-lookup.c (arg_assoc_type): Handle pack expansions and
2116 argument packs.
2117 * decl2.c (cp_build_parm_decl): Mark function parameter packs.
2118 * parser.c (make_declarator): Declarator is not an expansion.
2119 (make_pointer_declarator): Transfer parameter pack flag to outer
2120 declarator.
2121 (make_reference_declarator): Ditto.
2122 (make_ptrmem_declarator): Ditto.
2123 (make_call_declarator): Ditto.
2124 (make_array_declarator): Ditto.
2125 (cp_parser_postfix_expression): Allow pack expansion expressions
2126 in the argument list for a call expression.
2127 (cp_parser_parenthesized_expression_list): Add new parameter
2128 ALLOW_EXPANSION_P. When true, parse the ellipsis to mean "expand
2129 into separate arguments."
2130 (cp_parser_new_placement): Allow pack expansion expressions.
2131 (cp_parser_new_initializer): Ditto.
2132 (cp_parser_mem_initializer_list): Allow ellipsis to create a
2133 base-class initializer expansion.
2134 (cp_parser_mem_initializer): Ditto.
2135 (cp_parser_template_parameter_list): Keep track of whether the
2136 template parameter is a template parameter pack.
2137 (cp_parser_template_parameter): Parse the ellipsis to indicate a
2138 template parameter pack.
2139 (cp_parser_type_parameter): Ditto.
2140 (cp_parser_template_argument_list): Parse the ellipsis to indicate
2141 a pack expansion.
2142 (cp_parser_direct_declarator): Parse the ellipsis to indicate that
2143 this declarator is a parameter pack.
2144 (cp_parser_parameter_declaration): The ellipsis does not end the
2145 parameter declaration, because it might be a parameter pack. Parse
2146 the ellipsis to indicate a parameter pack.
2147 (cp_parser_initializer): Allow pack expansions.
2148 (cp_parser_initializer_list): Allow ellipsis to create an
2149 initializer expansion.
2150 (cp_parser_base_clause): Allow ellipsis to create a base specifier
2151 expansion.
2152 (cp_parser_type_id_list): Allow ellipsis to create an exception
2153 specifier expansion.
2154 (cp_parser_attribute_list): Don't allow pack expansions.
2155 (cp_parser_functional_cast): Allow pack expansions.
2156 (cp_parser_sizeof_operand): Allow ellipsis following "sizeof" to
2157 compute the length of a parameter pack.
2158 (cp_parser_next_token_ends_template_argument_p): An ellipsis can
2159 end a template argument.
2160 * tree.c (cp_walk_subtrees): Walk BASELINK, TYPE_ARGUMENT_PACK,
2161 NONTYPE_ARGUMENT_PACK, TYPE_PACK_EXPANSION, EXPR_PACK_EXPANSION,
2162 CAST_EXPR.
2163
2164 2007-03-09 Dirk Mueller <dmueller@suse.de>
2165
2166 * cp/call.c (build_new_op): Call warn_logical_operator.
2167
2168 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
2169
2170 PR c++/30852
2171 * semantics.c (finish_offsetof): Handle COMPOUND_EXPR.
2172
2173 PR c++/30534
2174 * pt.c (any_template_arguments_need_structural_equality_p):
2175 Robustify.
2176
2177 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
2178
2179 * decl.c (grokdeclarator): Disable warnings for anonymous
2180 bitfields.
2181
2182 2007-03-05 Volker Reichelt <reichelt@netcologne.de>
2183
2184 * typeck2.c (readonly_error): Always emit a hard error.
2185 Remove last argument.
2186 * cp-tree.h (readonly_error): Adjust prototype.
2187 * semantics.c (finish_asm_stmt): Adjust call to readonly_error.
2188 * typeck.c (build_unary_op): Likewise.
2189 (build_modify_expr): Likewise.
2190
2191 2007-03-04 Simon Martin <simartin@users.sourceforge.net>
2192
2193 PR c++/30895
2194 * tree.c (cp_tree_equal): Properly handle COMPLEX_CST trees.
2195
2196 2007-03-03 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2197
2198 PR c++/15787
2199 * parser.c (struct cp_parser): New IN_IF_STMT.
2200 (cp_parser_statement_seq_opt): Handle an unexpected 'else',
2201 returning if parsing the body of an 'if' statement or issuing an
2202 error and continuing.
2203 (cp_parser_selection_statement): Set IN_IF_STMT bit when parsing
2204 body of 'if'.
2205 (cp_parser_jump_statement): Mask new IN_IF_STMT bit.
2206
2207 2007-03-02 Simon Martin <simartin@users.sourceforge.net>
2208
2209 PR c++/28253
2210 * class.c (update_vtable_entry_for_fn): Properly handle invalid overriders
2211 for thunks.
2212
2213 2007-03-02 Geoffrey Keating <geoffk@apple.com>
2214
2215 * g++spec.c (lang_specific_driver): Add -lstdc++ when compiling
2216 Objective-C++. Don't exit early if -shared-libgcc needs to be
2217 added.
2218
2219 2007-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2220
2221 * typeck.c (common_base_type): Delete unused function.
2222
2223 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2224
2225 * Make-lang.in: Add dummy lang.install-pdf target.
2226
2227 2007-03-01 Simon Baldwin <simonb@google.com>
2228
2229 PR c++/23689
2230 * decl.c (check_tag_decl): Added new warning for typedef ignored
2231 when it precedes an otherwise valid non-typedef declaration.
2232
2233 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
2234
2235 * typeck.c (build_function_call): Store converted arguments
2236 in a stack-allocated array instead of building a list.
2237 (convert_arguments): Store arguments in the array passed in as an
2238 argument, and return the actual number of arguments.
2239 * call.c (build_call): Delete, and replace with...
2240 (build_call_n, build_call_a): New.
2241 (build_op_delete_call): Rewrite to avoid constructing argument lists.
2242 (build_over_call): Store converted arguments in a stack-allocated
2243 array instead of building a list.
2244 (build_cxx_call): Pass arguments in an array instead of as a list.
2245 (build_java_interface_fn_ref): Rewrite to avoid constructing
2246 argument lists.
2247 * tree.h: Update declarations to reflect above changes.
2248 * method.c (use_thunk): Use a stack-allocated array to hold
2249 the arguments instead of a list.
2250 * rtti.c (throw_bad_cast): Update call to cxx_call.
2251 (throw_bad_typeid): Likewise.
2252 (build_dynamic_cast_1): Likewise.
2253 * init.c (build_builtin_delete_call): Use build_call_n.
2254 * decl.c (expand_static_init): Likewise.
2255 * except.c (cp_protect_cleanup_actions): Likewise.
2256 * cp-gimplify.c (genericize_eh_spec_block): Likewise.
2257 (gimplify_must_not_throw_expr): Likewise.
2258 (cxx_omp_apply_fn): Use build_call_a.
2259
2260 2007-02-26 Mark Mitchell <mark@codesourcery.com>
2261
2262 * semantics.c (expand_or_defer_fn): Call c_record_cdtor_fn.
2263 * decl2.c (cp_write_gloabl_declarations): Call c_build_cdtor_fns.
2264
2265 2007-02-25 Mark Mitchell <mark@codesourcery.com>
2266
2267 * cp-tree.h (static_ctors): Remove.
2268 * cp-tree.h (static_dtors): Likewise.
2269 * cp-objcp-common.c (decl_shadowed_for_var_lookup): Adjust for
2270 refactoring of tree_map hierarchy.
2271 (decl_shadowed_for_var_insert): Likewise.
2272 * semantics.c (expand_body): Use c_expand_body.
2273 (expand_or_defer_fn): Don't update static_ctors or static_dtors.
2274 * decl2.c (static_ctors): Remove.
2275 (static_dtors): Likewise.
2276 (generate_ctor_or_dtor_function): Pass NULL_TREE to
2277 objc_generate_static_init_call. Do not call static_[cd]tors.
2278 (generate_ctor_and_dtor_functions_for_priority): Do not check for
2279 static_[cd]tors.
2280 (cp_write_global_declarations): Likewise.
2281
2282 2007-02-23 Richard Guenther <rguenther@suse.de>
2283
2284 * class.c (note_name_declared_in_class): Make declaration
2285 changes meaning a pedwarn.
2286
2287 2007-02-22 Michael Matz <matz@suse.de>
2288
2289 PR c++/29433
2290 * cp-tree.h (TFF_UNQUALIFIED_NAME): New formatting flag.
2291 * error.c (dump_aggr_type, dump_simple_decl, dump_decl,
2292 dump_function_decl): Guard emitting outer scopes by new flag.
2293 * cp-lang.c (cxx_dwarf_name): New function.
2294 (LANG_HOOKS_DWARF_NAME): Define to cxx_dwarf_name.
2295 * pt.c (classtype_mangled_name, mangle_class_name_for_template):
2296 Remove functions.
2297 (push_template_decl_real, lookup_template_class): Remove calls
2298 to above functions.
2299
2300 2007-02-19 Mark Mitchell <mark@codesourcery.com>
2301
2302 * call.c (build_new_method_call): Ensure that explicit calls of
2303 destructors have type "void".
2304
2305 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2306
2307 * typeck.c (build_binary_op): Replace -Wstring-literal-comparison
2308 and -Walways-true with -Waddress.
2309 * cvt.c (convert_to_void): Replace unconditional warning with
2310 -Waddress.
2311
2312 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
2313
2314 * decl.c, tree.c: Fix comment typos.
2315
2316 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2317
2318 PR C++/30158
2319 * semantics.c (finish_stmt_expr_expr): Set TREE_TYPE of the
2320 statement expression if we had an error mark node.
2321
2322 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2323 Brooks Moses <brooks.moses@codesourcery.com>
2324 Lee Millward <lee.millward@codesourcery.com>
2325
2326 * cp-tree.def (AGGR_INIT_EXPR): Adjust documentation.
2327 Change class to tcc_vl_exp.
2328
2329 * call.c (build_call): Use build_call_list instead
2330 of build3.
2331 (build_over_call): Likewise.
2332 (build_new_method_call): Use build_min_non_dep_call_list
2333 instead of build_min_non_dep.
2334
2335 * error.c (dump_call_expr_args): New function.
2336 (dump_aggr_init_expr_args): New function.
2337 (dump_expr) <AGGR_INIT_EXPR, CALL_EXPR, INDIRECT_REF>: Use them.
2338 Update to use new CALL_EXPR and AGGR_INIT_EXPR accessor macros.
2339
2340 * cvt.c (convert_to_void): Use build_call_array instead
2341 of build3; use new AGGR_INIT_EXPR accessor macros.
2342
2343 * mangle.c (write_expression): Use TREE_OPERAND_LENGTH
2344 instead of TREE_CODE_LENGTH.
2345
2346 * dump.c (cp_dump_tree) <AGGR_INIT_EXPR>: Update to use new
2347 AGGR_INIT_EXPR accessor macros.
2348
2349 * cp-gimplify.c (cp_gimplify_init_expr): Use
2350 AGGR_INIT_EXPR_SLOT to set the slot operand.
2351
2352 * cp-tree.h (AGGR_INIT_EXPR_FN): New macro.
2353 (AGGR_INIT_EXPR_SLOT): New macro.
2354 (AGGR_INIT_EXPR_ARG): New macro.
2355 (aggr_init_expr_nargs): New macro.
2356 (AGGR_INIT_EXPR_ARGP): New macro.
2357 (aggr_init_expr_arg_iterator): New.
2358 (init_aggr_init_expr_arg_iterator): New.
2359 (next_aggr_init_expr_arg): New.
2360 (first_aggr_init_expr_arg): New.
2361 (more_aggr_init_expr_args_p): New.
2362 (FOR_EACH_AGGR_INIT_EXPR_ARG): New.
2363 (stabilize_aggr_init): New declaration.
2364 (build_min_non_dep_call_list): Likewise.
2365
2366 * tree.c (process_aggr_init_operands): New function.
2367 (build_aggr_init_array) New function.
2368 (build_cplus_new): Update to use new CALL_EXPR and
2369 AGGR_INIT_EXPR accessor macros. Replace use of build3 with
2370 build_aggr_init_array.
2371 (build_min_non_dep_call_list) New function.
2372 (build_min_nt): Assert input code parameter is not a variable
2373 length expression class.
2374 (build_min, build_min_non_dep): Likewise.
2375 (cp_tree_equal) <CALL_EXPR>: Iterate through the arguments
2376 to check for equality instead of recursing. Handle tcc_vl_exp
2377 tree code classes.
2378 (stabilize_call): Update to only handle CALL_EXPRs, not
2379 AGGR_INIT_EXPRs; use new CALL_EXPR accessor macros.
2380 (stabilize_aggr_init): New function.
2381 (stabilize_init): Use it.
2382
2383 * cxx-pretty-print.c (pp_cxx_postfix_expression)
2384 <AGGR_INIT_EXPR, CALL_EXPR>: Update to use new CALL_EXPR and
2385 AGGR_INIT_EXPR accessor macros and argument iterators.
2386
2387 * pt.c (tsubst_copy) <CALL_EXPR>: Replace build_nt with
2388 build_vl_exp. Iterate through the operands, recursively
2389 processing each one.
2390 (tsubst_copy_and_build) <CALL_EXPR>: Update to use new
2391 CALL_EXPR accessor macros.
2392 (value_dependent_expression_p) <default>: Handle tcc_vl_exp
2393 tree code classes. Use TREE_OPERAND_LENGTH instead of
2394 TREE_CODE_LENGTH.
2395
2396 * semantics.c (finish_call_expr): Use build_nt_call_list
2397 instead of build_nt.
2398 (simplify_aggr_init_expr): Update to use new AGGR_INIT_EXPR
2399 accessor macros. Use build_call_array to construct the
2400 CALL_EXPR node instead of build3
2401
2402 * decl2.c (build_offset_ref_call_from_tree): Use
2403 build_nt_call_list and build_min_non_dep_call_list instead
2404 of build_min_nt and build_min_non_dep.
2405
2406 * parser.c (cp_parser_postfix_expression) <CPP_OPEN_PAREN>:
2407 Use build_nt_call_list instead of build_min_nt.
2408
2409 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2410
2411 PR c++/28943
2412 * call.c (build_conditional_expr): Improve error message.
2413
2414 2007-02-13 Dirk Mueller <dmueller@suse.de>
2415
2416 * friend.c (do_friend): Annotate warning about friend
2417 declarations in templates with OPT_Wnon_template_friend.
2418 Convert informal message from warning() to inform().
2419
2420 2007-02-12 Simon Martin <simartin@users.sourceforge.net>
2421 Mark Mitchell <mark@codesourcery.com>
2422
2423 PR c++/14622
2424 * pt.c (do_decl_instantiation): Detect type mismatches in explicit
2425 instantiations for variables.
2426
2427 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2428
2429 PR middle-end/7651
2430 * cp-gimplify.c (gimplify_expr_stmt): Don't check extra_warnings.
2431 Check warn_unused_value just once.
2432
2433 2007-02-11 Mark Mitchell <mark@codesourcery.com>
2434
2435 PR c++/26988
2436 * pt.c (determine_specialization): Use skip_artificial_parms_for.
2437 (fn_type_unificiation): Likewise.
2438 (get_bindings): Likewise.
2439
2440 o2007-02-06 Mark Mitchell <mark@codesourcery.com>
2441
2442 PR target/29487
2443 * decl.c (finish_function): Use DECL_REPLACEABLE.
2444 * tree.c (cp_cannot_inline_tree_fn): Likewise.
2445
2446 2007-02-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
2447
2448 * parser.c (cp_parser_primary_expression): Reformat overly long lines.
2449
2450 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
2451
2452 * decl.c (grokvardecl): Don't error if !have_tls.
2453 (grokdeclarator): Likewise.
2454 * parser.c (cp_parser_omp_threadprivate): Likewise.
2455
2456 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2457
2458 PR c++/30703
2459 * cp-gimplify.c (cp_genericize_r): Don't dereference invisiref
2460 parameters and result decls in omp clauses.
2461 (cxx_omp_privatize_by_reference): Pass also invisiref PARM_DECLs
2462 by reference.
2463
2464 2007-02-05 Dirk Mueller <dmueller@suse.de>
2465
2466 PR bootstrap/30510
2467 * parser.c (cp_parser_class_specifier): Always initialize bases.
2468
2469 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
2470
2471 * cp-tree.h (OMP_ATOMIC_CODE): Delete.
2472 (OMP_ATOMIC_DEPENDENT_P): Rewrite.
2473 * pt.c (tsubst_expr): Adjust for new format of dependent OMP_ATOMIC
2474 expressions.
2475 * semantics.c (finish_omp_atomic): Store a whole expression node
2476 in operand 1, and integer_zero_node in operand 0, for dependent
2477 OMP_ATOMIC. Rewrite to make flow easier to understand.
2478
2479 2007-02-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2480
2481 * decl.c (grokdeclarator): Use OPT_Wreturn_type instead of 0.
2482
2483 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
2484
2485 * class.c, cp-tree.h, decl.c, decl2.c, g++spec.c, init.c,
2486 parser.c, pt.c, tree.c, typeck.c: Follow spelling conventions.
2487
2488 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
2489
2490 * parser.c (cp_lexer_get_preprocessor_token): Attach the C++0x
2491 keyword warning to -Wc++0x-compat.
2492
2493 2007-02-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2494
2495 * decl.c (grokdeclarator): Update documentation.
2496
2497 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2498
2499 PR c++/30536
2500 * decl.c (grokdeclarator): If __thread is used together with
2501 a storage class other than extern and static, clear thread_p
2502 after issuing diagnostics and fall through to checking the
2503 storage class.
2504
2505 2007-01-30 Roger Sayle <roger@eyesopen.com>
2506
2507 * error.c (dump_type_suffix): Avoid use of cp_build_binary_op when
2508 calculating the size of an array (to avoid recursive errors).
2509
2510 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2511
2512 PR c++/24745
2513 * typeck.c (build_binary_op): Fix logic for warning. Move warning
2514 to -Wpointer-arith.
2515 * call.c (convert_like_real): Don't warn when converting to
2516 boolean type.
2517
2518 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2519
2520 * decl.c (pop_label): Replace warning with call to
2521 warn_for_unused_label.
2522
2523 2007-01-28 Andrew Pinski <pinskia@gmail.com>
2524
2525 PR C++/28988
2526 * semantics.c (finish_pseudo_destructor_expr): Check the
2527 destrutor name by calling check_dtor_name.
2528
2529 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
2530
2531 * lex.c (D_CPP0X): Rename.
2532 (D_CXX0X): To this.
2533 (reswords): D_CPP0X -> D_CXX0X.
2534 (init_reswords): Ditto.
2535 * parser.c (cp_lexer_get_preprocessor_token): Warn about the use
2536 of C++0x keywords as identifiers.
2537
2538 2007-01-23 Simon Martin <simartin@users.sourceforge.net>
2539
2540 PR c++/27492
2541 * decl.c (duplicate_decls): Don't reset DECL_INVALID_OVERRIDER_P for
2542 function decls.
2543
2544 2007-01-23 Ian Lance Taylor <iant@google.com>
2545
2546 * typeck.c (convert_for_assignment): Only warn about a = b = c
2547 when converting to bool.
2548
2549 2007-01-23 Roger Sayle <roger@eyesopen.com>
2550
2551 * call.c (null_ptr_cst_p): Replace use of TREE_CONSTANT_OVERFLOW with
2552 TREE_OVERFLOW.
2553 * typeck.c (ignore_overflows): Remove the remaining uses of
2554 TREE_CONSTANT_OVERFLOW.
2555
2556 2007-01-20 Jan Hubicka <jh@suse.cz>
2557
2558 * decl2.c (start_objects, start_static_storage_duration_function):
2559 Do not make the functions uninlinable.
2560
2561 2007-01-17 Ian Lance Taylor <iant@google.com>
2562
2563 * class.c (add_method): Call VEC_reserve_exact rather than passing
2564 a negative size to VEC_reserve.
2565
2566 2007-01-11 Simon Martin <simartin@users.sourceforge.net>
2567
2568 PR c++/29573
2569 * tree.c (cp_tree_equal): Properly handle MODOP_EXPR trees.
2570
2571 2007-01-10 Mark Mitchell <mark@codesourcery.com>
2572
2573 PR c++/28999
2574 * decl.c (make_typename_type): If the qualified name is not a
2575 type, issue an error.
2576 * parser.c (cp_parser_elaborated_type_specifier): Fix comment
2577 formatting.
2578
2579 2007-01-08 Geoffrey Keating <geoffk@apple.com>
2580
2581 * rtti.c: Include target.h.
2582 (emit_support_tinfos): If ! targetm.cxx.library_rtti_comdat (),
2583 don't emit typeinfo for fundamental types as weak.
2584 * Make-lang.in (cp/rtti.o): Update and correct dependencies.
2585
2586 2007-01-08 Richard Guenther <rguenther@suse.de>
2587
2588 * cvt.c (cp_convert_to_pointer): Use build_int_cst_type.
2589
2590 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
2591
2592 * call.c (standard_conversion): Pass flag to
2593 vector_types_convertible_p to disallow emission of note.
2594 * typeck.c (convert_for_assignment): Pass flag to
2595 vector_types_convertible_p to allow emission of note.
2596 (ptr_reasonably_similar): Pass flag to vector_types_convertible_p
2597 to disallow emission of note.
2598
2599 2007-01-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2600
2601 PR c++/28986
2602 * typeck.c (build_binary_op): Call overflow_warning if
2603 TREE_OVERFLOW_P is true for the result and not for any of the
2604 operands.
2605
2606 2007-01-06 Lee Millward <lee.millward@codesourcery.com>
2607
2608 PR c++/19439
2609 * class.c (add_method): Don't wait until template
2610 instantiation time to complain about duplicate methods.
2611
2612 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2613
2614 PR c/19978
2615 * semantics.c (finish_unary_op_expr): Warn only if result
2616 overflowed and operands did not.
2617
2618 2007-01-05 Ian Lance Taylor <iant@google.com>
2619
2620 * typeck.c (build_binary_op): Warn about comparing a non-weak
2621 address to NULL.
2622
2623 2007-01-05 Douglas Gregor <doug.gregor@gmail.com>
2624
2625 * pt.c (tsubst): Propagate the need for structural equality checks
2626 when reducing the level of template parameters.
2627
2628 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
2629
2630 * pt.c: Fix a comment typo.
2631
2632 2007-01-02 Ian Lance Taylor <iant@google.com>
2633
2634 * semantics.c (maybe_convert_cond): Optionally warn when using an
2635 assignment as a condition.
2636 * typeck.c (convert_for_assignment): Optionally warn about
2637 assigning the result of an assignment to a bool.
2638
2639 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
2640
2641 * pt.c (canonical_template_parms): Correct typo in comment.
2642
2643 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
2644
2645 * typeck.c (structural_comptypes): Renamed from "comptypes".
2646 (comptypes): Use canonical type information to perform fast type
2647 comparison. When VERIFY_CANONICAL_TYPES, verify that the
2648 canonical type comparison returns the same results as we would see
2649 from the current, structural check. Support COMPARE_STRUCTURAL
2650 when we need structural checks.
2651 * decl.c (typename_compare): Fix comment.
2652 (build_typename_type): TYPENAME_TYPE nodes require structural
2653 equality checks, because they resolve different based on the
2654 current class type.
2655 (make_unbound_class_template): UNBOUND_CLASS_TEMPLATE nodes
2656 require structural equality checks (for now).
2657 (build_ptrmemfunc_type): Build the canonical pointer to member
2658 function type.
2659 (compute_array_index_type): Whenever we build a new index type
2660 to represent the size of an array in a template, we need to mark
2661 this index type as requiring structural equality. This goes for
2662 arrays with value-dependent sizes with the current ABI, or all
2663 arrays with ABI-1.
2664 * tree.c (cplus_array_hash): New.
2665 (struct cplus_array_info): New.
2666 (cplus_array_compare): New.
2667 (cplus_array_htab): New.
2668 (build_cplus_array_type_1): Use a hash table to cache the array
2669 types we build. Build the canonical array type for each array
2670 type.
2671 (cp_build_qualified_type_real): When building a cv-qualified array
2672 type, use the hash table of array types and build canonical array
2673 types as necessary.
2674 (bind_template_template_parm): BOUND_TEMPLATE_TEMPLATE_PARM nodes
2675 use structural equality (for now).
2676 * cp-tree.h (COMPARE_STRUCTURAL): New.
2677 * pt.c (canonical_template_parms): New.
2678 (canonical_type_parameter): New.
2679 (process_template_parm): Find the canonical type parameter.
2680 (lookup_template_class): When we have named the primary template
2681 type, set the canonical type for our template class to the primary
2682 template type. If any of the template arguments need structural
2683 equality checks, the template class needs structural equality
2684 checks.
2685 (tsubst): When reducing the level of a template template
2686 parameter, we require structural equality tests for the resulting
2687 parameter because its template parameters have not had their types
2688 canonicalized. When reducing a template type parameter, find the
2689 canonical reduced type parameter.
2690 (any_template_arguments_need_structural_equality_p): New.
2691
This page took 0.142051 seconds and 6 git commands to generate.