parser.c (cp_parser_simple_type_specifier): Explicitly test against NULL_TREE.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Mon, 31 May 2004 14:59:00 +0000 (16:59 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 31 May 2004 14:59:00 +0000 (14:59 +0000)
* parser.c (cp_parser_simple_type_specifier): Explicitly test
against NULL_TREE.

From-SVN: r82486

gcc/cp/ChangeLog
gcc/cp/parser.c

index 5aa85f3ad55841f39456b91574e0f9016c0c7702..d06d4d84eda638db7b5aa5c987742bf5569f6762 100644 (file)
@@ -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,
index 9ea37ef85a481779f2eab4035c25504d86ac24ed..f98de0c93c92b24cd387b1e1ce23bedd7d71b2ba 100644 (file)
@@ -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