aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@redhat.com>2001-07-12 14:36:43 -0700
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2001-07-12 14:36:43 -0700
commit29fcdaaeadf0bad89f10e9c09411683c4c76b0e1 (patch)
tree0c9f51b81c3c7f4bc6dd145397084035217ae890 /gcc
parent448d17f96af7aa65b421518fc3a7e8fe12dc42ad (diff)
downloadgcc-29fcdaaeadf0bad89f10e9c09411683c4c76b0e1.zip
gcc-29fcdaaeadf0bad89f10e9c09411683c4c76b0e1.tar.gz
gcc-29fcdaaeadf0bad89f10e9c09411683c4c76b0e1.tar.bz2
re PR java/3285 (gcj fails to resolve constructor calls in inner classes)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/parse.y4
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 6e23ae4..4648f54 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 8c18069..b5cdbdb 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -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)