almost a cosmetic bug

Alexandre Petit-Bianco apbianco@cygnus.com
Sun Feb 11 16:04:00 GMT 2001


Olivier writes:

> I have found a strange behavior of gcj on erroneous code which
> should just output a syntax error message.

Thanks. Can you try this patch?

./A

Index: parse.y
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/parse.y,v
retrieving revision 1.251
diff -u -p -r1.251 parse.y
--- parse.y	2001/02/05 18:09:45	1.251
+++ parse.y	2001/02/12 00:02:56
@@ -9363,7 +9366,7 @@ resolve_qualified_expression_name (wfl, 
 						 EXPR_WFL_NODE (qual_wfl));
 
 	      /* Maybe what we're trying to access an inner class. */
-	      if (!field_decl)
+	      if (!field_decl && TREE_CODE (decl) == TYPE_DECL)
 		{
 		  tree ptr, inner_decl;
 



More information about the Java mailing list