* decl2.c (constructor_name_full): Handle TYPENAME_TYPE.

From-SVN: r18814
This commit is contained in:
Jason Merrill 1998-03-25 02:05:53 +00:00 committed by Jason Merrill
parent fe0714d3f3
commit 97e7cbe4fb
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Mar 25 02:01:02 1998 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (constructor_name_full): Handle TYPENAME_TYPE.
Tue Mar 24 16:12:01 1998 Mark Mitchell <mmitchell@usa.net>
* tree.c (mapcar): When dealing with a DECL, use it's constant

View File

@ -1958,7 +1958,8 @@ constructor_name_full (thing)
tree thing;
{
if (TREE_CODE (thing) == TEMPLATE_TYPE_PARM
|| TREE_CODE (thing) == TEMPLATE_TEMPLATE_PARM)
|| TREE_CODE (thing) == TEMPLATE_TEMPLATE_PARM
|| TREE_CODE (thing) == TYPENAME_TYPE)
thing = TYPE_NAME (thing);
else if (IS_AGGR_TYPE_CODE (TREE_CODE (thing)))
{