This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/55854] ICE on intent(out) dummy argument with unlimited polymorphic component


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

--- Comment #4 from Damian Rouson <damian at rouson dot net> 2013-01-03 18:11:56 UTC ---
Apparently an ICE also occurs if the argument intent is removed but "type" is
replaced by "class."  See below.  Is this fixed by the patch in comment 3?

Damian

$ cat ice_on_class_dummy_with_unlimited.f90 
  implicit none
  type foo
    class(*), allocatable :: bar
  end type
contains
  integer function foobar(this)
    class(foo) :: this
  end function
end

$ gfortran ice_on_class_dummy_with_unlimited.f90 
ice_on_class_dummy_with_unlimited.f90: In function 'MAIN__':
ice_on_class_dummy_with_unlimited.f90:8:0: internal compiler error:
Segmentation fault: 11
   end function
 ^

ice_on_class_dummy_with_unlimited.f90:8:0: internal compiler error: Abort trap:
6
gfortran: internal compiler error: Abort trap: 6 (program f951)
Abort trap: 6

$ gfortran --version
GNU Fortran (MacPorts gcc48 4.8-20121223_0) 4.8.0 20121223 (experimental)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]