This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: almost a cosmetic bug
- To: Java Discuss List <java at gcc dot gnu dot org>
- Subject: Re: almost a cosmetic bug
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Sun, 11 Feb 2001 16:04:50 -0800 (PST)
- References: <20010212092920.A675@zipworld.com.au>
- Reply-To: apbianco at cygnus dot com
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;