http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48360
Summary: ICE on array assignment statement with allocatable LHS Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: kref...@googlemail.com Created attachment 23816 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23816 Fortran 95 source which gives ICE on compilation attempt. The attached code gives an ICE when compiled with gfortran 4.6.0 $ gfortran -v Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/usr/local/gcc-4.6/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.6-source/gcc-4.6-20110312/configure --enable-languages=c,c++,fortran --enable-checking=release --disable-bootstrap --disable-libmudflap --enable-libgomp --enable-lto --enable-gold --with-plugin-ld=/usr/bin/gold --prefix=/usr/local/gcc-4.6 Thread model: posix gcc version 4.6.0 20110312 (experimental) (GCC) $ gfortran -c gf46-ice.f90 gf46-ice.f90: In function ‘assignit’: gf46-ice.f90:19:0: 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. Fine with 4.4.3 and 4.5 Disabling the possibility of "allocate-on-assignment" by changing hmat = mmv%h0 to hmat(:,:) = mmv%h0 compiles correctly.