https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71961

Pat Haugen <pthaugen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2016-07-21 0:00

--- Comment #12 from Pat Haugen <pthaugen at gcc dot gnu.org> ---
Just for completeness sake, this is what I whittled bifg21.f90 down to. r238496
produces a warning, r238497 does not. I'll also note 178.galgel also failed at
-O0, on powerpc64 at least.


      Subroutine BifG21 (G21, W11, W20, V, U, NS)

        Real*8, Dimension(1000,1000) ::  HtTim
        Integer  N, K
        Real*8, Allocatable, Dimension(:) :: POP2

           Np = Max0(N,K)
           Allocate( POP2(Np) )

           POP2(1:N) = MATMUL( HtTim(1:K,1:K), POP2(1:K) )

           Deallocate( POP2 )
       Return
      End


> gfortran -S -m64 junk.f90 -Warray-temporaries
junk.f90:10:23:

            POP2(1:N) = MATMUL( HtTim(1:K,1:K), POP2(1:K) )
                       1
Warning: Creating array temporary at (1) [-Warray-temporaries]

Reply via email to