This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Fix handling of canonical types for nested BOUND_TEMPLATE_TEMPLATE_PARMS


Doug Gregor wrote:

> Index: pt.c
> ===================================================================
> --- pt.c        (revision 120438)
> +++ pt.c        (working copy)
> @@ -7530,6 +7530,8 @@ tsubst (tree t, tree args, tsubst_flags_
>                     require structural equality checking to compare
>                     TEMPLATE_TEMPLATE_PARMs. */
>                  SET_TYPE_STRUCTURAL_EQUALITY (r);
> +               else if (TYPE_STRUCTURAL_EQUALITY_P (t))
> +                 SET_TYPE_STRUCTURAL_EQUALITY (r);
>                else
>                  TYPE_CANONICAL (r) = canonical_type_parameter (r);
> 
> 2007-01-04  Douglas Gregor  <doug.gregor@gmail.com>
> 
>     * pt.c (tsubst): Propagate the need for structural equality checks
>     when reducing the level of template parameters.

OK, thanks.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]