This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Valid Code Question


Jerry DeLisle wrote:

Hi All,

I am putting together a test case for pr24584. I noticed that ifort rejects this at the read statement at compile time. gfortran compiles it fine but gives a run time error message on the read. If I take 'var' out of the read ifort accepts this and it runs fine. Similarly it runs OK with gfortran with the patch listed in the pr (attached). However, the second program listed below is also rejected by ifort, but gfortran accepts it and runs it fine. Can someone give me an interpretation of what is and is not valid code in these cases.

The ifort message is correct. io.c (match_io):2256 onwards is missing the exclusion of this that appears earlier (~:2190) for PRINT namelist.


Paul T




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]