This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48360] New: ICE on array assignment statement with allocatable LHS
- From: "krefson at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Mar 2011 11:02:11 +0000
- Subject: [Bug fortran/48360] New: ICE on array assignment statement with allocatable LHS
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: krefson@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.