http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51434

             Bug #: 51434
           Summary: internal compiler error
    Classification: Unclassified
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: andy.nel...@lanl.gov


The following code produces an internal compiler error on gfortran 4.5.2:


module testgfortran

use iso_c_binding


integer          , parameter :: lenname = 20
character(C_CHAR), parameter :: cdumchar(lenname) = ' '

type :: fsinfonames
   integer          :: namelen          = lenname
   character(C_CHAR):: raidnum(lenname) = transfer('raidnum            
',cdumchar)
end type 

end module testgfortran

well...it does, modulo the wordwrap damage that seems to appear above...
the 'raidnum' line should have as its ending portion:

raidnum(lenname) = transfer('raidnum             ',cdumchar)


which I hope doesn't get damaged too.

I type exactly:

gfortran testmod.f90

to get the error report of:

f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


gfortran -v gives me this:

Using built-in specs.
COLLECT_GCC=/opt/gcc/4.5.2/bin/../snos/bin/gfortran
COLLECT_LTO_WRAPPER=/opt/gcc/4.5.2/snos/libexec/gcc/x86_64-suse-linux/4.5.2/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../xt-gcc-4.5.2/configure --prefix=/opt/gcc/4.5.2/snos
--disable-nls --libdir=/opt/gcc/4.5.2/snos/lib --enable-languages=c,c++,fortran
--with-gxx-include-dir=/opt/gcc/4.5.2/snos/include/g++
--with-slibdir=/opt/gcc/4.5.2/snos/lib --with-system-zlib --enable-shared
--enable-__cxa_atexit x86_64-suse-linux --with-mpc=/opt/gcc/mpc/0.8.1
--with-mpfr=/opt/gcc/mpfr/2.4.2 --with-gmp=/opt/gcc/gmp/4.3.2 --with-sysroot=
Thread model: posix
gcc version 4.5.2 20101216 (Cray Inc.) (GCC)

Reply via email to