Bug 29453 - [g77 support] chmod intrinsic function not implemented in gfortran
Summary: [g77 support] chmod intrinsic function not implemented in gfortran
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: unknown
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-13 10:01 UTC by tobias.burnus
Modified: 2006-10-22 07:18 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tobias.burnus 2006-10-13 10:01:30 UTC
I don't know whether anyone needs this, but g77 has according to
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/g77.pdf
this intrinsic function whereas gfortran only provides the subroutine.

      program chmod_test
      implicit none
      intrinsic chmod
      integer :: status
      call chmod('test.dat','u=rwx',status)
      print *, 'Status: ', status
      print *, 'Status: ', chmod('test.dat','u=rwx')
      end program chmod_test
Comment 1 Francois-Xavier Coudert 2006-10-22 07:18:40 UTC
No, it's implemented, it's only that the subroutine and function with the same name cannot be called in the same scoping unit.