From: Eric Botcazou Date: Mon, 31 May 2004 14:59:00 +0000 (+0200) Subject: parser.c (cp_parser_simple_type_specifier): Explicitly test against NULL_TREE. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6661a85ff7ed08bc32ee95993e36d7d0219f5d99;p=gcc.git 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 --- 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