Bug 86278

Summary: gfortran crashes with internal compiler error: segmentation fault
Product: gcc Reporter: fulvio ciriaco <oivulf>
Component: fortranAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kargls
Priority: P3    
Version: 7.3.0   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:

Description fulvio ciriaco 2018-06-22 07:18:04 UTC
While compiling the lapw code "exciting": http://exciting-code.org/ gfortran crashes with segmentation fault.
The first crashing point is:
fox_m_fsys_format.F90:1289:0:

     if (.not.checkFmt(fmt)) then
 
internal compiler error: Segmentation fault

If I move the definition of checkFmt before its first call compilation proceeds without any issue up to another module, where the same operation is needed.
The code is gpl and available for download at the same site.
Thank you
Fulvio Ciriaco
Comment 1 kargls 2018-06-22 14:48:45 UTC
This issues has been fixed on all active branches.  You either need to build gfortran from sources or wait for the release of gfortran 7.4.