diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-16 17:44:49 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-16 17:44:49 +0000 |
commit | 5bef586fae39801ceadfacf69e05a02c7dbe9859 (patch) | |
tree | 852dac307569df00b7d7a702e65ebe33f3fded08 | |
parent | 4f6292488862c71fd71ee1ad7a7b7e3ba9bded5a (diff) | |
download | gcc-5bef586fae39801ceadfacf69e05a02c7dbe9859.tar.gz |
* parse.y (create_interface): Remove bogus test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24348 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/parse.c | 5 | ||||
-rw-r--r-- | gcc/java/parse.y | 5 |
3 files changed, 4 insertions, 10 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index e81caeb411c..72e1535e9bb 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +Wed Dec 16 16:18:59 1998 Per Bothner <bothner@cygnus.com> + + * parse.y (create_interface): Remove bogus test. + Wed Dec 16 14:42:19 1998 Per Bothner <bothner@cygnus.com> * jcf-parse.c (get_constant): Set TREE_TYPE for string constants. diff --git a/gcc/java/parse.c b/gcc/java/parse.c index 1d0cca7d028..579208ef914 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -5525,11 +5525,6 @@ create_interface (flags, id, super) (MODIFIER_WFL (ABSTRACT_TK), "Redundant use of `abstract' modifier. Interface `%s' is implicitely " "abstract", IDENTIFIER_POINTER (raw_name)); - if (flags & ACC_PUBLIC && flags & ACC_ABSTRACT) - parse_error_context - (MODIFIER_WFL (ABSTRACT_TK), - "Can't specify both `public' and `abstract' modifiers in the " - "definition of interface `%s'", IDENTIFIER_POINTER (raw_name)); /* Create a new decl if DECL is NULL, otherwise fix it */ decl = maybe_create_class_interface_decl (decl, q_name, id); diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 3f26eb09417..ea824c1169f 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -2887,11 +2887,6 @@ create_interface (flags, id, super) (MODIFIER_WFL (ABSTRACT_TK), "Redundant use of `abstract' modifier. Interface `%s' is implicitely " "abstract", IDENTIFIER_POINTER (raw_name)); - if (flags & ACC_PUBLIC && flags & ACC_ABSTRACT) - parse_error_context - (MODIFIER_WFL (ABSTRACT_TK), - "Can't specify both `public' and `abstract' modifiers in the " - "definition of interface `%s'", IDENTIFIER_POINTER (raw_name)); /* Create a new decl if DECL is NULL, otherwise fix it */ decl = maybe_create_class_interface_decl (decl, q_name, id); |