Re: backslash-issues
- From: Bart Vandewoestyne <MyFirstName.MyLastName@xxxxxxxxxx>
- Date: Thu, 30 Jun 2005 18:24:32 +0000 (UTC)
On 2005-06-30, Joost <jv244@xxxxxxxxx> wrote:
> ok, second round which should be F-proof (btw, -std=F doesn't seem to
> get the error message you reported, could you file a bug report, I
> don't have the F standard).
Bug report sent.
> character(len=*), parameter :: something= "\\"
> character(len=*), parameter :: backslash=something(1:1)
Tested, and found to work with the following compilers:
* G95 (GCC 4.0.0 20050129 (experimental) (g95!) Jun 28 2005)
* Fortran Company/NAG F compiler Release 20031017
> If 'warning 18' pops up, it is not quite right, because '\' is not used
> as an escape character, it is just twice a character (there could of
> course be an error that '\' is not in the character set of course).
When I compile this with NAGWare Fortran 95 compiler Release 5.0(253) i get:
test_backslash.f95:3:1: warning: unknown escape sequence: '\350'
and with Intel(R) Fortran Compiler for 32-bit applications, Version 7.0
Build 20021028Z i get:
Warning 18 at (16:test_backslash.f95) : \ used as an escape character is
an extension to standard Fortran 95
Somehow, there is still a problem as not all compilers can handle this...
are we up to round three? :-)
Regards,
Bart
--
"Share what you know. Learn what you don't."
.
- Follow-Ups:
- Re: backslash-issues
- From: Richard E Maine
- Re: backslash-issues
- From: Joost
- Re: backslash-issues
- References:
- backslash-issues
- From: Bart Vandewoestyne
- Re: backslash-issues
- From: Bart Vandewoestyne
- Re: backslash-issues
- From: Joost
- Re: backslash-issues
- From: Arjen Markus
- Re: backslash-issues
- From: Bart Vandewoestyne
- Re: backslash-issues
- From: Joost
- backslash-issues
- Prev by Date: Re: backslash-issues
- Next by Date: Re: How to select a subset of an array in Fortran 90
- Previous by thread: Re: backslash-issues
- Next by thread: Re: backslash-issues
- Index(es):
Relevant Pages
|