decl.c (make_implicit_typename): Only change the type of a TYPENAME_TYPE.

* decl.c (make_implicit_typename): Only change the type of a
	TYPENAME_TYPE.

From-SVN: r18668
This commit is contained in:
Jason Merrill 1998-03-18 12:42:05 +00:00 committed by Jason Merrill
parent ad32129310
commit 74ef3b26f3
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Mar 18 12:41:43 1998 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (make_implicit_typename): Only change the type of a
TYPENAME_TYPE.
Wed Mar 18 10:09:51 1998 Mark Mitchell <mmitchell@usa.net>
* semantics.c: New file, containing routines to perform the

View File

@ -4592,8 +4592,9 @@ make_implicit_typename (context, t)
}
else
retval = make_typename_type (context, DECL_NAME (t));
TREE_TYPE (retval) = TREE_TYPE (t);
if (TREE_CODE (retval) == TYPENAME_TYPE)
TREE_TYPE (retval) = TREE_TYPE (t);
return retval;
}