public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31197]  New: wrong code generated with gfortran
@ 2007-03-16 11:26 jv244 at cam dot ac dot uk
  2007-03-16 13:25 ` [Bug fortran/31197] wrong code generated with TRANSPOSE/RESHAPE and strings burnus at gcc dot gnu dot org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-03-16 11:26 UTC (permalink / raw)
  To: gcc-bugs

With a recent gfortran, the following compiles, but generates the wrong
results:

TYPE data
 CHARACTER(LEN=3) :: A
END TYPE
TYPE(data), DIMENSION(10), TARGET :: Z
CHARACTER(LEN=10) :: res
Z(:)%A="123"
write(res,'(10A1)') TRANSPOSE(RESHAPE(Z(:)%A(2:2),(/5,2/)))
IF (res.NE."2222222222") CALL ABORT
END


-- 
           Summary: wrong code generated with gfortran
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2007-08-30 22:13 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 11:26 [Bug fortran/31197] New: wrong code generated with gfortran jv244 at cam dot ac dot uk
2007-03-16 13:25 ` [Bug fortran/31197] wrong code generated with TRANSPOSE/RESHAPE and strings burnus at gcc dot gnu dot org
2007-04-18  9:54 ` [Bug fortran/31197] [4.3/4.2 regression^2] " fxcoudert at gcc dot gnu dot org
2007-04-18 14:56 ` tobi at gcc dot gnu dot org
2007-04-18 18:30 ` tobi at gcc dot gnu dot org
2007-05-04 16:21 ` jvdelisle at gcc dot gnu dot org
2007-05-04 16:29 ` fxcoudert at gcc dot gnu dot org
2007-05-04 16:51 ` jvdelisle at gcc dot gnu dot org
2007-05-04 19:39 ` jvdelisle at gcc dot gnu dot org
2007-05-04 21:29 ` burnus at gcc dot gnu dot org
2007-05-15  6:48 ` elizabeth dot l dot yip at boeing dot com
2007-05-21 19:10 ` elizabeth dot l dot yip at boeing dot com
2007-06-11 12:53 ` pault at gcc dot gnu dot org
2007-06-30  9:16 ` [Bug fortran/31197] [4.2/4.4 regression] " pinskia at gcc dot gnu dot org
2007-07-03 18:33 ` [Bug fortran/31197] [4.2/4.3 " jv244 at cam dot ac dot uk
2007-07-03 18:36 ` tobi at gcc dot gnu dot org
2007-07-04  3:06 ` mmitchel at gcc dot gnu dot org
2007-07-04  8:50 ` pault at gcc dot gnu dot org
2007-07-04  9:09 ` jv244 at cam dot ac dot uk
2007-07-04  9:10 ` jv244 at cam dot ac dot uk
2007-07-04  9:27 ` pault at gcc dot gnu dot org
2007-07-04 10:05 ` jv244 at cam dot ac dot uk
2007-07-04 10:51 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2007-07-04 11:32 ` pault at gcc dot gnu dot org
2007-08-30 22:11 ` pault at gcc dot gnu dot org
2007-08-30 22:13 ` pault at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).