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

            Bug ID: 92114
           Summary: equivalence in module causes ICE
           Product: gcc
           Version: 7.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: urbanjost at comcast dot net
  Target Milestone: ---

module minimal
implicit none
logical,private :: help,h,version,v
equivalence (help,h),(version,v)
end module minimal

 GNU Fortran (GCC) 7.4.0
 gfortran bug.f90
 f951: internal compiler error: Segmentation fault

 might be similar to bug 77381, but error message is different.

 The only restriction in the standard that seemed to bear on this is

  C593 (R567) The name of an equivalence-object shall not be a name made
accessible by use association.

 but all the variables are PRIVATE. It failed with all variable types I tried,
not just LOGICAL.

Reply via email to