This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/24866] New: internal compiler error

Following program cause internal compiler error. I wasn't sure if this has been
seen/filed before.

$ cat test_module.f90
module test_module
   subroutine sub_module(str)
     external :: str
   end subroutine sub_module
   subroutine str()
   end subroutine str
end module test_module

$ gfortran -v -c test_module.f90
test_module.f90:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.

Using built-in specs.
Target: powerpc64-linux
Configured with: /home/gccbuild/gcc_trunk_anonsvn/trunk/configure
--prefix=/opt/gcc-nightly/trunk-20051110 --build=powerpc64-linux
--host=powerpc64-linux --target=powerpc64-linux --with-cpu=default32
--with-ld=/opt/gcc-nightly/trunk-20051110/bin/ld --enable-threads=posix
--enable-shared --enable-__cxa_atexit
--enable-languages=c,c++,f95,java,objc,obj-c++ --enable-checking
Thread model: posix
gcc version 4.1.0 20051110 (experimental)
test_module.f90 -quiet -dumpbase test_module.f90 -auxbase test_module -version
-o /tmp/ccUJBiuf.s
GNU F95 version 4.1.0 20051110 (experimental) (powerpc64-linux)
        compiled by GNU C version 4.1.0 20051110 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

backtrace is

142                   if (sym->result->ts.type == BT_UNKNOWN)
(gdb) p sym
$1 = (gfc_symbol *) 0x1075be20
(gdb) p sym->result
$2 = (struct gfc_symbol *) 0x0
(gdb) bt
#0  resolve_formal_arglist (proc=0x1075bda0) at
#1  0x10059c70 in traverse_ns (st=0x107408b0, func=0x1004a310 <find_arglists>)
    at /home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/fortran/symbol.c:2416
#2  0x1004f008 in gfc_resolve (ns=0x1075b670) at
#3  0x24000482 in ?? ()
#4  0x10045244 in gfc_parse_file () at
#5  0x10064e04 in gfc_be_parse_file (set_yydebug=Variable "set_yydebug" is not
) at /home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/fortran/f95-lang.c:286
#6  0x10340a5c in toplev_main (argc=Variable "argc" is not available.
) at /home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/toplev.c:990
#7  0x10092540 in main (argc=Variable "argc" is not available.
) at /home/gccbuild/gcc_trunk_anonsvn/trunk/gcc/main.c:35

           Summary: internal compiler error
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uttamp at us dot ibm dot com
 GCC build triplet: powerpc64-linux
  GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]