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/24266] ICE when writing to array of strings that is an elements of a user defined type



------- Comment #1 from yosef at phys dot utb dot edu  2005-10-07 21:36 -------
This bug also seems to cause a segfault when 
writing to a standard array of strings.

program main
  implicit none

  type ice
    character(len=80) :: mess(10)
  end type ice
  character(len=80) :: smess(10)
  type(ice) :: tp

  ! leads to ICE (but only when 2nd write is included)
  write(smess,*) "message"

  write(tp%mess,*) "message"

end program main

$ gfortan bug2.f90
bug2.f90: In function ?MAIN__?:
bug2.f90:11: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 


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


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