From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5405 invoked by alias); 30 Mar 2011 11:02:18 -0000 Received: (qmail 5387 invoked by uid 22791); 30 Mar 2011 11:02:17 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Mar 2011 11:02:11 +0000 From: "krefson at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/48360] New: ICE on array assignment statement with allocatable LHS X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: krefson at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Wed, 30 Mar 2011 11:20:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg03180.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D48360 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=3D23816 Fortran 95 source which gives ICE on compilation attempt. The attached code gives an ICE when compiled with gfortran 4.6.0=20 $ gfortran -v Using built-in specs. COLLECT_GCC=3Dgfortran COLLECT_LTO_WRAPPER=3D/usr/local/gcc-4.6/libexec/gcc/x86_64-unknown-linux-g= nu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.6-source/gcc-4.6-20110312/configure --enable-languages=3Dc,c++,fortran --enable-checking=3Drelease --disable-bo= otstrap --disable-libmudflap --enable-libgomp --enable-lto --enable-gold --with-plugin-ld=3D/usr/bin/gold --prefix=3D/usr/local/gcc-4.6 Thread model: posix gcc version 4.6.0 20110312 (experimental) (GCC)=20 $ gfortran -c gf46-ice.f90 gf46-ice.f90: In function =E2=80=98assignit=E2=80=99: gf46-ice.f90:19:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Fine with 4.4.3 and 4.5 Disabling the possibility of "allocate-on-assignment" by changing hmat =3D mmv%h0 to hmat(:,:) =3D mmv%h0 compiles correctly.