This is a clone of PR38135. 
Reduced (a bit) testcase:

integer, parameter :: N = 3
integer A(N,N)
A(1:N,1:N)=reshape([integer::],[N,N],[1,2,2,2])
write(*,'(3i5)') A
end


-- 
           Summary: invariant RESHAPE not expanded if SOURCE is empty
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mikael at gcc dot gnu dot org


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

Reply via email to