[Bug fortran/35993] [4.3/4.4 regression] wrong answer for PRODUCT with scalar mask

2008-04-22 Thread tkoenig at gcc dot gnu dot org
--- Comment #2 from tkoenig at gcc dot gnu dot org 2008-04-22 18:46 --- A regression (well, sort of; 4.2 failed with the bogus error message, but at least it didn't generate wrong code): $ gfortran-4.2 foo.f90 $ ./a.out Fortran runtime error: rank of return array does not equal 1 --

[Bug fortran/35993] [4.3/4.4 regression] wrong answer for PRODUCT with scalar mask

2008-04-22 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35993

[Bug fortran/35993] [4.3/4.4 regression] wrong answer for PRODUCT with scalar mask

2008-04-24 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2008-04-25 04:36 --- I am working on this. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/35993] [4.3/4.4 regression] wrong answer for PRODUCT with scalar mask

2008-04-25 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-04-26 04:27 --- This problem is worse then thought. It also extends to the SUM intrinsic which uses a similar code pattern. When MASK is a scalar and false the code that should traverse the destination array and set the values