Commit 74ef3b26 by Jason Merrill Committed by Jason Merrill

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
parent ad321293
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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment