From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050921 Red Hat/1.0.7-1.4.1 Firefox/1.0.7
Description of problem:
On my small test problem (I will attach it) I get:
bug.f90: In function 'MAIN__':
bug.f90:19: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.get the file bug.f90 (attached)
2.run "gfortran bug.f90"
Actual Results: See the Description
Expected Results: I should have gotten some sort of compilation error, for example:
fortcom: Error: bug.f90, line 24: A CHARACTER data type is required in this context. [ACCESS]
compilation aborted for bug.f90 (code 1)
Just in case the attachment doesn't work, here's the code:
CHARACTER(LEN=80) :: fln
CHARACTER(LEN=40) :: stat, frm, posi
CHARACTER :: type
INTEGER :: iunit, fmode, format, errcod
LOGICAL :: filexs
fln = '/home/steve/models/225a/gamsmatr.scr'
iunit = 17
WRITE (6,*) 'opening file ', TRIM(fln)
IF (.NOT. filexs) THEN
WRITE (6, *) 'Failed EXIST inquiry on file '//FLN
stat = 'OLD'
posi = 'REWIND'
type = 'R'
frm = 'UNFORMATTED'
991 WRITE (6, *) 'File open error: ', errcod
END PROGRAM bug
Created attachment 121367 [details]
Fortran90 source to reproduce the bug
Fixed upstream http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107667
(also on trunk and gcc-4_1-branch). Next gcc4 rpm set will contain the fix.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.