[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#148529: gnat-3.1: sin/cos is random exception/result generator



>>>>> "Brian" == Brian May <bam@snoopy.apana.org.au> writes:

Brian> raised CONSTRAINT_ERROR : s-imgrea.adb:236

Brian> (which is funny in a way, I don't see where this function is
Brian> getting called)

The package System.Img_Real is used to convert floats to string. You
can look at the expanded GNAT output using:

% gcc-3.1 -gnatds testbug2.adb

Brian> I find it really troubling that commenting out the last two
Brian> lines causes it to crash on the first line, and until it is
Brian> fixed, I consider the compiler to be badly broken.

Well, it looks like it is a i386 specific problem, as it works just
fine on Sparc. I get the same result as the one you give as correct in
your mail.

Brian> ...however both versions of the compiler seem to be buggy, as
Brian> reported in my other bug reports (bug #147145 applies to both
Brian> versions).

Brian> Is the quality of the Gnat compiler likely to improve any time
Brian> in the not-too-distant future, or should I be concentrating my
Brian> efforts for the moment at least on other languages?

The GNAT compiler based on GCC 2.8.1 is a top quality compiler. There
are some glitches in the GCC 3.1 port though.

  Sam
-- 
Samuel Tardieu -- sam@debian.org



-- 
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: