This is Walt Brainerd's fc004.f95. A trace of f951 shows (gdb) run fc004.f95 Starting program: /home/kargl/work/41/libexec/gcc/i386-unknown-freebsd6.0/4.1.0/f951 fc004.f95 zero MAIN__ to_sub
Program received signal SIGSEGV, Segmentation fault. 0x0809b832 in gfc_conv_intrinsic_bound (se=0xbfbfe490, expr=0x8575180, upper=0) at ../../gcc41/gcc/fortran/trans-intrinsic.c:679 679 gcc_assert (i >= 0 && i < GFC_TYPE_ARRAY_RANK (TREE_TYPE (desc))); This is probably related to the other PR's that involve lbound and ubound -- Summary: Problem with bounds in gfc_conv_intrinsic_bound Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kargl at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20662