--- Comment #5 from brtnfld at hdfgroup dot org 2008-07-09 14:24 ---
The behavior conforms to the standard:
For the C_LOC(X) function X must be interpretable and interpretable for a
character the standard says:
15.2.1 Interoperability of intrinsic types
A Fortran intrinsic
4 type wit
--- Comment #4 from brtnfld at hdfgroup dot org 2008-07-08 18:40 ---
Subject: Re: C_LOC and characters greater then one in
length.
I reported it to intel , their flag (-e03) used for checking for
non-standard Fortran 2003 features missed it.
pgi compiler with -Mstandard also missed i
--- Comment #3 from kargl at gcc dot gnu dot org 2008-07-08 18:27 ---
(In reply to comment #2)
> Subject: Re: C_LOC and characters greater then one in
> length.
>
> My mistake, I did not see that in the standard.
>
> It still would be nice however to have the non-standard feature for
--- Comment #2 from brtnfld at hdfgroup dot org 2008-07-08 17:43 ---
Subject: Re: C_LOC and characters greater then one in
length.
My mistake, I did not see that in the standard.
It still would be nice however to have the non-standard feature for
characters of LEN > 1.
burnus at gc
--- Comment #1 from burnus at gcc dot gnu dot org 2008-07-07 22:41 ---
> A = c_loc(arg1)
>1
> Error: CHARACTER argument 'arg1' to 'c_loc' at (1) must have a length of 1
>
> I'm not sure where this restriction comes from (it's not part of the
> standard).
One could argue