This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: almost a cosmetic bug



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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]