Community
Participate
Working Groups
I don't know whether Fortran 2008 features are already on the agenda, but here is one small and handy feature that is not yet recognized. open(file='whatever.txt', newunit=iounit, action='read') gives the error message that would be correct pre-Fortran-2008: 'mod_params.f90 contains syntax errors and may not be refactored correctly.' The new specifier newunit=iounit (here with integer :: iounit declaration) can be used instead of unit=iounit. It assigns a unique negative number to the unit, which (being negative) can't conflict with system-reserved unit numbers (like standard out) or other user-supplied unit numbers, since all those can only be positive.
I second this : newunit is definitelly a small but handy feature supported by gfortran and ifort for some time now. Photran 8.03 / Windows 64.
I am upgrading the importance to major (P2), because this seriously limits the usability for anybody, and should be easy to fix. Also, updating Version number, because Photran 8.05 is still affected. The newunit specifier is supported by gfortran since version 4.5 (released April 2010), and by Intel Fortran since verion 12.0 (released November 2010). Probably also by all others.
Hi all, I would also like to see this fix. Is there any way to speed this up?
Thanks for the feedback. This is fixed for Photran 8.2 (Luna). Commit cffda72e06e7c762170dc1bf465b8788d1ca4e47