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

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
This commit is contained in:
Alexandre Petit-Bianco 2000-05-19 16:17:20 +00:00 committed by Tom Tromey
parent 9429bc4fb5
commit ec5bb3cfb0
3 changed files with 5 additions and 4 deletions

View 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.

View 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)
{

View 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)
{