[Bug fortran/68196] [4.9/5 Regression] ICE on function result with procedure pointer component

damian at sourceryinstitute dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 15 07:03:00 GMT 2015


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

--- Comment #8 from Damian Rouson <damian at sourceryinstitute dot org> ---
I believe the example below is related to this bug report:

$ cat alloc-ptr-comp-func-result.f90 
  type  Bug
    real, allocatable :: scalar
    procedure(buggerInterface),pointer :: bugger 
  end type 
  interface
    function buggerInterface(A) result(C)
      import Bug
      class(Bug) A
      type(Bug)  C
    end function 
  end interface
end 

$ gfortran alloc-ptr-comp-func-result.f90 
gfortran: internal compiler error: Segmentation fault (program f951)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ gfortran --version
GNU Fortran (GCC) 6.0.0 20151214 (experimental)


More information about the Gcc-bugs mailing list