This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40846] New: ICE in gfc_finish_var_decl, at fortran/trans-decl.c:584
- From: "michael dot a dot richmond at nasa dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jul 2009 14:04:26 -0000
- Subject: [Bug fortran/40846] New: ICE in gfc_finish_var_decl, at fortran/trans-decl.c:584
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I downloaded
http://users.physik.fu-berlin.de/~tburnus/gcc-trunk/gcc-trunk-x86_64.tar.gz and
attempted to compile the file listed below. I got the message:
a.f90: In function speak:
a.f90:7:0: internal compiler error: tree check: expected function_decl, have
namespace_decl in gfc_finish_var_decl, at fortran/trans-decl.c:584
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Reducing the array size from 8193 to 8192 makes the problem go away.
MODULE Adventure_Common
INTEGER :: lines(8193)
END MODULE Adventure_Common
MODULE Adventure_Subs
USE Adventure_Common
CONTAINS
SUBROUTINE speak
l=lines(1)
END SUBROUTINE speak
END MODULE Adventure_Subs
--
Summary: ICE in gfc_finish_var_decl, at fortran/trans-decl.c:584
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michael dot a dot richmond at nasa dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40846