1 2007-05-11 Silvius Rus <rus@google.com>
3 * cp/typeck.c (build_indirect_ref): Add call to
4 strict_aliasing_warning.
5 (build_reinterpret_cast_1): Condition call to
6 strict_aliasing_warning.
8 2007-05-11 Jan Hubicka <jh@suse.cz>
10 * semantics.c (expand_or_defer_fn): Do not call c_record_cdtor_fn.
11 * decl2.c (start_objects): ctors and dtors are no longer public.
12 (cp_write_global_declarations): Do not call c_build_cdtor_fns.
14 2007-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
16 * typeck.c (build_unary_op): Remove code that used to
17 handle non lvalue increments/decrements.
19 2007-05-07 Mike Stump <mrs@apple.com>
21 * parser.c (check_empty_body): Add.
22 (cp_parser_iteration_statement): Add call to check_empty_body.
24 2007-05-05 Geoffrey Keating <geoffk@apple.com>
27 * mangle.c (write_mangled_name): Mangle static variable names.
28 (write_unqualified_name): Use local-source-name for
29 namespace-scope static variables.
31 2007-05-04 Dirk Mueller <dmueller@suse.de>
33 * cp-tree.h (DECL_MAIN_P): only if -ffreestanding is
36 2007-05-02 Seongbae Park <seongbae.park@gmail.com>
39 * decl2.c (constrain_class_visibility):
40 Use strip_pointer_or_array_types instead of strip_array_types.
42 2007-04-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
45 * decl.c (reshape_init_r): Don't reshape the first element if it
46 is a pointer to member function.
48 2007-04-27 Simon Baldwin <simonb@google.com>
50 * decl.c (grokparms): Changed message format from %qD to %qE.
52 2007-04-27 Douglas Gregor <doug.gregor@gmail.com>
54 * error.c (maybe_warn_variadic_templates): Variadic templates are
55 now in C++0x, so only warn about them in C++98 mode.
57 2007-04-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
60 * typeck.c (build_reinterpret_cast_1): Only allow conversion to
61 integeral types from vectors types.
63 2007-04-26 Jakub Jelinek <jakub@redhat.com>
66 * semantics.c (finish_omp_clauses): Don't create CP_OMP_CLAUSE_INFO
67 for type dependent OMP_CLAUSE_DECLs.
69 2007-04-24 Mark Mitchell <mark@codesourcery.com>
72 * cp-tree.h (ARITHMETIC_TYPE): Include COMPLEX_TYPE.
73 * typeck.c (type_after_usual_arithmetic_conversions): Adjust, as
74 COMPLEX_TYPE is now an ARITHMETIC_TYPE.
75 * init.c (build_zero_init): Adjust, as
76 COMPLEX_TYPE is now a SCALAR_TYPE.
77 * typeck2.c (digest_init): Allow brace-enclosed initializers for
78 COMPLEX_TYPE, even though that is now a SCALAR_TYPE.
80 2007-04-25 Paolo Carlini <pcarlini@suse.de>
82 * semantics.c (classtype_has_nothrow_copy_or_assign_p): Adjust
83 per N2255; rename as classtype_has_nothrow_assign_or_copy_p.
84 (trait_expr_value): Adjust.
86 2007-04-23 Simon Baldwin <simonb@google.com>
88 * decl.c (grokparms): Added new error for duplicate function
89 parameters names in function prototypes, to match gcc behavior.
91 2007-04-23 Jan Hubicka <jh@suse.cz>
93 * cp/decl2.c (finish_objects): Do not call target constructor/destructor
96 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
98 * cp-tree.h (lang_tree_node): Use GENERIC_NEXT
99 instead of checking GIMPLE_STMT_P in chain_next.
101 2007-04-17 Mark Mitchell <mark@codesourcery.com>
104 * call.c (convert_for_arg_passing): Convert bitfields to their
107 2007-04-17 Simon Martin <simartin@users.sourceforge.net>
110 * pt.c (value_dependent_expression_p): Handle MODOP_EXPRs.
112 2007-04-16 Seongbae Park <seongbae.park@gmail.com>
116 * cp/decl2.c (constrain_class_visibility):
117 Do not warn about the use of anonymous namespace in the main input file.
119 2007-04-15 Mark Mitchell <mark@codesourcery.com>
121 * cp-tree.h (current_template_parms): Fix typo in comment.
123 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
125 * cp-tree.h, error.c: Fix comment typos.
127 2007-04-13 Jason Merrill <jason@redhat.com>
130 * call.c (reference_binding): Add c_cast_p parm. If true,
131 add quals to TO as needed to make it reference-compatible.
133 2007-04-11 Jan Hubicka <jh@suse.cz>
135 * cp/class.c (convert_to_base_statically): Fold produced tree; verify
136 that we are not processing template_decl.
138 2007-04-09 Mark Mitchell <mark@codesourcery.com>
141 * class.c (build_base_path): Ensure that the converted pointer has
142 the same cv-qualification as the input.
144 2007-04-09 Paolo Carlini <pcarlini@suse.de>
146 * tree.c (cp_tree_equal): Deal with TRAIT_EXPR.
148 2007-04-08 Steven Bosscher <steven@gcc.gnu.org>
150 * cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS):
152 (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do not set it.
153 * tree.c (cp_add_pending_fn_decls): Remove.
154 * cp-tree.h (cp_add_pending_fn_decls): Remove prototype.
156 2007-04-07 Daniel Berlin <dberlin@dberlin.org>
158 Revert change removing staticp.
160 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
162 * cp-objcp-common.c (cxx_staticp): Remove.
163 * cp-objcp-common.h (LANG_HOOKS_STATICP): Remove.
164 * cp-tree.h (cxx_staticp):
166 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
168 * class.c (check_for_override): Don't remove dllmport attribute
171 2007-04-03 Jakub Jelinek <jakub@redhat.com>
174 * typeck.c (build_modify_expr): For COND_EXPR on LHS, if RHS has void
175 type issue error and return early.
177 2007-03-30 Jason Merrill <jason@redhat.com>
180 * typeck.c (cp_type_readonly): New fn.
181 * cp-tree.h: Declare it.
182 * decl.c (start_decl): Set implicit DECL_THIS_STATIC here.
183 (cp_finish_decl): Not here.
185 2007-03-31 Richard Guenther <rguenther@suse.de>
187 * optimize.c (maybe_clone_body): Replace splay-tree usage by
190 2007-03-31 Douglas Gregor <doug.gregor@gmail.com>
195 * parser.c (declarator_can_be_parameter_pack): New.
196 (cp_parser_template_parameter): Only parse the `...' if the
197 declarator can be a parameter pack.
198 (cp_parser_parameter_declaration): Ditto. Also, handle when TYPE
200 * pt.c (find_parameter_packs_r): Look into the bounds on integer
201 types (they could be used as array bounds).
202 (check_for_bare_parameter_packs): Deal with TEMPLATE_PARM_INDEX.
203 (tsubst_pack_expansion): Handle failure to expand parameter
206 2007-03-30 Paolo Carlini <pcarlini@suse.de>
209 * cp-tree.h (enum cp_trait_kind, struct tree_trait_expr,
210 TRAIT_EXPR_TYPE1, TRAIT_EXPR_TYPE2, TRAIT_EXPR_KIND): Add.
211 (enum cp_tree_node_structure_enum, union lang_tree_node): Update.
212 (CLASS_TYPE_NON_UNION_P): Add.
213 (struct lang_type_class): Add has_complex_dflt.
214 (TYPE_HAS_COMPLEX_DFLT, TYPE_HAS_TRIVIAL_DFLT): Add.
215 (locate_copy, locate_ctor, locate_dtor, finish_trait_expr): Declare.
216 * cp-tree.def: Add TRAIT_EXPR.
217 * cp-objcp-common.c (cp_tree_size): Add TRAIT_EXPR case.
218 * lex.c (struct resword): Add __has_nothrow_assign,
219 __has_nothrow_constructor, __has_nothrow_copy, __has_trivial_assign,
220 __has_trivial_constructor, __has_trivial_copy,
221 __has_trivial_destructor, __has_virtual_destructor, __is_abstract,
222 __is_base_of, __is_class, __is_convertible_to, __is_empty, __is_enum,
223 __is_pod, __is_polymorphic, __is_union.
224 * parser.c (cp_parser_primary_expression): Deal with the new RIDs.
225 (cp_parser_trait_expr): New.
226 * semantics.c (finish_trait_expr, trait_expr_value
227 classtype_has_nothrow_copy_or_assign_p): New.
228 * method.c (locate_copy, locate_ctor, locate_dtor): Do not define
230 * decl.c (cp_tree_node_structure): Add TRAIT_EXPR.
231 * class.c (check_bases, check_field_decl, check_bases_and_members):
232 Deal with TYPE_HAS_COMPLEX_DFLT (t) too.
233 * pt.c (uses_template_parms, tsubst_copy_and_build,
234 value_dependent_expression_p, type_dependent_expression_p): Deal with
236 * tree.c (cp_walk_subtrees): Deal with TRAIT_EXPR.
238 2007-03-29 Richard Guenther <rguenther@suse.de>
240 * tree.c (cp_walk_subtrees): Do not set input_location.
242 2007-03-28 Simon Martin <simartin@users.sourceforge.net>
245 * decl.c (grokfndecl): Properly setup decl if it is a constructor or a
248 2007-03-28 Douglas Gregor <doug.gregor@gmail.com>
250 * parser.c (struct cp_parser): Update comment for
251 greater_than_is_operator_p.
252 (cp_parser_primary_expression): In C++0x mode, a cast operator can
253 be terminated with a `>>' token when !GREATER_THAN_IS_OPERATOR_P.
254 (TOKEN_PRECEDENCE): In C++0x mode, `>>' is treated like `>' when
255 !GREATER_THAN_IS_OPERATOR_P.
256 (cp_parser_binary_expression): When -Wc++0x-compat, warn about
257 `>>' operators that will become two `>' tokens in C++0x.
258 (cp_parser_parameter_declaration): Treat `>>' like `>' in C++0x
259 mode, allowing it to terminate default arguments.
260 (cp_parser_enclosed_template_argument_list): In C++0x mode, treat
261 `>>' like two consecutive `>' tokens.
262 (cp_parser_skip_to_end_of_template_parameter_list): Ditto.
263 (cp_parser_next_token_ends_template_argument_p): In C++0x, `>>'
264 ends a template argument.
266 2007-03-28 Douglas Gregor <doug.gregor@gmail.com>
268 * decl.c (redeclaration_error_message): Complain when redeclaring
269 a friend function with default template arguments (C++0x mode only).
270 * cp-tree.h (check_default_tmpl_args): Declare.
271 * pt.c (check_default_tmpl_args): In C++0x mode, permit default
272 template arguments in function templates. Add support for checking
273 the default template arguments of friend templates.
274 (push_template_decl_real): Fix call to check_default_tmpl_args.
275 (type_unification_real): If a template parameter has not been
276 deduced but provides a default template argument, substitute into
277 that default template argument.
278 * parser.c (cp_parser_init_declarator): When declaring (but not
279 defining!) a function template in C++0x mode, check for default
282 2007-03-28 Douglas Gregor <doug.gregor@gmail.com>
285 * decl.c (grokdeclarator): Deal with cv-qualified function type
286 typedefs in the same way for member and non-member functions.
288 2007-03-26 Dirk Mueller <dmueller@suse.de>
290 * parser.c (cp_parser_member_declaration): Pedwarn
291 about stray semicolons after member declarations.
293 2007-03-26 Paolo Carlini <pcarlini@suse.de>
296 * pt.c (instantiate_decl): Set in_system_header.
298 2007-03-22 Mark Mitchell <mark@codesourcery.com>
300 * cp-tree.h (current_tempalte_parms): Improve documentation.
301 * pt.c (current_template_args): Likewise.
304 * parser.c (cp_parser_parse_and_diagnose_invalid_type_name): Do
305 not consume tokens when failing.
307 2007-03-22 Jim Wilson <wilson@specifix.com>
308 Mark Mitchell <mark@codesourcery.com>
311 * call.c (standard_conversion): Use type_decays_to. Keep FCODE
312 consistent with FROM.
314 2007-03-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
316 * error.c (dump_expr): Handle dependent names that designate types.
317 * cxx-pretty-print.c (pp_cxx_unqualified_id): Handle TYPENAME_TYPE.
319 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
321 * cp-tree.def, parser.c, pt.c: Fix comment typos.
323 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
325 * cvt.c (cp_convert_and_check) : Define.
326 * cp-tree.h (cp_convert_and_check): Declare.
327 * call.c (convert_conversion_warnings): Rename to
328 conversion_null_warnings. The warning for floating-point to
329 integer is handled by convert_and_check in convert_like_real.
330 (convert_like_real): convert_conversion_warnings was renamed as
331 conversion_null_warnings.
332 * typeck.c (build_binary_op): Use cp_convert_and_check to warn for
333 overflow and changes of value during conversion.
335 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
338 * parser.c (cp_parser_statement): If 'namespace' is found, this
339 only can be a namespace alias definition, so parse it now.
340 (cp_parser_namespace_alias_definition): if we find an open brace
341 instead of '=', then this is actually a misplaced namespace
344 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
347 * decl.c (cxx_init_decl_processing): Move command-line options
348 processing to c-opts.c.
350 2007-03-15 Douglas Gregor <doug.gregor@gmail.com>
352 * ptree.c (cxx_print_type): Use formatting markup for integers
353 when printing template parameter index/level/orig level.
354 (cxx_print_xnode): Ditto.
355 * cp-tree.h (TEMPLATE_PARM_PARAMETER_PACK): Use TREE_LANG_FLAG_0.
356 (struct template_parm_index_s): Remove the PARAMETER_PACK member.
357 Make INDEX, LEVEL, and ORIG_LEVEL integers instead of
359 (struct saved_scope): Make X_PROCESSING_TEMPLATE_DECL an int,
360 rather than a HOST_WIDE_INT.
361 Turn X_PROCESSING_EXPLICIT_INSTANTIATION, SKIP_EVALUATION, and
362 NEED_POP_FUNCTION_CONTEXT into bool bitfields; reorder fields for
364 (struct language_function): Make RETURNS_VALUE, RETURNS_NULL,
365 RETURNS_ABNORMALLY, IN_FUNCTION_TRY_HANDLER, and
366 IN_BASE_INITIALIZER bool bitfields.
367 (struct cp_declarator): Make KIND a 4-bit field. Make
368 PARAMETER_PACK_P a bool bitfield just after KIND.
369 * pt.c (uses_parameter_packs): Destroy the pointer set.
370 (make_pack_expansion): Ditto.
371 (check_for_bare_parameter_packs): Ditto.
372 * name-lookup.c (push_to_top_level): Make need_pop a bool value.
374 2007-03-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
377 * call.c (convert_default_arg): Instead of copying the node,
380 2007-03-15 Dirk Mueller <dmueller@suse.de>
383 * call.c (convert_conversion_warnings): New..
384 (convert_like_real): .. factored out from here.
385 (convert_conversion_warnings): Add warning about
386 false being converted to NULL in argument passing.
388 2007-03-14 Dirk Mueller <dmueller@suse.de>
390 * cp/semantics.c (c_finish_if_stmt): Call empty_if_body_warning.
391 (finish_do_body): Warn about empty body in do/while statement.
393 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
395 * class.c (warn_hidden): Add OPT_Woverloaded_virtual to warning.
397 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
400 * typeck.c (build_binary_op): Call warn_for_div_zero instead of
403 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
405 * cp/repo.c (init_repo): Initialize random_seed saved options.
406 (finish_repo): Adjust.
408 2007-03-13 Mark Mitchell <mark@codesourcery.com>
411 * Make-lang.in (doc/g++.1): Use $< to specify the location from
414 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
416 * decl.c (compute_array_index_type): New warning flag warn_vla.
418 2007-03-12 Mark Mitchell <mark@codesourcery.com>
421 * call.c (convert_default_arg): Copy non-constant arguments.
423 2007-03-11 Mark Mitchell <mark@codesourcery.com>
426 * parser.c (cp_parser_postfix_expression): Disallow compound
427 literals in constant expressions.
430 * semantics.c (finish_typeof): Use unlowered_expr_type.
432 2007-03-10 Mark Mitchell <mark@codesourcery.com>
435 * cp-tree.h (unlowered_expr_type): New function.
436 * typeck.c (is_bitfield_expr_with_lowered_type): Handle
437 COMPOUND_EXPR, MODIFY_EXPR, and SAVE_EXPR.
438 (unlowered_expr_type): New function.
439 (build_unary_op): Disallow predecrements of bool bitfields.
440 * call.c (build_conditional_expr): Use unlowered_expr_type.
441 * pt.c (type_unification_real): Likewise.
443 2007-03-09 Douglas Gregor <doug.gregor@gmail.com>
446 * typeck.c (check_return_expr): Check for bare parameter packs.
447 (comptypes): Compare template parameter packs and
448 type pack expansions.
449 * decl.c (grokdeclarator): Deal with the declaration of function
451 (grokparms): Verify that the (optional) function parameter pack is
452 at the end of the parameter list.
453 (xref_basetypes): Handle pack expansions in the base class.
454 (cp_tree_node_structure): Handle ARGUMENT_PACK_SELECT.
455 * cp-tree.def (TYPE_ARGUMENT_PACK): New.
456 (NONTYPE_ARGUMENT_PACK): New.
457 (TYPE_PACK_EXPANSION): New.
458 (EXPR_PACK_EXPANSION): New.
459 (ARGUMENT_PACK_SELECT): New.
460 * cp-objcp-common.c (cp_tree_size): Compute size of
461 (NON)TYPE_ARGUMENT_PACK, (TYPE|EXPR)_PACK_EXPANSION, and
462 ARGUMENT_PACK_SELECT.
463 * error.c (dump_template_argument): Print template argument packs.
464 (dump_template_argument_list): Ditto.
465 (dump_template_parameter): Dump `...' for template type parameter
467 (dump_type): Dump TYPE_PACK_EXPANSION nodes.
468 (dump_parameters): Print function parameter packs.
469 (dump_template_parms): Print template argument packs.
470 (dump_expr): Dump EXPR_PACK_EXPANSION nodes.
471 (maybe_warn_variadic_templates): New.
472 * operators.def: Add ellipsis operator for EXPR_PACK_EXPANSION.
473 * tree.c (cp_walk_subtrees): Walk BASELINK, TYPE_ARGUMENT_PACK,
474 NONTYPE_ARGUMENT_PACK, TYPE_PACK_EXPANSION, EXPR_PACK_EXPANSION,
476 * mangle.c (write_type): Mangle TYPE_PACK_EXPANSION.
477 (write_template_arg): Write argument packs as separate arguments.
478 * cp-tree.h (struct template_parm_index_s): Add flag that
479 indicates that the template parameter is actually a parameter
481 (struct tree_argument_pack_select): New.
482 (enum cp_tree_node_structure_enum): Add TS_CP_ARGUMENT_PACK_SELECT.
483 (union lang_tree_node): Add argument_pack_select.
484 (FUNCTION_PARAMETER_PACK_P): New.
485 (PACK_EXPANSION_P): New.
486 (PACK_EXPANSION_PATTERN): New.
487 (SET_PACK_EXPANSION_PATTERN): New.
488 (PACK_EXPANSION_PARAMETER_PACKS): New.
489 (ARGUMENT_PACK_P): New.
490 (ARGUMENT_PACK_ARGS): New.
491 (SET_ARGUMENT_PACK_ARGS): New.
492 (ARGUMENT_PACK_INCOMPLETE_P): New.
493 (ARGUMENT_PACK_EXPLICIT_ARGS): New.
494 (TEMPLATE_PARM_PARAMETER_PACK): New.
495 (TEMPLATE_TYPE_PARAMETER_PACK): New.
496 (ARGUMENT_PACK_SELECT_FROM_PACK): New.
497 (ARGUMENT_PACK_SELECT_INDEX): New.
498 (ARGUMENT_PACK_SELECT_ARG): New.
499 (struct cp_declarator): Add parameter_pack_p flag.
500 (maybe_warn_variadic_templates): Declare.
501 (process_template_parm): Add bool parameter IS_PARAMETER_PACK, to
502 indicate a template parameter pack.
503 (uses_parameter_packs): Declare.
504 (template_parameter_pack_p): Declare.
505 (template_parms_variadic_p): Declare.
506 (make_pack_expansion): Declare.
507 (check_for_bare_parameter_packs): Declare.
508 * cxx-pretty-print.c (pp_cxx_unary_expression): Print
509 sizeof... expressions.
510 (pp_cxx_expression): Print pack expansions and non-type argument
512 (pp_cxx_exception_specification): Print pack expansions.
513 (pp_cxx_direct_declarator): Print ellipsis for parameter packs.
514 (pp_cxx_ctor_initializer): Print pack expansions.
515 (pp_cxx_type_id): Print pack expansions.
516 (pp_cxx_template_argument_list): Print argument packs.
517 (pp_cxx_template_parameter): Print ellipsis for template parameter
519 * pt.c (comp_template_parms): Compare template parameter packs.
520 (template_parameter_pack_p): New.
521 (template_parms_variadic_p): New.
522 (template_args_variadic_p): New.
523 (make_ith_pack_parameter_name): New.
524 (struct find_parameter_pack_data): New.
525 (find_parameter_packs_r): New.
526 (uses_parameter_packs): New.
527 (make_pack_expansion): New.
528 (check_for_bare_parameter_packs): New.
529 (expand_template_argument_pack): New.
530 (reduce_template_parm_level): Propagate parameter pack flag.
531 (process_template_parm): Add is_parameter_pack parameter to state
532 when the parameter is actually a parameter pack. Create template
533 parameter packs when is_parameter_pack is true.
534 (current_template_args): The argument for a template parameter
535 pack is an argument pack containing a single pack expansion.
536 (process_partial_specialization): When checking that non-type
537 argument expressions do not involve template parameters, loop over
538 the arguments in argument packs separately.
539 (push_template_decl_real): Check that the type of the declaration
540 does not have any bare parameter packs. Check that primary
541 templates have no more than one parameter pack, and that it comes
542 at the end of the template parameter list.
543 (convert_template_argument): Handle coercions for pack expansion
544 expressions by coercing the pattern then rebuilding the expansion.
545 (coerce_template_parms): When coercing the arguments for a
546 variadic template, pack "extra" arguments into an argument pack.
547 (coerce_template_template_parms): Cannot coerce between parameter
548 packs and non-pack parameters.
549 (template_args_equal): Compare PACK_EXPANSION_P expressions.
550 (comp_template_args): Expand all template arguments packs before
551 comparing template argument lists.
552 (mangle_class_name_for_template): Make argument packs as separate
554 (for_each_template_parm_r): No need to handle BASELINK.
555 (instantiate_class_template): Handle pack expansions in the base
557 (tsubst_pack_expansion): New.
558 (tsubst_template_args): Handle substitutions of argument packs and
559 pack expansion into template argument lists.
560 (tsubst_decl): Expand function parameter packs into separate
562 (tsubst_arg_types): Expand a type pack expansion into separate
564 (tsubst_exception_specification): Handle pack expansions in
565 exception specifiers.
566 (tsubst): See through ARGUMENT_PACK_SELECT arguments when
567 replacing a template parameter with its argument. If we encounter
568 a substitution for an argument pack, just return the parameter
570 (tsubst_copy): sizeof(X...) returns the number of elements in
571 parameter pack X. See through ARGUMENT_PACK_SELECT when the
572 PARM_DECL is a parameter pack.
573 (tsubst_expr): Expression pack expansions and argument packs
574 cannot show up here; they will all be handled through function
575 calls, sizeof, and template argument lists.
576 (tsubst_copy_and_build): sizeof(X...) returns the number of
577 elements in parameter pack X. Handle pack expansions in TREE_LIST
578 and CONSTRUCTOR nodes.
579 (fn_type_unification): Handle "incomplete" explicit template
580 argument lists that specify some of the arguments for a template
582 (type_unification_real): Unify arguments against pack expansions.
583 (template_parm_level_and_index): New, helper function.
584 (unify_pack_expansion): New.
585 (unify): Unify argument packs on an argument-by-argument basis,
586 handling variadic argument packs as well.
587 (more_specialized_fn): Handle unification of function parameter
588 packs. All things being equal, prefer non-variadic function
589 templates to variadic function templates.
590 (more_specialized_class): Prefer the variadic class template
591 partial specialization that binds fewer arguments to a parameter
593 (regenerate_decl_from_template): Expand function parameter packs
594 into separate parameters.
595 (instantiate_decl): Ditto.
596 (tsubst_initializer_list): Handle pack expansions for base-class
598 (dependent_type_p_r): Determine dependent types in argument packs
600 (value_dependent_expression_p): Determine value-dependence of
601 non-type argument packs.
602 (dependent_template_arg_p): Handle argument packs.
603 * semantics.c (finish_cond): Check for bare parameter packs.
604 (finish_expr_stmt): Ditto.
605 (finish_for_expr): Ditto.
606 (finish_switch_cond): Ditto.
607 (finish_mem_initializers): Ditto.
608 * name-lookup.c (arg_assoc_type): Handle pack expansions and
610 * decl2.c (cp_build_parm_decl): Mark function parameter packs.
611 * parser.c (make_declarator): Declarator is not an expansion.
612 (make_pointer_declarator): Transfer parameter pack flag to outer
614 (make_reference_declarator): Ditto.
615 (make_ptrmem_declarator): Ditto.
616 (make_call_declarator): Ditto.
617 (make_array_declarator): Ditto.
618 (cp_parser_postfix_expression): Allow pack expansion expressions
619 in the argument list for a call expression.
620 (cp_parser_parenthesized_expression_list): Add new parameter
621 ALLOW_EXPANSION_P. When true, parse the ellipsis to mean "expand
622 into separate arguments."
623 (cp_parser_new_placement): Allow pack expansion expressions.
624 (cp_parser_new_initializer): Ditto.
625 (cp_parser_mem_initializer_list): Allow ellipsis to create a
626 base-class initializer expansion.
627 (cp_parser_mem_initializer): Ditto.
628 (cp_parser_template_parameter_list): Keep track of whether the
629 template parameter is a template parameter pack.
630 (cp_parser_template_parameter): Parse the ellipsis to indicate a
631 template parameter pack.
632 (cp_parser_type_parameter): Ditto.
633 (cp_parser_template_argument_list): Parse the ellipsis to indicate
635 (cp_parser_direct_declarator): Parse the ellipsis to indicate that
636 this declarator is a parameter pack.
637 (cp_parser_parameter_declaration): The ellipsis does not end the
638 parameter declaration, because it might be a parameter pack. Parse
639 the ellipsis to indicate a parameter pack.
640 (cp_parser_initializer): Allow pack expansions.
641 (cp_parser_initializer_list): Allow ellipsis to create an
642 initializer expansion.
643 (cp_parser_base_clause): Allow ellipsis to create a base specifier
645 (cp_parser_type_id_list): Allow ellipsis to create an exception
647 (cp_parser_attribute_list): Don't allow pack expansions.
648 (cp_parser_functional_cast): Allow pack expansions.
649 (cp_parser_sizeof_operand): Allow ellipsis following "sizeof" to
650 compute the length of a parameter pack.
651 (cp_parser_next_token_ends_template_argument_p): An ellipsis can
652 end a template argument.
653 * tree.c (cp_walk_subtrees): Walk BASELINK, TYPE_ARGUMENT_PACK,
654 NONTYPE_ARGUMENT_PACK, TYPE_PACK_EXPANSION, EXPR_PACK_EXPANSION,
657 2007-03-09 Dirk Mueller <dmueller@suse.de>
659 * cp/call.c (build_new_op): Call warn_logical_operator.
661 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
664 * semantics.c (finish_offsetof): Handle COMPOUND_EXPR.
667 * pt.c (any_template_arguments_need_structural_equality_p):
670 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
672 * decl.c (grokdeclarator): Disable warnings for anonymous
675 2007-03-05 Volker Reichelt <reichelt@netcologne.de>
677 * typeck2.c (readonly_error): Always emit a hard error.
678 Remove last argument.
679 * cp-tree.h (readonly_error): Adjust prototype.
680 * semantics.c (finish_asm_stmt): Adjust call to readonly_error.
681 * typeck.c (build_unary_op): Likewise.
682 (build_modify_expr): Likewise.
684 2007-03-04 Simon Martin <simartin@users.sourceforge.net>
687 * tree.c (cp_tree_equal): Properly handle COMPLEX_CST trees.
689 2007-03-03 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
692 * parser.c (struct cp_parser): New IN_IF_STMT.
693 (cp_parser_statement_seq_opt): Handle an unexpected 'else',
694 returning if parsing the body of an 'if' statement or issuing an
695 error and continuing.
696 (cp_parser_selection_statement): Set IN_IF_STMT bit when parsing
698 (cp_parser_jump_statement): Mask new IN_IF_STMT bit.
700 2007-03-02 Simon Martin <simartin@users.sourceforge.net>
703 * class.c (update_vtable_entry_for_fn): Properly handle invalid overriders
706 2007-03-02 Geoffrey Keating <geoffk@apple.com>
708 * g++spec.c (lang_specific_driver): Add -lstdc++ when compiling
709 Objective-C++. Don't exit early if -shared-libgcc needs to be
712 2007-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
714 * typeck.c (common_base_type): Delete unused function.
716 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
718 * Make-lang.in: Add dummy lang.install-pdf target.
720 2007-03-01 Simon Baldwin <simonb@google.com>
723 * decl.c (check_tag_decl): Added new warning for typedef ignored
724 when it precedes an otherwise valid non-typedef declaration.
726 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
728 * typeck.c (build_function_call): Store converted arguments
729 in a stack-allocated array instead of building a list.
730 (convert_arguments): Store arguments in the array passed in as an
731 argument, and return the actual number of arguments.
732 * call.c (build_call): Delete, and replace with...
733 (build_call_n, build_call_a): New.
734 (build_op_delete_call): Rewrite to avoid constructing argument lists.
735 (build_over_call): Store converted arguments in a stack-allocated
736 array instead of building a list.
737 (build_cxx_call): Pass arguments in an array instead of as a list.
738 (build_java_interface_fn_ref): Rewrite to avoid constructing
740 * tree.h: Update declarations to reflect above changes.
741 * method.c (use_thunk): Use a stack-allocated array to hold
742 the arguments instead of a list.
743 * rtti.c (throw_bad_cast): Update call to cxx_call.
744 (throw_bad_typeid): Likewise.
745 (build_dynamic_cast_1): Likewise.
746 * init.c (build_builtin_delete_call): Use build_call_n.
747 * decl.c (expand_static_init): Likewise.
748 * except.c (cp_protect_cleanup_actions): Likewise.
749 * cp-gimplify.c (genericize_eh_spec_block): Likewise.
750 (gimplify_must_not_throw_expr): Likewise.
751 (cxx_omp_apply_fn): Use build_call_a.
753 2007-02-26 Mark Mitchell <mark@codesourcery.com>
755 * semantics.c (expand_or_defer_fn): Call c_record_cdtor_fn.
756 * decl2.c (cp_write_gloabl_declarations): Call c_build_cdtor_fns.
758 2007-02-25 Mark Mitchell <mark@codesourcery.com>
760 * cp-tree.h (static_ctors): Remove.
761 * cp-tree.h (static_dtors): Likewise.
762 * cp-objcp-common.c (decl_shadowed_for_var_lookup): Adjust for
763 refactoring of tree_map hierarchy.
764 (decl_shadowed_for_var_insert): Likewise.
765 * semantics.c (expand_body): Use c_expand_body.
766 (expand_or_defer_fn): Don't update static_ctors or static_dtors.
767 * decl2.c (static_ctors): Remove.
768 (static_dtors): Likewise.
769 (generate_ctor_or_dtor_function): Pass NULL_TREE to
770 objc_generate_static_init_call. Do not call static_[cd]tors.
771 (generate_ctor_and_dtor_functions_for_priority): Do not check for
773 (cp_write_global_declarations): Likewise.
775 2007-02-23 Richard Guenther <rguenther@suse.de>
777 * class.c (note_name_declared_in_class): Make declaration
778 changes meaning a pedwarn.
780 2007-02-22 Michael Matz <matz@suse.de>
783 * cp-tree.h (TFF_UNQUALIFIED_NAME): New formatting flag.
784 * error.c (dump_aggr_type, dump_simple_decl, dump_decl,
785 dump_function_decl): Guard emitting outer scopes by new flag.
786 * cp-lang.c (cxx_dwarf_name): New function.
787 (LANG_HOOKS_DWARF_NAME): Define to cxx_dwarf_name.
788 * pt.c (classtype_mangled_name, mangle_class_name_for_template):
790 (push_template_decl_real, lookup_template_class): Remove calls
793 2007-02-19 Mark Mitchell <mark@codesourcery.com>
795 * call.c (build_new_method_call): Ensure that explicit calls of
796 destructors have type "void".
798 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
800 * typeck.c (build_binary_op): Replace -Wstring-literal-comparison
801 and -Walways-true with -Waddress.
802 * cvt.c (convert_to_void): Replace unconditional warning with
805 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
807 * decl.c, tree.c: Fix comment typos.
809 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
812 * semantics.c (finish_stmt_expr_expr): Set TREE_TYPE of the
813 statement expression if we had an error mark node.
815 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
816 Brooks Moses <brooks.moses@codesourcery.com>
817 Lee Millward <lee.millward@codesourcery.com>
819 * cp-tree.def (AGGR_INIT_EXPR): Adjust documentation.
820 Change class to tcc_vl_exp.
822 * call.c (build_call): Use build_call_list instead
824 (build_over_call): Likewise.
825 (build_new_method_call): Use build_min_non_dep_call_list
826 instead of build_min_non_dep.
828 * error.c (dump_call_expr_args): New function.
829 (dump_aggr_init_expr_args): New function.
830 (dump_expr) <AGGR_INIT_EXPR, CALL_EXPR, INDIRECT_REF>: Use them.
831 Update to use new CALL_EXPR and AGGR_INIT_EXPR accessor macros.
833 * cvt.c (convert_to_void): Use build_call_array instead
834 of build3; use new AGGR_INIT_EXPR accessor macros.
836 * mangle.c (write_expression): Use TREE_OPERAND_LENGTH
837 instead of TREE_CODE_LENGTH.
839 * dump.c (cp_dump_tree) <AGGR_INIT_EXPR>: Update to use new
840 AGGR_INIT_EXPR accessor macros.
842 * cp-gimplify.c (cp_gimplify_init_expr): Use
843 AGGR_INIT_EXPR_SLOT to set the slot operand.
845 * cp-tree.h (AGGR_INIT_EXPR_FN): New macro.
846 (AGGR_INIT_EXPR_SLOT): New macro.
847 (AGGR_INIT_EXPR_ARG): New macro.
848 (aggr_init_expr_nargs): New macro.
849 (AGGR_INIT_EXPR_ARGP): New macro.
850 (aggr_init_expr_arg_iterator): New.
851 (init_aggr_init_expr_arg_iterator): New.
852 (next_aggr_init_expr_arg): New.
853 (first_aggr_init_expr_arg): New.
854 (more_aggr_init_expr_args_p): New.
855 (FOR_EACH_AGGR_INIT_EXPR_ARG): New.
856 (stabilize_aggr_init): New declaration.
857 (build_min_non_dep_call_list): Likewise.
859 * tree.c (process_aggr_init_operands): New function.
860 (build_aggr_init_array) New function.
861 (build_cplus_new): Update to use new CALL_EXPR and
862 AGGR_INIT_EXPR accessor macros. Replace use of build3 with
863 build_aggr_init_array.
864 (build_min_non_dep_call_list) New function.
865 (build_min_nt): Assert input code parameter is not a variable
866 length expression class.
867 (build_min, build_min_non_dep): Likewise.
868 (cp_tree_equal) <CALL_EXPR>: Iterate through the arguments
869 to check for equality instead of recursing. Handle tcc_vl_exp
871 (stabilize_call): Update to only handle CALL_EXPRs, not
872 AGGR_INIT_EXPRs; use new CALL_EXPR accessor macros.
873 (stabilize_aggr_init): New function.
874 (stabilize_init): Use it.
876 * cxx-pretty-print.c (pp_cxx_postfix_expression)
877 <AGGR_INIT_EXPR, CALL_EXPR>: Update to use new CALL_EXPR and
878 AGGR_INIT_EXPR accessor macros and argument iterators.
880 * pt.c (tsubst_copy) <CALL_EXPR>: Replace build_nt with
881 build_vl_exp. Iterate through the operands, recursively
883 (tsubst_copy_and_build) <CALL_EXPR>: Update to use new
884 CALL_EXPR accessor macros.
885 (value_dependent_expression_p) <default>: Handle tcc_vl_exp
886 tree code classes. Use TREE_OPERAND_LENGTH instead of
889 * semantics.c (finish_call_expr): Use build_nt_call_list
891 (simplify_aggr_init_expr): Update to use new AGGR_INIT_EXPR
892 accessor macros. Use build_call_array to construct the
893 CALL_EXPR node instead of build3
895 * decl2.c (build_offset_ref_call_from_tree): Use
896 build_nt_call_list and build_min_non_dep_call_list instead
897 of build_min_nt and build_min_non_dep.
899 * parser.c (cp_parser_postfix_expression) <CPP_OPEN_PAREN>:
900 Use build_nt_call_list instead of build_min_nt.
902 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
905 * call.c (build_conditional_expr): Improve error message.
907 2007-02-13 Dirk Mueller <dmueller@suse.de>
909 * friend.c (do_friend): Annotate warning about friend
910 declarations in templates with OPT_Wnon_template_friend.
911 Convert informal message from warning() to inform().
913 2007-02-12 Simon Martin <simartin@users.sourceforge.net>
914 Mark Mitchell <mark@codesourcery.com>
917 * pt.c (do_decl_instantiation): Detect type mismatches in explicit
918 instantiations for variables.
920 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
923 * cp-gimplify.c (gimplify_expr_stmt): Don't check extra_warnings.
924 Check warn_unused_value just once.
926 2007-02-11 Mark Mitchell <mark@codesourcery.com>
929 * pt.c (determine_specialization): Use skip_artificial_parms_for.
930 (fn_type_unificiation): Likewise.
931 (get_bindings): Likewise.
933 o2007-02-06 Mark Mitchell <mark@codesourcery.com>
936 * decl.c (finish_function): Use DECL_REPLACEABLE.
937 * tree.c (cp_cannot_inline_tree_fn): Likewise.
939 2007-02-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
941 * parser.c (cp_parser_primary_expression): Reformat overly long lines.
943 2007-02-10 Richard Henderson <rth@redhat.com>, Jakub Jelinek <jakub@redhat.com>
945 * decl.c (grokvardecl): Don't error if !have_tls.
946 (grokdeclarator): Likewise.
947 * parser.c (cp_parser_omp_threadprivate): Likewise.
949 2007-02-07 Jakub Jelinek <jakub@redhat.com>
952 * cp-gimplify.c (cp_genericize_r): Don't dereference invisiref
953 parameters and result decls in omp clauses.
954 (cxx_omp_privatize_by_reference): Pass also invisiref PARM_DECLs
957 2007-02-05 Dirk Mueller <dmueller@suse.de>
960 * parser.c (cp_parser_class_specifier): Always initialize bases.
962 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
964 * cp-tree.h (OMP_ATOMIC_CODE): Delete.
965 (OMP_ATOMIC_DEPENDENT_P): Rewrite.
966 * pt.c (tsubst_expr): Adjust for new format of dependent OMP_ATOMIC
968 * semantics.c (finish_omp_atomic): Store a whole expression node
969 in operand 1, and integer_zero_node in operand 0, for dependent
970 OMP_ATOMIC. Rewrite to make flow easier to understand.
972 2007-02-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
974 * decl.c (grokdeclarator): Use OPT_Wreturn_type instead of 0.
976 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
978 * class.c, cp-tree.h, decl.c, decl2.c, g++spec.c, init.c,
979 parser.c, pt.c, tree.c, typeck.c: Follow spelling conventions.
981 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
983 * parser.c (cp_lexer_get_preprocessor_token): Attach the C++0x
984 keyword warning to -Wc++0x-compat.
986 2007-02-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
988 * decl.c (grokdeclarator): Update documentation.
990 2007-02-02 Jakub Jelinek <jakub@redhat.com>
993 * decl.c (grokdeclarator): If __thread is used together with
994 a storage class other than extern and static, clear thread_p
995 after issuing diagnostics and fall through to checking the
998 2007-01-30 Roger Sayle <roger@eyesopen.com>
1000 * error.c (dump_type_suffix): Avoid use of cp_build_binary_op when
1001 calculating the size of an array (to avoid recursive errors).
1003 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1006 * typeck.c (build_binary_op): Fix logic for warning. Move warning
1008 * call.c (convert_like_real): Don't warn when converting to
1011 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1013 * decl.c (pop_label): Replace warning with call to
1014 warn_for_unused_label.
1016 2007-01-28 Andrew Pinski <pinskia@gmail.com>
1019 * semantics.c (finish_pseudo_destructor_expr): Check the
1020 destrutor name by calling check_dtor_name.
1022 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
1024 * lex.c (D_CPP0X): Rename.
1026 (reswords): D_CPP0X -> D_CXX0X.
1027 (init_reswords): Ditto.
1028 * parser.c (cp_lexer_get_preprocessor_token): Warn about the use
1029 of C++0x keywords as identifiers.
1031 2007-01-23 Simon Martin <simartin@users.sourceforge.net>
1034 * decl.c (duplicate_decls): Don't reset DECL_INVALID_OVERRIDER_P for
1037 2007-01-23 Ian Lance Taylor <iant@google.com>
1039 * typeck.c (convert_for_assignment): Only warn about a = b = c
1040 when converting to bool.
1042 2007-01-23 Roger Sayle <roger@eyesopen.com>
1044 * call.c (null_ptr_cst_p): Replace use of TREE_CONSTANT_OVERFLOW with
1046 * typeck.c (ignore_overflows): Remove the remaining uses of
1047 TREE_CONSTANT_OVERFLOW.
1049 2007-01-20 Jan Hubicka <jh@suse.cz>
1051 * decl2.c (start_objects, start_static_storage_duration_function):
1052 Do not make the functions uninlinable.
1054 2007-01-17 Ian Lance Taylor <iant@google.com>
1056 * class.c (add_method): Call VEC_reserve_exact rather than passing
1057 a negative size to VEC_reserve.
1059 2007-01-11 Simon Martin <simartin@users.sourceforge.net>
1062 * tree.c (cp_tree_equal): Properly handle MODOP_EXPR trees.
1064 2007-01-10 Mark Mitchell <mark@codesourcery.com>
1067 * decl.c (make_typename_type): If the qualified name is not a
1068 type, issue an error.
1069 * parser.c (cp_parser_elaborated_type_specifier): Fix comment
1072 2007-01-08 Geoffrey Keating <geoffk@apple.com>
1074 * rtti.c: Include target.h.
1075 (emit_support_tinfos): If ! targetm.cxx.library_rtti_comdat (),
1076 don't emit typeinfo for fundamental types as weak.
1077 * Make-lang.in (cp/rtti.o): Update and correct dependencies.
1079 2007-01-08 Richard Guenther <rguenther@suse.de>
1081 * cvt.c (cp_convert_to_pointer): Use build_int_cst_type.
1083 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
1085 * call.c (standard_conversion): Pass flag to
1086 vector_types_convertible_p to disallow emission of note.
1087 * typeck.c (convert_for_assignment): Pass flag to
1088 vector_types_convertible_p to allow emission of note.
1089 (ptr_reasonably_similar): Pass flag to vector_types_convertible_p
1090 to disallow emission of note.
1092 2007-01-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1095 * typeck.c (build_binary_op): Call overflow_warning if
1096 TREE_OVERFLOW_P is true for the result and not for any of the
1099 2007-01-06 Lee Millward <lee.millward@codesourcery.com>
1102 * class.c (add_method): Don't wait until template
1103 instantiation time to complain about duplicate methods.
1105 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1108 * semantics.c (finish_unary_op_expr): Warn only if result
1109 overflowed and operands did not.
1111 2007-01-05 Ian Lance Taylor <iant@google.com>
1113 * typeck.c (build_binary_op): Warn about comparing a non-weak
1116 2007-01-05 Douglas Gregor <doug.gregor@gmail.com>
1118 * pt.c (tsubst): Propagate the need for structural equality checks
1119 when reducing the level of template parameters.
1121 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
1123 * pt.c: Fix a comment typo.
1125 2007-01-02 Ian Lance Taylor <iant@google.com>
1127 * semantics.c (maybe_convert_cond): Optionally warn when using an
1128 assignment as a condition.
1129 * typeck.c (convert_for_assignment): Optionally warn about
1130 assigning the result of an assignment to a bool.
1132 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
1134 * pt.c (canonical_template_parms): Correct typo in comment.
1136 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
1138 * typeck.c (structural_comptypes): Renamed from "comptypes".
1139 (comptypes): Use canonical type information to perform fast type
1140 comparison. When VERIFY_CANONICAL_TYPES, verify that the
1141 canonical type comparison returns the same results as we would see
1142 from the current, structural check. Support COMPARE_STRUCTURAL
1143 when we need structural checks.
1144 * decl.c (typename_compare): Fix comment.
1145 (build_typename_type): TYPENAME_TYPE nodes require structural
1146 equality checks, because they resolve different based on the
1148 (make_unbound_class_template): UNBOUND_CLASS_TEMPLATE nodes
1149 require structural equality checks (for now).
1150 (build_ptrmemfunc_type): Build the canonical pointer to member
1152 (compute_array_index_type): Whenever we build a new index type
1153 to represent the size of an array in a template, we need to mark
1154 this index type as requiring structural equality. This goes for
1155 arrays with value-dependent sizes with the current ABI, or all
1157 * tree.c (cplus_array_hash): New.
1158 (struct cplus_array_info): New.
1159 (cplus_array_compare): New.
1160 (cplus_array_htab): New.
1161 (build_cplus_array_type_1): Use a hash table to cache the array
1162 types we build. Build the canonical array type for each array
1164 (cp_build_qualified_type_real): When building a cv-qualified array
1165 type, use the hash table of array types and build canonical array
1167 (bind_template_template_parm): BOUND_TEMPLATE_TEMPLATE_PARM nodes
1168 use structural equality (for now).
1169 * cp-tree.h (COMPARE_STRUCTURAL): New.
1170 * pt.c (canonical_template_parms): New.
1171 (canonical_type_parameter): New.
1172 (process_template_parm): Find the canonical type parameter.
1173 (lookup_template_class): When we have named the primary template
1174 type, set the canonical type for our template class to the primary
1175 template type. If any of the template arguments need structural
1176 equality checks, the template class needs structural equality
1178 (tsubst): When reducing the level of a template template
1179 parameter, we require structural equality tests for the resulting
1180 parameter because its template parameters have not had their types
1181 canonicalized. When reducing a template type parameter, find the
1182 canonical reduced type parameter.
1183 (any_template_arguments_need_structural_equality_p): New.