https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95104
Bug ID: 95104
Summary: Segfault on a legal WAIT statement
Product: gcc
Version: 9.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: longb at cray dot com
Target Milestone: ---
> cat test.f90
program test
wait (10, iostat=ios)
print *, ios
close (10)
end program test
> gfortran test.f90
> ./a.out
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0 0x7f3f0334159f in ???
#1 0x4007f6 in ???
#2 0x4008c7 in ???
#3 0x7f3f0332c349 in ???
#4 0x4006f9 in ???
at ../sysdeps/x86_64/start.S:120
#5 0xffffffffffffffff in ???
Segmentation fault (core dumped)
longb@jupiter:/cray/css/users/longb/spr/jira/22703> gfortran --version
GNU Fortran (GCC) 9.3.0 20200312 (Cray Inc.)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.