This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/13733] [tree-ssa] internal compiler error: in check_pointer_types_r, at gimplify.c:3460


------- Additional Comments From jsturm at gcc dot gnu dot org  2004-01-21 01:02 -------
Please disregard my last post.  The gimplifier gets this right after all, and
the Java frontend is wrong, even on mainline.

This isn't really a tree-ssa bug, it's a latent gcj bug exposed by tree-ssa. 
According to JLS 15.26, the result of an assignment operator is the LHS after
assignment, not the RHS.

The following class does not compile with javac or jikes, although it is
(incorrectly) compiled by all versions of gcj I tried:

class Bug2 {
    String str;
    Object obj;

    void reveal(String arg) {
        str = (obj = arg);
    }
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13733


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]