From 6661a85ff7ed08bc32ee95993e36d7d0219f5d99 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 31 May 2004 16:59:00 +0200 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/parser.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * parser.c (cp_parser_simple_type_specifier): Explicitly test + against NULL_TREE. + 2004-05-31 Kazu Hirata * 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 -- 2.30.2