[Bug fortran/44442] Useless temporary with RESHAPE

2010-06-09 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2010-06-09 20:57 --- (In reply to comment #2) > This is a known limitation of array constructors handling by gfortran. I was about to ask if this pr is a duplicate. From comment #3, it is; so I am closing it as such. For the record the o

[Bug fortran/44442] Useless temporary with RESHAPE

2010-06-09 Thread dfranke at gcc dot gnu dot org
--- Comment #3 from dfranke at gcc dot gnu dot org 2010-06-09 19:45 --- I believe this is a dupe of PR33341. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2

[Bug fortran/44442] Useless temporary with RESHAPE

2010-06-07 Thread mikael at gcc dot gnu dot org
--- Comment #2 from mikael at gcc dot gnu dot org 2010-06-07 15:59 --- (In reply to comment #1) > Useless temporaries are also emitted for PAD and ORDER optional arguments: > This is a known limitation of array constructors handling by gfortran. For passing to the library function, a t

[Bug fortran/44442] Useless temporary with RESHAPE

2010-06-07 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2010-06-07 13:49 --- Useless temporaries are also emitted for PAD and ORDER optional arguments: program main integer :: i, k, l, m, n real :: e1, e2 real, dimension(4,5) :: b real, dimension(5,4) :: c b = reshape([(i, i=1,20)],