From b7805411a0e4a53b1a2834ad4570a82aa74ace27 Mon Sep 17 00:00:00 2001 From: Alexandre Petit-Bianco Date: Mon, 1 May 2000 21:49:51 -0700 Subject: [PATCH] re GNATS gcj/195: (gcj fail on code to implement an inner interface.) (This trying to counter the effect of the PR 195 check in -- this should be right now.) From-SVN: r33602 --- gcc/java/parse.c | 3 ++- gcc/java/parse.y | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/java/parse.c b/gcc/java/parse.c index a01cb65f118..42d46998521 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -9996,7 +9996,8 @@ java_complete_expand_methods (class_decl) for (decl = first_decl; decl; decl = TREE_CHAIN (decl)) { /* Skip abstract or native methods */ - if (METHOD_ABSTRACT (decl) || METHOD_NATIVE (decl)) + if (METHOD_ABSTRACT (decl) || METHOD_NATIVE (decl) + || DECL_CONSTRUCTOR_P (decl) || DECL_CLINIT_P (decl)) continue; java_complete_expand_method (decl); } diff --git a/gcc/java/parse.y b/gcc/java/parse.y index f56daab8a95..427ba7544a2 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -7298,7 +7298,8 @@ java_complete_expand_methods (class_decl) for (decl = first_decl; decl; decl = TREE_CHAIN (decl)) { /* Skip abstract or native methods */ - if (METHOD_ABSTRACT (decl) || METHOD_NATIVE (decl)) + if (METHOD_ABSTRACT (decl) || METHOD_NATIVE (decl) + || DECL_CONSTRUCTOR_P (decl) || DECL_CLINIT_P (decl)) continue; java_complete_expand_method (decl); } -- 2.30.2