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

           Summary: f951.exe: internal compiler error: Segmentation fault
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: n...@12000.org


Created attachment 21970
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=21970
this is the only extra file created when I typed gfortran -save-temps  t.f90

I was playing around with gfortran. This small fortran code generated the seg
fault in the compiler. (it is probably not valid code, do not know).

-----------------------
program main
integer, parameter :: my_number=3
INTEGER, PARAMETER :: MaxNLevels = 100


TYPE LevelSpecsType
  INTEGER :: NLevels
  REAL, DIMENSION(MaxNLevels) :: LevelHeight
END TYPE LevelSpecsType

real :: zerosData(MaxNLevels - my_number ) = 0.0

TYPE(LevelSpecsType), PARAMETER :: PoorInputLevelSpecs = &
& LevelSpecsType(my_number,(/0.,610.,1500.,  zerosData /))

end program
-----------------------
$ gfortran -save-temps  t.f90
f951.exe: 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.

$ uname -a
MINGW32_NT-6.1 ME-PC 1.0.15(0.47/3/2) 2010-07-06 22:04 i686 Msys

$ gfortran --version
GNU Fortran (GCC) 4.5.0


$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.5.0/configure
--enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions
--wi
th-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry
--enable-libstdcxx-debug --enable-version-specific-r
untime-libs --disable-werror --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.5.0 (GCC)


attached t.s file created

thanks
--Nasser

Reply via email to