------- Comment #6 from franke dot daniel at gmail dot com  2006-10-07 07:09 
-------
Tobi,
> Actually this is invalid code.  The string lengths in the constructor are
> different, even though they have to be the same.  
please try the testcase in the orignal PR with idental string lengths. It will
crash gfortran as well.

OTOH, 
  a(1,1) = "x"
  a(1,2) = to_string(1.0)
should work even if 
  CHARACTER(len=255), DIMENSION(1,2) :: a
and
  CHARACTER(len=32) FUNCTION to_string(x),
so, why is an equivalent assignment through the array constructor invalid?


-- 


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

Reply via email to