| View previous topic :: View next topic |
| Author |
Message |
Breitenfeld
Joined: 07 Jul 2008 Posts: 9
|
Posted: Mon Feb 18, 2013 9:11 am Post subject: pgf90: FILE INQUIRE and SIZE option does not work |
|
|
OS: 2.6.18-308.13.1.el5PAE #1 SMP i686 i686 i386 GNU/Linux
pgif90 versions: 12.5-0, 11.9-0
Program main
integer :: file_sz
OPEN(UNIT=10,FILE='test.in')
INQUIRE(UNIT=10, SIZE=file_sz)
print*,file_sz
CLOSE(UNIT=10)
END
ls:
-rw-r--r-- 1 5 Feb 18 09:49 test.in
This program always returns a large negative number for file_sz (it should be 5). Is SIZE= not implemented? Same program (and test.in file) using gfortran and ifort works correctly. |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Mon Feb 18, 2013 2:06 pm Post subject: |
|
|
Hi Breitenfeld,
Thanks for the report. I've written a problem report (TPR#19140) and sent it to our engineers for further investigation.
- Mat |
|
| Back to top |
|
 |
Breitenfeld
Joined: 07 Jul 2008 Posts: 9
|
Posted: Wed Mar 20, 2013 10:21 pm Post subject: |
|
|
Could you tell me the status of this, was it a bug? was it reproducible?
Thanks |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Fri Mar 22, 2013 12:03 pm Post subject: |
|
|
Hi Breitenfeld,
I just confirmed that TPR#19140 was fixed in the 13.3 release.
| Code: | % pgfortran -V13.2 test.f90
% a.out
1670019224
% a.out
-521048312
% pgfortran -V13.3 test.f90
% a.out
0
|
Thanks again for reporting this issue.
- Mat |
|
| Back to top |
|
 |
|