http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50050
Andrew Benson <abenson at caltech dot edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |abenson at caltech dot edu
--- Comment #7 from Andrew Benson <abenson at caltech dot edu> 2011-08-23
19:54:07 UTC ---
The following (reduced from the FoX library m_common_attrs.F90) seems to cause
an ICE with gfortran 4.7.0 (r177982) - Dominique Dhumieres suggests that this
is probably related to r177970.
module m_common_attrs
implicit none
type dict_item
end type dict_item
type dict_item_ptr
type(dict_item), pointer :: d => null()
end type dict_item_ptr
contains
subroutine add_item_to_dict()
type(dict_item_ptr), pointer :: tempList(:)
integer :: n
allocate(tempList(0:n+1))
end subroutine add_item_to_dict
end module m_common_attrs
# gfortran -c test.f90
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
# gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/opt/gcc-trunk/bin/../libexec/gcc/i686-pc-linux-
gnu/4.7.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc4.7/configure --prefix=/usr/local/gcc-trunk --enable-
languages=c,c++,fortran --disable-multilib --with-gmp=/usr/local --with-
mpc=/usr/local --with-mpfr=/usr/local
Thread model: posix
gcc version 4.7.0 20110823 (experimental) (GCC)