Integers and standard
- From: Alfredo Buttari <alfredo.buttari@xxxxxxxxx>
- Date: Mon, 28 Jul 2008 11:15:49 -0700 (PDT)
Hi all,
I have a quick question. Is the following piece legal according to
fortran 77 and/or 90/95 standard?
integer i
data i/z'80000000'/
As far as my understanding goes, it is not but many compilers (intel,
xlf, gfortran 4.2) don't complain about it while others do (g77 gives
a warning, gfortran 4.3 an error).
The problem is that I need to declare this value in a Fortran
interface for a C package that uses the value internally (and, as you
know, this is a legal value in C). Do you know any way to work around
this?
Thanks a lot
Alfredo
.
- Follow-Ups:
- Re: Integers and standard
- From: James Van Buskirk
- Re: Integers and standard
- From: Alfredo Buttari
- Re: Integers and standard
- From: Richard Maine
- Re: Integers and standard
- From: dpb
- Re: Integers and standard
- From: Steven G. Kargl
- Re: Integers and standard
- Prev by Date: Re: Performance for standard operations in many subroutine calls
- Next by Date: Vectorized real symmetric dense matrix diagonalization subroutine
- Previous by thread: removing leading white space?
- Next by thread: Re: Integers and standard
- Index(es):