re PR java/3285 (gcj fails to resolve constructor calls in inner classes)
authorAlexandre Petit-Bianco <apbianco@redhat.com>
Thu, 12 Jul 2001 21:36:43 +0000 (14:36 -0700)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Thu, 12 Jul 2001 21:36:43 +0000 (14:36 -0700)
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

(http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00823.html)

From-SVN: r43973

gcc/java/ChangeLog
gcc/java/parse.y

index 6e23ae4c1f087ad67fdfe596cced87afd1effb5b..4648f54f0eb2a29e4ad3ec679c593b4ab7cdc3d0 100644 (file)
@@ -3,6 +3,12 @@
        * expr.c (expand_load_internal): New function.
        (LOAD_INTERNAL): Use it.
 
+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
+
 2001-07-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
 
        * lang-specs.h: Forbit the use if `-femit-class-file{s}' without
index 8c1806991de2b37cf3d8863cb4fa5bc8a7015474..b5cdbdb04eff58ecc8713aacdb01029ff5b28069 100644 (file)
@@ -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)