summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2004-05-31 16:59:00 +0200
committerEric Botcazou <ebotcazou@gcc.gnu.org>2004-05-31 14:59:00 +0000
commit6661a85ff7ed08bc32ee95993e36d7d0219f5d99 (patch)
tree56467fe80be98eb1ee4f34b8812ddad0d3fc7cc3
parent1aae9cdcf2517fb75451442eb9e93f77db09cd7a (diff)
downloadgcc-6661a85ff7ed08bc32ee95993e36d7d0219f5d99.tar.gz
parser.c (cp_parser_simple_type_specifier): Explicitly test against NULL_TREE.
* parser.c (cp_parser_simple_type_specifier): Explicitly test against NULL_TREE. From-SVN: r82486
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parser.c3
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