* parse.y (typename_sub*): Fix std::.

From-SVN: r17476
This commit is contained in:
Jason Merrill 1998-01-25 12:54:44 +00:00 committed by Jason Merrill
parent 91a5195111
commit d3959d607e
3 changed files with 251 additions and 231 deletions

View File

@ -1,3 +1,7 @@
Sun Jan 25 03:30:00 1998 Jason Merrill <jason@yorick.cygnus.com>
* parse.y (typename_sub*): Fix std::.
Sat Jan 24 12:13:54 1998 Jason Merrill <jason@yorick.cygnus.com>
* error.c (dump_decl): Fix type default template args.

File diff suppressed because it is too large Load Diff

View File

@ -3293,7 +3293,11 @@ typename_sub0:
else if (TREE_CODE ($2) == IDENTIFIER_NODE)
cp_error ("`%T' is not a class or namespace", $2);
else
$$ = $2;
{
$$ = $2;
if (TREE_CODE ($$) == TYPE_DECL)
$$ = TREE_TYPE ($$);
}
}
;
@ -3310,7 +3314,11 @@ typename_sub1:
else if (TREE_CODE ($2) == IDENTIFIER_NODE)
cp_error ("`%T' is not a class or namespace", $2);
else
$$ = $2;
{
$$ = $2;
if (TREE_CODE ($$) == TYPE_DECL)
$$ = TREE_TYPE ($$);
}
}
;