public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28788]  New: [gfortran: 4.1, 4.2 regression] ICE on valid code
@ 2006-08-21 11:37 martin at mpa-garching dot mpg dot de
  2006-08-22  5:30 ` [Bug fortran/28788] " pault at gcc dot gnu dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2006-08-21 11:37 UTC (permalink / raw)
  To: gcc-bugs

Current gfortran (trunk and head of 4.1 branch) segfaults when compiling the
following code:

module Precision
  integer, parameter :: dl = KIND(1.d0)
end module Precision

module ModelParams
use precision

type CAMBparams
  real(dl)::omegab,h0,tcmb,yhe
end type

type (CAMBparams) :: CP

contains

subroutine CAMBParams_Set(P)
  type(CAMBparams), intent(in) :: P
end subroutine CAMBParams_Set

end module ModelParams

module TimeSteps
use precision
use ModelParams

end module TimeSteps

module ThermoData
use TimeSteps
contains
subroutine inithermo(taumin,taumax)
  use precision
  use ModelParams
  real(dl) taumin,taumax

  call InitRECFAST(CP%omegab,CP%h0,CP%tcmb,CP%yhe)
end subroutine inithermo

end module ThermoData

martin@linux:~/tmp> gfortran -v -c modules.F90
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /home/martin/software/gcc/configure --disable-multilib
--with-gmp=/home/martin/software/mygmp --with-mpfr=/home/martin/software/mympfr
--prefix=/home/martin/software/ugcc --enable-languages=c++,fortran
--enable-checking=release
Thread model: posix
gcc version 4.2.0 20060821 (experimental)
 /home/martin/software/ugcc/libexec/gcc/x86_64-unknown-linux-gnu/4.2.0/cc1 -E
-lang-fortran -traditional-cpp -D_LANGUAGE_FORTRAN -quiet -v modules.F90
-mtune=generic -o /tmp/ccNsJVqs.f95
ignoring nonexistent directory
"/home/martin/software/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.2.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /home/martin/software/ugcc/include
 /home/martin/software/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.2.0/include
 /usr/include
End of search list.
 /home/martin/software/ugcc/libexec/gcc/x86_64-unknown-linux-gnu/4.2.0/f951
/tmp/ccNsJVqs.f95 -ffree-form -quiet -dumpbase modules.F90 -mtune=generic
-auxbase modules -version -fpreprocessed -I
/home/martin/software/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.2.0/finclude -o
/tmp/cciJjRCJ.s
GNU F95 version 4.2.0 20060821 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.2.0 20060821 (experimental).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128005
 In file modules.F90:33

  use ModelParams
                1
modules.F90:16: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


This problem was not present a few days ago, and it is quite elusive. Even
adding or removing a few "!innocent" lines can change the error message,
e.g. to something like

 In file modules.F90:43

        use ModelParams
                      1
Error: The derived type 'p' at (1) is of type '', which has not been defined.

which makes no sense.


-- 
           Summary: [gfortran: 4.1, 4.2 regression] ICE on valid code
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: martin at mpa-garching dot mpg dot de
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2006-08-30  4:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-21 11:37 [Bug fortran/28788] New: [gfortran: 4.1, 4.2 regression] ICE on valid code martin at mpa-garching dot mpg dot de
2006-08-22  5:30 ` [Bug fortran/28788] " pault at gcc dot gnu dot org
2006-08-22 20:02 ` pault at gcc dot gnu dot org
2006-08-23 13:20 ` paul dot richard dot thomas at cea dot fr
2006-08-23 14:51 ` patchapp at dberlin dot org
2006-08-24  4:47 ` pault at gcc dot gnu dot org
2006-08-24  4:54 ` pault at gcc dot gnu dot org
2006-08-25 12:57 ` martin at mpa-garching dot mpg dot de
2006-08-25 13:25 ` paulthomas2 at wanadoo dot fr
2006-08-25 14:36 ` martin at mpa-garching dot mpg dot de
2006-08-25 14:37 ` martin at mpa-garching dot mpg dot de
2006-08-25 17:09 ` jvdelisle at gcc dot gnu dot org
2006-08-26  9:30 ` paulthomas2 at wanadoo dot fr
2006-08-26 12:15 ` aovb94 at dsl dot pipex dot com
2006-08-26 21:27 ` jvdelisle at gcc dot gnu dot org
2006-08-28 11:57 ` paul dot richard dot thomas at cea dot fr
2006-08-29  4:51 ` pault at gcc dot gnu dot org
2006-08-29  4:57 ` pault at gcc dot gnu dot org
2006-08-30  4:37 ` pault at gcc dot gnu dot 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).