This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29267] ICE in operand_subword_force, at emit-rtl.c:1353
- From: "franke dot daniel at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2006 07:09:08 -0000
- Subject: [Bug fortran/29267] ICE in operand_subword_force, at emit-rtl.c:1353
- References: <bug-29267-6552@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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