From c6a25d3a3dff96bf920d34b31faba6fdb5ff9323 Mon Sep 17 00:00:00 2001 From: Ralph Loader Date: Wed, 3 Dec 2003 07:04:19 +0000 Subject: re PR java/12374 (Segfault on "".x) 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. From-SVN: r74217 --- libjava/testsuite/libjava.compile/PR12374.java | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/PR12374.java (limited to 'libjava/testsuite/libjava.compile') diff --git a/libjava/testsuite/libjava.compile/PR12374.java b/libjava/testsuite/libjava.compile/PR12374.java new file mode 100644 index 0000000..19e8193 --- /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) + { + } +} -- cgit v1.1