[Bug fortran/66050] ICE: FORALL with operation on matrix columns

wangmianzhi1 at linuxmail dot org gcc-bugzilla@gcc.gnu.org
Thu May 7 14:22:00 GMT 2015


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

--- Comment #2 from Mianzhi Wang <wangmianzhi1 at linuxmail dot org> ---
I may have made some mistake on the original example.
This should trigger the ICE (in some conditions, see below)

program test
  double precision::a(3,3),b
  b=1d0
  forall(i=1:3)
    a(:,i)=b*[1d0,2d0,3d0]
  end forall
end program

---------------------------------------------------------

It MIGHT be hardware-specific.
The ICE is not triggered on Intel i7-3770k with gcc 4.8.2.
But it is triggered on AMD A4-5000 with gcc 4.9.2.
I'm sorry that I can't provide results for other CPU/gcc combination.

---------------------------------------------------------

The ICE is

test.f90: In function ‘test’:
test.f90:4:0: internal compiler error: in gfc_trans_forall_1, at
fortran/trans-stmt.c:4015
   forall(i=1:3)
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.


More information about the Gcc-bugs mailing list