This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

[PATCH] Fix to java/3285.



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)


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