public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45909] New: f951.exe: internal compiler error: Segmentation fault
@ 2010-10-06 10:13 nma at 12000 dot org
  2010-10-06 10:19 ` [Bug fortran/45909] " Joost.VandeVondele at pci dot uzh.ch
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: nma at 12000 dot org @ 2010-10-06 10:13 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: nma@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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/45909] f951.exe: internal compiler error: Segmentation fault
  2010-10-06 10:13 [Bug fortran/45909] New: f951.exe: internal compiler error: Segmentation fault nma at 12000 dot org
@ 2010-10-06 10:19 ` Joost.VandeVondele at pci dot uzh.ch
  2010-12-27  0:50 ` [Bug fortran/45909] [4.4/4.5] internal compiler error dfranke at gcc dot gnu.org
  2011-03-12 10:15 ` fxcoudert at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: Joost.VandeVondele at pci dot uzh.ch @ 2010-10-06 10:19 UTC (permalink / raw)
  To: gcc-bugs

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

Joost VandeVondele <Joost.VandeVondele at pci dot uzh.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.06 10:19:29
      Known to work|                            |4.6.0
     Ever Confirmed|0                           |1
      Known to fail|                            |4.4.0, 4.5.0
           Severity|major                       |normal

--- Comment #1 from Joost VandeVondele <Joost.VandeVondele at pci dot uzh.ch> 2010-10-06 10:19:29 UTC ---
This is indeed failing for 4.4 and 4.5, but passes in 4.6. I'll leave it open
to see if someone wants to backport the fix to 4.X.

It is invalid code as you suggested:

> gfortran test.f90
test.f90:14.43:

& LevelSpecsType(my_number,(/0.,610.,1500.,  zerosData /))
                                           1
Error: Array 'zerosdata' at (1) is a variable, which does not reduce to a
constant expression

So you can declare zerosData with a parameter attribute to get it to work in
4.5 as well.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/45909] [4.4/4.5] internal compiler error
  2010-10-06 10:13 [Bug fortran/45909] New: f951.exe: internal compiler error: Segmentation fault nma at 12000 dot org
  2010-10-06 10:19 ` [Bug fortran/45909] " Joost.VandeVondele at pci dot uzh.ch
@ 2010-12-27  0:50 ` dfranke at gcc dot gnu.org
  2011-03-12 10:15 ` fxcoudert at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dfranke at gcc dot gnu.org @ 2010-12-27  0:50 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Franke <dfranke at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |dfranke at gcc dot gnu.org
            Summary|f951.exe: internal compiler |[4.4/4.5] internal compiler
                   |error: Segmentation fault   |error

--- Comment #2 from Daniel Franke <dfranke at gcc dot gnu.org> 2010-12-27 00:50:35 UTC ---
Set to WAITING. If nobody picks this up in a while, this PR shall be closed.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/45909] [4.4/4.5] internal compiler error
  2010-10-06 10:13 [Bug fortran/45909] New: f951.exe: internal compiler error: Segmentation fault nma at 12000 dot org
  2010-10-06 10:19 ` [Bug fortran/45909] " Joost.VandeVondele at pci dot uzh.ch
  2010-12-27  0:50 ` [Bug fortran/45909] [4.4/4.5] internal compiler error dfranke at gcc dot gnu.org
@ 2011-03-12 10:15 ` fxcoudert at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2011-03-12 10:15 UTC (permalink / raw)
  To: gcc-bugs

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

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |fxcoudert at gcc dot
                   |                            |gnu.org
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0

--- Comment #3 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> 2011-03-12 10:15:24 UTC ---
Two months and a half have passed, noone has proposed a backport, and 4.6.0
should be released soon (reducing the incentive for backporting). Thus,
closing. Please reopen if you want to backport.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-12 10:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-06 10:13 [Bug fortran/45909] New: f951.exe: internal compiler error: Segmentation fault nma at 12000 dot org
2010-10-06 10:19 ` [Bug fortran/45909] " Joost.VandeVondele at pci dot uzh.ch
2010-12-27  0:50 ` [Bug fortran/45909] [4.4/4.5] internal compiler error dfranke at gcc dot gnu.org
2011-03-12 10:15 ` fxcoudert at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).