This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Non conforming code or gfortran bug ?
- From: Benjamin Réveillé <benjamin dot reveille at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Date: Mon, 5 Dec 2005 21:47:15 +0100
- Subject: Re: Non conforming code or gfortran bug ?
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:content-disposition:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:message-id; b=hDuZ47m4oPzz/966Mt7xwl3biHWbLD8b+7UyKQBSB2gtuW0RIRmjunV1cjOHSVaLBuZmKwlPta+OHGBeJ8zRlhR2UXqVWQeC4aHMfM8IGqd+lWGWa+AiWixmNwgM3MiRcGswJP+nIpd8FFQkhiDKp+yn4qjjDFUVAG4Hdn9FcXI=
Thanks FX and Tobi...
I'll clean our code...
Benjamin
Le Lundi 5 Décembre 2005 17:32, vous avez écrit :
> Quoting Benjamin Réveillé <benjamin.reveille@gmail.com>:
> > Hello all
> >
> > Here is a sample program that illustrates the fact that gfortran
> > can't escape ' and "
> >
> > program escaping
> > implicit none
> > write(*,*) 'Hello \'World\''
> > write(*,*) "Hello 'World'"
> > write(*,*) "Hello \"World\""
> > write(*,*) 'Hello "World"'
> > end program escaping
>
> You might want to use the portable, standard-conforming syntaxes:
> 'Hello ''World''', "Hello 'World'" (give Hello 'World')
> "Hello ""World""", 'Hello "World"' (give Hello "World")
>
> - Tobi
-------------------------------------------------------