OSDN Git Service

* parser.c (cp_parser_simple_type_specifier): Explicitly test
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 May 2004 14:59:00 +0000 (14:59 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 May 2004 14:59:00 +0000 (14:59 +0000)
against NULL_TREE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82486 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 5aa85f3..d06d4d8 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 9ea37ef..f98de0c 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