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: Bud Davis <bdavis9659 at sbcglobal dot net>
- To: tobias dot schlueter at physik dot uni-muenchen dot de, gerdy <cgerdy at wanadoo dot fr>
- Cc: fortran at gcc dot gnu dot org
- Date: Sat, 29 Apr 2006 13:16:58 -0700 (PDT)
- Subject: Re: bug in gfortran : achard(34) is buggy
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZskANOxqiVLRwcI2lV5AhkQcxg8tOE30SNa/qWPfHz7J0Vi9XSu017VSdYI5xNwU0qqhs5Ri4VaDxWu5Ad6vWXpwEwd0p0AGQc0BMTikoUXCFwra0ayNW+llDju3yj0RJuAgFjlDn53RKU7vJi6KH4IqLVoK4QondX5X2eik87s= ;
tobi,
your patch compiles, works, and causes no new failures
in the testsuite...applied against a checkout of
'trunk' this morning.
tested i686/gnu/linux.
--bud
--- tobias.schlueter@physik.uni-muenchen.de wrote:
> 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.
>
>
>