OSDN Git Service

* decl.c (grokdeclarator): Return NULL_TREE instead of 0.
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Feb 2006 22:05:40 +0000 (22:05 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Feb 2006 22:05:40 +0000 (22:05 +0000)
* typeck.c (unary_complex_lvalue): Likewise.

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

gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/typeck.c

index 925c332..eac7031 100644 (file)
@@ -1,5 +1,10 @@
 2006-02-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
+       * decl.c (grokdeclarator): Return NULL_TREE instead of 0.
+       * typeck.c (unary_complex_lvalue): Likewise.
+
+2006-02-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
        * lex.c (parse_strconst_pragma): Return error_mark_node instead of
        "(tree)-1" to indicate failure.  Simplify.
        (handle_pragma_interface): Test for error_mark_node instead of
index b00ac7a..61a3545 100644 (file)
@@ -6815,7 +6815,7 @@ grokdeclarator (const cp_declarator *declarator,
      a function declarator.  */
 
   if (funcdef_flag && innermost_code != cdk_function)
-    return 0;
+    return NULL_TREE;
 
   if (((dname && IDENTIFIER_OPNAME_P (dname)) || flags == TYPENAME_FLAG)
       && innermost_code != cdk_function
index df4f6cc..52e7fb6 100644 (file)
@@ -4343,7 +4343,7 @@ unary_complex_lvalue (enum tree_code code, tree arg)
     }
 
   if (code != ADDR_EXPR)
-    return 0;
+    return NULL_TREE;
 
   /* Handle (a = b) used as an "lvalue" for `&'.  */
   if (TREE_CODE (arg) == MODIFY_EXPR
@@ -4384,7 +4384,7 @@ unary_complex_lvalue (enum tree_code code, tree arg)
   }
 
   /* Don't let anything else be handled specially.  */
-  return 0;
+  return NULL_TREE;
 }
 \f
 /* Mark EXP saying that we need to be able to take the