[Bug fortran/44207] New: ICE on ALLOCATE statement

boschmann at tp1 dot physik dot uni-siegen dot de gcc-bugzilla@gcc.gnu.org
Thu May 20 08:12:00 GMT 2010


program ice_prog

type::ice_type
  integer,dimension(:),allocatable::list
end type ice_type

type(ice_type)::this
integer::dim,i
allocate(this%list(dim),source=[(i,i=1,dim)])

end program ice_prog


Compiling this with GNU Fortran (GCC) 4.6.0 20100518 (experimental) will cause
a segmentation violation at compile time.

Thanks to Janus for helping me.


-- 
           Summary: ICE on ALLOCATE statement
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: boschmann at tp1 dot physik dot uni-siegen dot de


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



More information about the Gcc-bugs mailing list