Commit d3959d60 by Jason Merrill Committed by Jason Merrill

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

From-SVN: r17476
parent 91a51951
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> Sat Jan 24 12:13:54 1998 Jason Merrill <jason@yorick.cygnus.com>
* error.c (dump_decl): Fix type default template args. * error.c (dump_decl): Fix type default template args.
......
...@@ -3293,7 +3293,11 @@ typename_sub0: ...@@ -3293,7 +3293,11 @@ typename_sub0:
else if (TREE_CODE ($2) == IDENTIFIER_NODE) else if (TREE_CODE ($2) == IDENTIFIER_NODE)
cp_error ("`%T' is not a class or namespace", $2); cp_error ("`%T' is not a class or namespace", $2);
else else
$$ = $2; {
$$ = $2;
if (TREE_CODE ($$) == TYPE_DECL)
$$ = TREE_TYPE ($$);
}
} }
; ;
...@@ -3310,7 +3314,11 @@ typename_sub1: ...@@ -3310,7 +3314,11 @@ typename_sub1:
else if (TREE_CODE ($2) == IDENTIFIER_NODE) else if (TREE_CODE ($2) == IDENTIFIER_NODE)
cp_error ("`%T' is not a class or namespace", $2); cp_error ("`%T' is not a class or namespace", $2);
else else
$$ = $2; {
$$ = $2;
if (TREE_CODE ($$) == TYPE_DECL)
$$ = TREE_TYPE ($$);
}
} }
; ;
......
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