This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23675] New: ICE in gfc_finish_var_decl (string manipulation)
- From: "thomas dot lavergne at jrc dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Sep 2005 09:45:20 -0000
- Subject: [Bug fortran/23675] New: ICE in gfc_finish_var_decl (string manipulation)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I do not know how this bug is linked to others (e.g. 18883), I let you decide.
It was on GNU Fortran 95 (GCC 4.0.0) and is still in the 4.1 snapshot I build
yesterday (gcc-4.1-20050826).
I get a ICE on that file (cutils.f95): (!==== lines are part of the file) The
reported function is 'inttochar2' althoug the reported line is 7 (which is the
line public::IntToChar2).
[:prompt:] cat cutils.f95
!================
module cutils
implicit none
private
integer :: maxStringLength = 25
public :: IntToChar2
contains
elemental function IntToChar2(integerValue)
integer, intent( in) :: integerValue
character(len = maxStringLength) :: IntToChar2
!
! Creates the character representation of an integer.
!
write(IntToChar2, *) integerValue
end function IntToChar2
end module cutils
!================
[:prompt:] gfortran-4.1-20050826 -v -c cutils.f95
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /mtvhome/laverth/TOOLS/GCCsnap/gcc-4.1-20050826/configure --
prefix=/home1/laverth/TOOLS/GCCsnap/gcc41snap --program-suffix=-4.1-20050826 --
with-local-prefix=/home1/laverth/TOOLS/GCCsnap/include --enable-languages=c,f95
--disable-libgcj --with-mpfr=/usr/local
Thread model: posix
gcc version 4.1.0 20050826 (experimental)
/home1/laverth/TOOLS/GCCsnap/gcc41snap/libexec/gcc/i686-pc-linux-gnu/4.1.0/f951
cutils.f95 -quiet -dumpbase cutils.f95 -mtune=pentiumpro -auxbase cutils -
version -o /tmp/ccfwaq3u.s
GNU F95 version 4.1.0 20050826 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 4.1.0 20050826 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
cutils.f95: In function ?inttochar2?:
cutils.f95:7: internal compiler error: in gfc_finish_var_decl, at fortran/trans-
decl.c:438
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in gfc_finish_var_decl (string manipulation)
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: thomas dot lavergne at jrc dot it
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23675