[Bug fortran/31196] [4.2/4.1 only] wrong code generated with RESHAPE/TRANSPOSE
tkoenig at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Mar 25 18:55:00 GMT 2007
------- Comment #6 from tkoenig at gcc dot gnu dot org 2007-03-25 20:55 -------
(In reply to comment #5)
> Thomas, the testcase fails the execution test on i386-darwin at all
> optimization levels in an up-to-date tree.
*sigh*
Can you maybe investigate the following:
- print line1 and line 2 in the testcase (to see what goes wrong)
Also, what's the output of
program main
integer, dimension(2,2) :: data, result
data(1,1) = 1
data(2,1) = 2
data(1,2) = 3
data(2,2) = 4
result = reshape(transpose(data),shape(data))
write (*,'(4I4)') result
END program main
(to check whether reshape_4 is doing the right thing here).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31196
More information about the Gcc-bugs
mailing list