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/70350] [5 Regression] ICE with -fcheck=all and array initialization


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

max <maximilien.levesque at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maximilien.levesque at gmail dot c
                   |                            |om

--- Comment #6 from max <maximilien.levesque at gmail dot com> ---
I confirm on 5.3.1 20160413

A very small contribution (In reply to Lorenz HÃdepohl from comment #5) to make
the example self-sufficient:


! compile with
! gfortran -fcheck=all
program m
   type subtype
      real, allocatable :: array(:)
   end type subtype
   type object
      type(subtype), allocatable :: array_of_subtypes(:,:,:)
   end type object
contains
   subroutine allocate_objects(this)
     class(object), intent(inout) :: this
     allocate(this%array_of_subtypes(1,2,3))
   end subroutine
end program m

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