------- Comment #1 from dfranke at gcc dot gnu dot org 2007-12-22 21:25 ------- Confirmed.
Simplified testcase: integer :: a(2,2) = reshape( (/ max((/ 1,2 /), (/ 3,4 /)), (/4,5/) /), (/2,2/)) end It seems that the array-valued MAX is crucial here. If removed or replaced by a scalar-valued MAX, it works as expected. OTOH, removing RESHAPE works as well. -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-12-22 21:25:55 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34556