This is the mail archive of the gcc-patches@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]

[PATCH, gfortran] Fix initialization of arrays of strings


The following fails with a segmentation faults.

   module fmvals
   integer :: i
   character(6) :: namest(0:50) = (/ ('main  ' , i = 0, 50) /)
   end module

This may be a PR, but I could find one.  If this rings
a bell with anyone, please let me know.

2005-07-10  Steven G. Kargl  <kargls@comcast.net>

	* decl.c (add_init_expr_to_sym):  Fix initialization of an array of strings.

-- 
Steve

Attachment: char_initialization.f90
Description: Text document

Attachment: decl.c.diff
Description: Text document


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