[Bug fortran/59023] New: [4.9 regression] ICE in gfc_search_interface with BIND(C)

fxcoudert at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 6 14:21:00 GMT 2013


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

            Bug ID: 59023
           Summary: [4.9 regression] ICE in gfc_search_interface with
                    BIND(C)
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fxcoudert at gcc dot gnu.org

The code below triggers an ICE on current trunk (on x86_64-apple-darwin13, but
I don't suppose it matters much). It works with gfortran 4.8.0 and 4.8.2, as
well as all other versions since 4.3 at least.

!!!!!!!!!!!!!!!!!!!!!
module foo
  type t
    integer hidden
  end type
contains
  subroutine bar
    type(t) :: toto
    interface
      integer function helper() bind(c)
      end function
    end interface
    toto = t(helper())
  end subroutine
end module
!!!!!!!!!!!!!!!!!!!!!


It is somewhat frustrating, because this bug is triggered in my current
(tentative) implementation of IEEE_ARITHMETIC's IEEE_CLASS routine.



More information about the Gcc-bugs mailing list