This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java 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/31622] Segment violation in the “toString” method on a mathematical expression



------- Comment #3 from eduardo dot iniesta at aquiline dot es  2007-04-19 17:39 -------
(In reply to comment #1)

Thanks...

The exact version is:

$ gcj --version
gcj (GCC) 4.3.0 20061212 (experimental)
...

> Are you sure you are using gcj 4.3?
> 
> I see a SEGV with 4.1 and 4.2.  But with 4.3 I see an error:
> 
> opsy. gcj -C Fail.java 
> Fail.java:5: error: Cannot invoke toString() on the primitive type long
>         r=(a-b).toString();
>           ^^^^^^^^^^^^^^^^
> 1 problem (1 error)
> 
> (Note that, in all likelihood, we won't fix front end bugs of this nature
> in 4.1 or 4.2.)
> 

(In reply to comment #1)
> Are you sure you are using gcj 4.3?
> 
> I see a SEGV with 4.1 and 4.2.  But with 4.3 I see an error:
> 
> opsy. gcj -C Fail.java 
> Fail.java:5: error: Cannot invoke toString() on the primitive type long
>         r=(a-b).toString();
>           ^^^^^^^^^^^^^^^^
> 1 problem (1 error)
> 
> (Note that, in all likelihood, we won't fix front end bugs of this nature
> in 4.1 or 4.2.)
> 


-- 


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


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