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/30228] New: ICE: build_int_cst_wide, at tree.c:912 / invalid deallocate


test.f90: In function 'MAIN__':
test.f90:8: internal compiler error: in build_int_cst_wide, at tree.c:912

NAG f95:
Error: test.f90, line 10: Invalid appearance of array element
sunf95:
ERROR: A deallocate object in a DEALLOCATE statement cannot be an array element
or section.
ifort:
Not a proper allocate-object for the DEALLOCATE statement

  TYPE particle_type
     INTEGER, POINTER :: p(:)
  END TYPE particle_type
  TYPE(particle_type), POINTER  :: t(:)
  integer :: i
  i = 1
  allocate(t(1))
  allocate(t(1)%p(0))
  deallocate(t(1)%p(0))
end


-- 
           Summary: ICE: build_int_cst_wide, at tree.c:912 / invalid
                    deallocate
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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