diff options
author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-12 21:36:43 +0000 |
---|---|---|
committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-12 21:36:43 +0000 |
commit | 0412ddc1c81d8ce6bf56e8295c6187ccbf1d51ed (patch) | |
tree | 0c9f51b81c3c7f4bc6dd145397084035217ae890 /gcc/java | |
parent | 85119a7d8cf40c55e67af99b530b865ee3a11bc3 (diff) | |
download | gcc-0412ddc1c81d8ce6bf56e8295c6187ccbf1d51ed.tar.gz |
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)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43973 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/parse.y | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 6e23ae4c1f0..4648f54f0eb 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 8c1806991de..b5cdbdb04ef 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) |