This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35702] [4.4, 4.3 regression]: structure character element with subscripts
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Mar 2008 06:34:39 -0000
- Subject: [Bug fortran/35702] [4.4, 4.3 regression]: structure character element with subscripts
- References: <bug-35702-15620@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pault at gcc dot gnu dot org 2008-03-26 06:34 -------
(In reply to comment #1)
> Reddduced testscase
>
> SUBROUTINE CG0028 (TDA1L, N)
TYPE UNSEQ
CHARACTER(2) :: C
END TYPE UNSEQ
Changing to CHARACTER (LEN /= 1) "fixes" the problem.
If I would hazard a guess, something is going wrong in
trans-expr.c(gfc_trans_string_copy), where LEN=1 is treated separately. I'll
assign myself, since it looks to be consistent with the time that I have for
gfortran at present.
Cheers
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-03-26 06:22:59 |2008-03-26 06:34:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35702