[Bug fortran/23323] New: Internal compiler error with CHARACTER functions and -fdefault-integer-8
georg dot denk at infineon dot com
gcc-bugzilla@gcc.gnu.org
Thu Aug 11 06:59:00 GMT 2005
When compiling the following subroutine test.F:
--- snip ----
SUBROUTINE BUG(ID,PARNAM)
IMPLICIT NONE
C .. Scalar Arguments ..
CHARACTER *8 PARNAM
INTEGER ID
C .. External Functions ..
CHARACTER *8 PANAME
EXTERNAL PANAME
C
PARNAM = PANAME(ID)
C
RETURN
END
--- snap ----
using
gfortran -v -save-temps -fdefault-integer-8 -c test.F
gives an internal compiler error:
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../../gcc-4.0.1/configure --prefix=/tmp2/denk/GCC4.0.1 --exec-p
refix=/tmp2/denk/GCC4.0.1/LINUXAMD64 --enable-languages=c,c++,f95,java --with-gm
p=/tmp2/denk/GCC4.0.1/LINUXAMD64 --with-mpfr=/tmp2/denk/GCC4.0.1
Thread model: posix
gcc version 4.0.1
/share/kruemel/tmp2/denk/GCC4.0.1/LINUXAMD64/bin/../libexec/gcc/x86_64-unknown-
linux-gnu/4.0.1/cc1 -E -traditional-cpp -D_LANGUAGE_FORTRAN -quiet -v -iprefix /
share/kruemel/tmp2/denk/GCC4.0.1/LINUXAMD64/bin/../lib/gcc/x86_64-unknown-linux-
gnu/4.0.1/ test.F -mtune=k8 -fdefault-integer-8 -fpch-preprocess -o test.f
cc1: warning: command line option "-fdefault-integer-8" is valid for F95 but not
for C
ignoring nonexistent directory "/share/kruemel/tmp2/denk/GCC4.0.1/LINUXAMD64/bin
/../lib/gcc/x86_64-unknown-linux-gnu/4.0.1/../../../../x86_64-unknown-linux-gnu/
include"
ignoring duplicate directory "/tmp2/denk/GCC4.0.1/LINUXAMD64/lib/gcc/x86_64-unkn
own-linux-gnu/4.0.1/include"
ignoring nonexistent directory "/tmp2/denk/GCC4.0.1/LINUXAMD64/lib/gcc/x86_64-un
known-linux-gnu/4.0.1/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/share/kruemel/tmp2/denk/GCC4.0.1/LINUXAMD64/bin/../lib/gcc/x86_64-unknown-linu
x-gnu/4.0.1/include
/usr/local/include
/tmp2/denk/GCC4.0.1/include
/usr/include
End of search list.
/share/kruemel/tmp2/denk/GCC4.0.1/LINUXAMD64/bin/../libexec/gcc/x86_64-unknown-
linux-gnu/4.0.1/f951 test.f -ffixed-form -quiet -dumpbase test.F -mtune=k8 -auxb
ase test -version -fdefault-integer-8 -o test.s
GNU F95 version 4.0.1 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.0.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
test.F: In function 'bug':
test.F:1: internal compiler error: in gfc_conv_string_tmp, at fortran/trans-expr
.c:782
Removing the option -fdefault-integer-8 gives a sucessful compile.
--
Summary: Internal compiler error with CHARACTER functions and -
fdefault-integer-8
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: georg dot denk at infineon dot com
CC: gcc-bugs at gcc dot gnu dot org,georg dot denk at
infineon dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: Linux kruemel 2.4.21-32.0.1.ELsmp #1 SMP Tue Jun 7
12:33:30 MEST
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23323
More information about the Gcc-bugs
mailing list