parse.y (fold_constant_for_init): Let VAR_DECL and FIELD_DECL be processed by the...
authorAlexandre Petit-Bianco <apbianco@cygnus.com>
Fri, 19 May 2000 16:17:20 +0000 (16:17 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 19 May 2000 16:17:20 +0000 (16:17 +0000)
2000-04-17  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* parse.y (fold_constant_for_init): Let VAR_DECL and FIELD_DECL be
processed by the method's switch statement.

From-SVN: r34024

gcc/java/ChangeLog
gcc/java/parse.c
gcc/java/parse.y

index 26261b67d9c1d4a4394d1bf52d81cc8173daeab6..a486f92c17e68acd02b5d96fa0e61ca653ea7e43 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-17  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * parse.y (fold_constant_for_init): Let VAR_DECL and FIELD_DECL be
+       processed by the method's switch statement.
+
 2000-05-19  Tom Tromey  <tromey@cygnus.com>
 
        * java-tree.h: Added init state enum.
index e6bf159502b39108a55adeea6b2bc1915c99abe8..e7d5c94c49223e49f5d4d47240440ed97621a294 100644 (file)
@@ -17225,8 +17225,6 @@ fold_constant_for_init (node, context)
 
   if (code == INTEGER_CST || code == REAL_CST)
     return convert (TREE_TYPE (context), node);
-  if (TREE_TYPE (node) != NULL_TREE && code != VAR_DECL && code != FIELD_DECL)
-    return NULL_TREE;
 
   switch (code)
     {
index c62e8410a03da3cf9d3dea7582871f22eb4b27c0..2ac64090b32aa010a8d7c013a50a2240b98523c6 100644 (file)
@@ -14593,8 +14593,6 @@ fold_constant_for_init (node, context)
 
   if (code == INTEGER_CST || code == REAL_CST)
     return convert (TREE_TYPE (context), node);
-  if (TREE_TYPE (node) != NULL_TREE && code != VAR_DECL && code != FIELD_DECL)
-    return NULL_TREE;
 
   switch (code)
     {