This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34008] New: ICE in gfc_trans_call, at fortran/trans-stmt.c:389 on elemental assignment
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Nov 2007 22:19:41 -0000
- Subject: [Bug fortran/34008] New: ICE in gfc_trans_call, at fortran/trans-stmt.c:389 on elemental assignment
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
there's a bug that shows up when overloading elemental assignments.
The attached code sample crashes with:
gfcbug74.f90: In function 'assign_atm_to_atm':
gfcbug74.f90:33: internal compiler error: in gfc_trans_call, at
fortran/trans-stmt.c:389
When replacing the offending line
y% m = x% m ! ICE
by an explicit loop
do i=1,42; y% m(i) = x% m(i); end do ! Works
the code compiles.
Cheers,
-ha
--
Summary: ICE in gfc_trans_call, at fortran/trans-stmt.c:389 on
elemental assignment
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at gmx dot de
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34008