- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Based on the discussion on Fortran-discourse, I think, the following code is standard conforming, but the Intel compiler (ifort (IFORT) 2021.1 Beta 20201112) refuses to compile it.
module m
contains
subroutine s1(a)
real, pointer, intent(in) :: a
call s2(a) !<-- Ok with Intel
call random_number(a) !<-- but not this
end subroutine
subroutine s2(x)
real, intent(out) :: x
call random_number(x)
end subroutine
end module
ifort -c ~/bug3.f90
/home/aradi/bug3.f90(6): error #7912: An explicit INTENT(OUT) declaration is expected for this dummy argument. [RANDOM_NUMBER]
call random_number(a) !<-- but not this
-------------------------^
compilation aborted for /home/aradi/bug3.f90 (code 1)
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page