------- Comment #1 from dominiq at lps dot ens dot fr 2008-05-21 08:52 ------- I also see it on powerpc-apple-darwin9 at revision 135683. The following reduced case:
program test_count integer, dimension(2,3) :: a, b a = reshape( (/ 1, 3, 5, 2, 4, 6 /), (/ 2, 3 /)) b = reshape( (/ 0, 3, 5, 7, 4, 8 /), (/ 2, 3 /)) print '(3l6)', a.ne.b ! print *, a(1,:).ne.b(1,:) print *, a(2,:).ne.b(2,:) print *, count(a.ne.b) end program test_count gives: count_db.f90:1: internal compiler error: vector VEC(lambda_vector,base) index domain error, in gather_interchange_stats at tree-loop-linear.c:150 If I uncomment the commented line I get: count_db.f90:1: internal compiler error: in calculate_allocation, at vec.c:51 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36286