public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/12915] New: Broken String concatenation
@ 2003-11-05 18:10 brawer at dandelis dot ch
  2003-11-05 18:12 ` [Bug java/12915] " brawer at dandelis dot ch
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: brawer at dandelis dot ch @ 2003-11-05 18:10 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Broken String concatenation
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: brawer at dandelis dot ch
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-linux-gnu
  GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu

The following code prints "null" when compiled with Sun J2SE 1.4.1_01.
However, the output is "0" when compiled with gcc version 3.4, cvs head branch
of 20031105.

public class X {
  public static void main(String[] args)
  {
    System.out.println(((String) null) + "");
  }
}


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-11-11 20:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-05 18:10 [Bug java/12915] New: Broken String concatenation brawer at dandelis dot ch
2003-11-05 18:12 ` [Bug java/12915] " brawer at dandelis dot ch
2003-11-05 18:48 ` pinskia at gcc dot gnu dot org
2003-11-10  0:02 ` tromey at gcc dot gnu dot org
2003-11-11 18:51 ` tromey at gcc dot gnu dot org
2003-11-11 20:11 ` cvs-commit at gcc dot gnu dot org
2003-11-11 20:20 ` tromey at gcc dot gnu dot org
2003-11-11 20:20 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).