mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-23 19:19:48 +08:00
pt.c (tsubst): Propagate the need for structural equality checks when...
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. From-SVN: r120483
This commit is contained in:
parent
a4f77ff7d3
commit
3d761c462a
@ -1,3 +1,8 @@
|
||||
2007-01-05 Douglas Gregor <doug.gregor@gmail.com>
|
||||
|
||||
* pt.c (tsubst): Propagate the need for structural equality checks
|
||||
when reducing the level of template parameters.
|
||||
|
||||
2007-01-03 Kazu Hirata <kazu@codesourcery.com>
|
||||
|
||||
* pt.c: Fix a comment typo.
|
||||
|
@ -7530,6 +7530,8 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl)
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user