Re: backslash-issues



Bart Vandewoestyne wrote:
>
> True, and it has even more problems... it doesn't work at all under F.
> If i try to compile the following with my F-compiler:
>
> character(len=1), parameter :: backslash = "\\"
>
> Error: test_backslash.f95, line 13: Character parameter BACKSLASH must
> have declared length *
>
> when I compile using my ifc compiler i get:
>
> Warning 18 at (13:test_backslash.f95) : \ used as an escape character is an extension to standard Fortran 95

CVF, as in Compaq Visual Fortran, has no problem with it, the problem is
with the *substandard* (as in quality) compilers you're using. i.e.

character(len=1), parameter :: backslash = "\\"
print*, backslash
end

compiles and runs w/o whimper, Furthermore, stripped of ghastly
committee decorations it also runs w/professional grade PC compilers for
about 20 years now.

.



Relevant Pages

  • Re: gfortran and OpenMP
    ... On 9 Nov, 16:44, Bart Vandewoestyne ... trying to compile and run the following program: ... !$omp end parallel do ... looks like a bug in 4.3 ...
    (comp.lang.fortran)
  • Re: F2003 and compilers...
    ... Bart Vandewoestyne wrote: ... > While I was checking out the g95 page today, ... but I cannot get any binary output? ... inability to compile a code does not mean it is not proper F2003. ...
    (comp.lang.fortran)
  • Re: Which compiler is right?
    ... In article, Bart Vandewoestyne wrote: ... it by the version which is currently online. ... It doesn't compile with the compilers I mentioned. ... Regards, ...
    (comp.lang.fortran)