- Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Labels
Description
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.