I downloaded and started new fortran application in CB 17.12 and put this simple code into main.f95
program main
integer i
OPEN (3,file='test.dat')
READ (3,*) i
CLOSE (3)
write(*,*) ' i=',i
end
Then, successfully compilied and builded with gfortran as compiler, and it crashes with
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
C:\Program Files (x86)\CodeBlocks\MinGW\bin> .\gfortran.exe --version
GNU Fortran (tdm-1) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING