Bug 86278 - gfortran crashes with internal compiler error: segmentation fault
Summary: gfortran crashes with internal compiler error: segmentation fault
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 7.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-22 07:18 UTC by fulvio ciriaco
Modified: 2018-06-22 14:48 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 kargl 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.