[Bug java/12915] New: Broken String concatenation
brawer at dandelis dot ch
gcc-bugzilla@gcc.gnu.org
Wed Nov 5 18:10:00 GMT 2003
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) + "");
}
}
More information about the Gcc-bugs
mailing list