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: Tobias dot Schlueter at Physik dot Uni-Muenchen dot DE
- To: Benjamin Réveillé <benjamin dot reveille at gmail dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 5 Dec 2005 17:32:21 +0100
- Subject: Re: Non conforming code or gfortran bug ?
- References: <9e363c0d0512050805q5d3c5008y@mail.gmail.com>
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