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/14231] New: Incorrect interface method called when compiling against .class files


$ mipsel-linux-gcj --version
mipsel-linux-gcj (GCC) 3.4.0 20040214 (prerelease)

Configured as:

../gcccvsw/gcc/configure  --host=i686-pc-linux-gnu --target=mipsel-linux
--enable-languages=c,c++,java
--with-headers=/home/mipsel-linux/mipsel-linux/include --with-arch=mips32
--with-float=soft --prefix=/home/testcvs

With the attached test case method calls via an interface call the wrong method
when the code is compiled against class files generated bu Sun's javac program.

When the code is compiled against only source file the correct methods are called.

Here is the output of my test program:

bash-2.04# good
m8(String)
m6(int)

bash-2.04# bad
m7(int)
m5(void)

I suspect that the same problem exists on i686-linux target as well, but I don't
have that built and thus cannot test it.

-- 
           Summary: Incorrect interface method called when compiling against
                    .class files
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: critical
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: daney at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux
  GCC host triplet: i686-pc-linux
GCC target triplet: mipsel-linux


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


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