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
This commit is contained in:
parent
a0506b54dd
commit
c6a25d3a3d
5 changed files with 73 additions and 196 deletions
27
libjava/testsuite/libjava.compile/PR12374.java
Normal file
27
libjava/testsuite/libjava.compile/PR12374.java
Normal file
|
@ -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)
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue