[Bug fortran/17764] New: Compiler crash
dmitrym at acres dot com dot au
gcc-bugzilla@gcc.gnu.org
Fri Oct 1 02:29:00 GMT 2004
GCC: CVS update on Oct 01, 2004 (the same error was for the last 5-7 days, I
just did not investigate in detail).
PC, Linux Redhat 9
Build:
./configure --program-suffix=3 --prefix=/home/dmitrym/tmp/gcc-install
--enable-languages=f95; make
Compilation command line:
gfortran3 -c -o owwepr2.o owwepr2.F
Compiler output:
owwepr2.F:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
The following program owwepr2.F crashes gfortran:
-- snip ---
module Output
contains
!
subroutine plot(Na, J)
IMPLICIT NONE
integer :: Na, J(Na)
return
end subroutine plot
!
end module Output
!
subroutine test(Na)
USE Output
IMPLICIT NONE
integer :: Na
return
end
-- snip ---
The code was stripped down to this example. Note the name of variable (Na) the
same in the module and in the subroutine below. Renaming Na to Nb (or whatever
else) in any of the two places allows the seamless compile.
--
Summary: Compiler crash
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dmitrym at acres dot com dot au
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17764
More information about the Gcc-bugs
mailing list