pt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a reduced-level template type parameter.

* pt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a
        reduced-level template type parameter.

From-SVN: r18591
This commit is contained in:
Mark Mitchell 1998-03-15 10:57:04 +00:00 committed by Mark Mitchell
parent 4a67c9e985
commit debf0b88ab
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Sun Mar 15 10:54:08 1998 Mark Mitchell <mmitchell@usa.net>
* pt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a
reduced-level template type parameter.
Sun Mar 15 12:26:02 1998 Manfred Hollstein <manfred@s-direktnet.de>
* cp-tree.h (struct lang_decl_flags): Add needs_final_overrider.
@ -54,11 +59,6 @@ Thu Mar 12 08:39:13 1998 Manfred Hollstein <manfred@s-direktnet.de>
* tree.c (layout_vbasetypes): record_align and desired_align are of
type unsigned int; const_size and nonvirtual_const_size likewise.
Wed Mar 11 07:31:08 1998 Mark Mitchell <mmitchell@usa.net>
* pt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a
reduced-level template type parameter.
Wed Mar 11 07:25:20 1998 Mark Mitchell <mmitchell@usa.net>
* parse.y (new_initializer): Make sure all initializers are

View File

@ -3527,6 +3527,7 @@ tsubst (t, args, in_decl)
TYPE_STUB_DECL (r) = TYPE_NAME (r) = TEMPLATE_TYPE_DECL (r);
TYPE_MAIN_VARIANT (r) = r;
TYPE_POINTER_TO (r) = NULL_TREE;
TYPE_REFERENCE_TO (r) = NULL_TREE;
break;
case TEMPLATE_PARM_INDEX: