https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66979

            Bug ID: 66979
           Summary: gfortran internal compiler error with malformed FLUSH
                    statement
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: maddenp at colorado dot edu
  Target Milestone: ---

This program has a syntax error (no unit specified) in the flush statement:

% cat p.f90 
program p
  implicit none
  integer::i
  flush (iostat=i)
end program p

% gfortran p.f90 
f951: internal compiler error: Segmentation fault
[...]

% gfortran --version
GNU Fortran (Ubuntu 4.9.2-10ubuntu13) 4.9.2
[...]

Also, using the nightly snapshot I just downloaded (is this too new to be
useful?):

% ~/Desktop/gcc-trunk/bin/gfortran p.f90 
f951: internal compiler error: Segmentation fault
0x5a78e0 ???
        ../sysdeps/x86_64/elf/start.S:113
[...]

% ~/Desktop/gcc-trunk/bin/gfortran --version
GNU Fortran (GCC) 6.0.0 20150723 (experimental) [trunk revision 226084]
[...]

My system:

% uname -a
Linux o 3.19.0-22-generic #22-Ubuntu SMP Tue Jun 16 17:15:15 UTC 2015 x86_64
x86_64 x86_64 GNU/Linux

I hope this is useful.

Reply via email to