This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix to java/3285.
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Subject: [PATCH] Fix to java/3285.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Thu, 12 Jul 2001 14:31:50 -0700
- Reply-to: apbianco at cygnus dot com
This fixes java/3285:
http://gcc.gnu.org/ml/java-prs/2001-q2/msg00098.html
I'm done testing it. I'm going to check this in.
./A
2001-07-11 Alexandre Petit-Bianco <apbianco@redhat.com>
* parse.y (verify_constructor_super): Compare anonymous class ctor
args with `valid_method_invocation_conversion_p.'
Fixes PR java/3285
Index: parse.y
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/parse.y,v
retrieving revision 1.294
diff -u -p -r1.294 parse.y
--- parse.y 2001/07/11 07:33:43 1.294
+++ parse.y 2001/07/12 05:56:02
@@ -8656,7 +8656,9 @@ verify_constructor_super (mdecl)
&& m_arg_type != end_params_node);
arg_type = TREE_CHAIN (arg_type),
m_arg_type = TREE_CHAIN (m_arg_type))
- if (TREE_VALUE (arg_type) != TREE_VALUE (m_arg_type))
+ if (!valid_method_invocation_conversion_p
+ (TREE_VALUE (arg_type),
+ TREE_VALUE (m_arg_type)))
break;
if (arg_type == end_params_node && m_arg_type == end_params_node)