You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Section 16.9.73 says that the exitstat argument should have a decimal exponent range of at least nine, and the cmdstat argument should have a decimal exponent range of at least four. But the following program does not emit any compile time error messages:
program bug
implicit none
integer(kind = 1) :: exitstatvar
integer(kind = 1) :: cmdstatvar
character(len=256) :: msg
character(len=:), allocatable :: command
command='echo hello'
call execute_command_line(command, exitstat=exitstatvar, cmdstat=cmdstatvar)
end program
All other compilers I've tried emit error messages for this program.