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

* [Bug java/12915] Broken String concatenation
  2003-11-05 18:10 [Bug java/12915] New: Broken String concatenation brawer at dandelis dot ch
@ 2003-11-05 18:12 ` brawer at dandelis dot ch
  2003-11-05 18:48 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: brawer at dandelis dot ch @ 2003-11-05 18:12 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


brawer at dandelis dot ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code


------- Additional Comments From brawer at dandelis dot ch  2003-11-05 18:12 -------
Configure options (sorry, I should have added them with the initial submission):

$ ~/src/gcccur/linux-Nov5/bin/gcj -v
Reading specs from
/home/brawer/src/gcccur/linux-Nov5/lib/gcc/i686-pc-linux-gnu/3.4/specs
Reading specs from
/home/brawer/src/gcccur/linux-Nov5/lib/gcc/i686-pc-linux-gnu/3.4/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../gcc/configure --prefix=/home/brawer/src/gcccur/linux-Nov5
--enable-shared --enable-threads=posix --enable-languages=c,c++,java
Thread model: posix
gcc version 3.4 20031105 (experimental)


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

* [Bug java/12915] Broken String concatenation
  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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-05 18:48 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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-05 18:48:28
               date|                            |


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-05 18:48 -------
I can confirm this on the mainline (20031104).


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

* [Bug java/12915] Broken String concatenation
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-11-10  0:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tromey at gcc dot gnu dot org  2003-11-10 00:02 -------
This bug won't die :-(.  We've seen it 3 or 4 times already.
I've got a patch I'm testing, I'll submit it later on.


-- 


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


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

* [Bug java/12915] Broken String concatenation
  2003-11-05 18:10 [Bug java/12915] New: Broken String concatenation brawer at dandelis dot ch
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-11-11 18:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tromey at gcc dot gnu dot org  2003-11-11 18:51 -------
Boosting priority; must-fix for 3.4


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1


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


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

* [Bug java/12915] Broken String concatenation
  2003-11-05 18:10 [Bug java/12915] New: Broken String concatenation brawer at dandelis dot ch
                   ` (3 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-11-11 20:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-11-11 20:11 -------
Subject: Bug 12915

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2003-11-11 20:11:43

Modified files:
	libjava/testsuite: ChangeLog 
Added files:
	libjava/testsuite/libjava.lang: PR12915.java PR12915.out 

Log message:
	For PR java/12915:
	* libjava.lang/PR12915.java: New file.
	* libjava.lang/PR12915.out: New file.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.300&r2=1.301
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.lang/PR12915.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.lang/PR12915.out.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug java/12915] Broken String concatenation
  2003-11-05 18:10 [Bug java/12915] New: Broken String concatenation brawer at dandelis dot ch
                   ` (5 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-11-11 20:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-11-11 20:20 -------
Subject: Bug 12915

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2003-11-11 20:20:08

Modified files:
	gcc/java       : ChangeLog parse.y 

Log message:
	PR java/12915:
	* parse.y (merge_string_cste): Handle case where we have a
	pointer that happens to be zero, not null_pointer_node.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1286&r2=1.1287
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&r1=1.452&r2=1.453



-- 


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


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

* [Bug java/12915] Broken String concatenation
  2003-11-05 18:10 [Bug java/12915] New: Broken String concatenation brawer at dandelis dot ch
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-11-11 20:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tromey at gcc dot gnu dot org  2003-11-11 20:20 -------
Fix checked in


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4


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


^ 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).