------- Comment #6 from fxcoudert at gcc dot gnu dot org 2007-08-08 15:24 ------- I reduced bounds_check_5.f90 to the following: $ cat o2.f90 INTEGER, POINTER :: x(:) logical :: l l = associated(x,x) end $ gfortran -fdefault-integer-8 -m32 o2.f90 o2.f90: In function ‘MAIN__’: o2.f90:3: internal compiler error: in simplify_subreg, at simplify-rtx.c:4676 The tree dump is very simple: logical8 l; struct array1_int8 x; x.data = 0B; l = _gfortran_associated (&x, &x) && x.dim[0].stride != 0; I guess we are generating mismatched types somewhere in the && operator. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-08-08 15:24:37 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32933