Today's gfortran crashes with "-c -O2" for the program below.
It works with today's 4.2.0 and with "-O".

I don't see right away whether this is a middle end or middle-end triggered
front-end problem.

input_cp2k_motion2.f90: In function 'create_neb_section':
input_cp2k_motion2.f90:12: internal compiler error: in fold_convert, at
fold-const.c:2150


MODULE input_cp2k_motion
  IMPLICIT NONE
  interface
    SUBROUTINE keyword_create(variants)
      CHARACTER(len=*), DIMENSION(:), &
      INTENT(in)                   :: variants
    end subroutine
  end interface
CONTAINS
  SUBROUTINE create_neb_section()
    CALL keyword_create(variants=(/"K"/))
  END SUBROUTINE create_neb_section
END MODULE input_cp2k_motion


-- 
           Summary: [regression 4.3] ICE in fold_convert with -O2
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30147

Reply via email to