parent
91a5195111
commit
d3959d607e
|
@ -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>
|
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.
|
||||||
|
|
462
gcc/cp/parse.c
462
gcc/cp/parse.c
File diff suppressed because it is too large
Load Diff
|
@ -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:
|
||||||
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 ($$);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue