diff options
| author | ralph <ralph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-03 07:04:19 +0000 |
|---|---|---|
| committer | ralph <ralph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-03 07:04:19 +0000 |
| commit | e74dbc7e66993ac23f637a963bd88623a766af82 (patch) | |
| tree | d90afc44d1b9613a742916e7826c050bbd0cfd98 /libjava/testsuite/libjava.compile | |
| parent | 90b076ea15588c3ee939f4f5938ca3cc43c513b4 (diff) | |
| download | ppe42-gcc-e74dbc7e66993ac23f637a963bd88623a766af82.tar.gz ppe42-gcc-e74dbc7e66993ac23f637a963bd88623a766af82.zip | |
PR java/12374:
* parse.y (qualify_ambiguous_name): Remove lots of broken
field access processing - there's no need to do that here,
because we have resolve_field_access. Remove
RESOLVE_EXPRESSION_NAME_P as it isn't used anywhere else.
* java-tree.h: Remove RESOLVE_EXPRESSION_NAME_P as it isn't
used.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74217 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile')
| -rw-r--r-- | libjava/testsuite/libjava.compile/PR12374.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR12374.java b/libjava/testsuite/libjava.compile/PR12374.java new file mode 100644 index 00000000000..19e81935d59 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR12374.java @@ -0,0 +1,27 @@ +public class PR12374 { + + /* We weren't coping with field refs on a string constant... */ + + Object Foo() + { + return "".CASE_INSENSITIVE_ORDER; + } + + /* Special casing access to array.length while analysing syntax is + evil. Especially when it means we can't cope with a type + called length. */ + + class length + { + static final int i = 2; + } + + int bar() + { + return length.i; + } + + public static void main (String[] argv) + { + } +} |

