This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: bug in gfortran : achard(34) is buggy
- From: tobias dot schlueter at physik dot uni-muenchen dot de
- To: gerdy <cgerdy at wanadoo dot fr>
- Cc: fortran at gcc dot gnu dot org
- Date: Sat, 29 Apr 2006 15:46:11 +0200
- Subject: Re: bug in gfortran : achard(34) is buggy
- References: <000301c66b91$db15d970$b31dcd56@nom69pxtzsc526>
Quoting gerdy <cgerdy@wanadoo.fr>:
I have found a bug in gfortran Windows and Linux version :
When you use achard(34) you must obtain the ASCII character of number
34 : " the double quot
you obtain ' the sinble quot.
Indeed, the patch below should fix this.
You must verify all the values of achard() and iachard()
I did, and this seems to have been the only error.
Can you quote my Home page as an editor for Fortran between others?.
How about adding another section under 'Using gfortran" in the wiki?
<http://gcc.gnu.org/wiki/GFortran>
I would commit the patch as obvious, but unfortunately, since I
upgraded gmp and mpfr I can't link gcc anymore, so I'll have to defer
to someone else for the obligatory testing.
- Tobi
2006-04-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* simplify.c (ascii_table): Fix wrong entry.
Index: simplify.c
===================================================================
--- simplify.c (revision 113297)
+++ simplify.c (working copy)
@@ -72,7 +72,7 @@ static int ascii_table[256] = {
'\b', '\t', '\n', '\v', '\0', '\r', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
- ' ', '!', '\'', '#', '$', '%', '&', '\'',
+ ' ', '!', '"', '#', '$', '%', '&', '\'',
'(', ')', '*', '+', ',', '-', '.', '/',
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', ':', ';', '<', '=', '>', '?',
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.