diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-31 14:59:00 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-31 14:59:00 +0000 |
commit | 382fbf3d4f13a638b07f97d3715738206773b742 (patch) | |
tree | 56467fe80be98eb1ee4f34b8812ddad0d3fc7cc3 | |
parent | e45c9c6afed85f7bf4d58eb9cf2403944d8356bb (diff) | |
download | gcc-382fbf3d4f13a638b07f97d3715738206773b742.tar.gz |
* parser.c (cp_parser_simple_type_specifier): Explicitly test
against NULL_TREE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82486 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/parser.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5aa85f3ad55..d06d4d84eda 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr> + + * parser.c (cp_parser_simple_type_specifier): Explicitly test + against NULL_TREE. + 2004-05-31 Kazu Hirata <kazu@cs.umass.edu> * call.c, class.c, cp-tree.def, decl2.c, name-lookup.c, pt.c, diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 9ea37ef85a4..f98de0c93c9 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -8960,7 +8960,8 @@ cp_parser_simple_type_specifier (cp_parser* parser, cp_parser_flags flags, /*typename_keyword_p=*/false, /*check_dependency_p=*/true, /*type_p=*/false, - /*is_declaration=*/false)); + /*is_declaration=*/false) + != NULL_TREE); /* If we have seen a nested-name-specifier, and the next token is `template', then we are using the template-id production. */ if (parser->scope |