[Bug fortran/30764] New: GFortran ICE if real constants in module

2007-02-11 Thread engel at itp1 dot uni-stuttgart dot de
GFortran on Fedora Core 6 (gcc-gfortran-4.1.1-51.fc6) can't compile module
files that contain real constants ("parameter" attribute).

Example: Module file "const.f90":

module const
  real, parameter :: a=3.5
end module const

Compile command "gfortran -c const.f90" leads to ICE:

const.f90:0: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.


-- 
   Summary: GFortran ICE if real constants in module
   Product: gcc
   Version: 4.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: engel at itp1 dot uni-stuttgart dot de
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



[Bug fortran/30764] GFortran ICE if real constants in module

2007-02-11 Thread engel at itp1 dot uni-stuttgart dot de


--- Comment #2 from engel at itp1 dot uni-stuttgart dot de  2007-02-11 
17:40 ---
(In reply to comment #1)
> This works OK on gfortran 4.3.
> 
> and on my FC6 install:
> 
> $ gfortran -v
> Using built-in specs.
> Target: x86_64-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --enable-checking=release --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-libgcj-multifile
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
> --disable-dssi --enable-plugin
> --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
> --host=x86_64-redhat-linux
> Thread model: posix
> gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)
> $ gfortran -c hang.f90
> 
> Maybe a problem on i686?  installation problem?
> 

Maybe. I have tested the gfortran problem on 24 computers (all 32 bit): I get
an ICE on all AMD and Pentium III processors, but gfortran is compiling
correctly on the Pentium 4 and Pentium D processor machines. The funny thing
is, that the P4 compiled code is running on the AMD and PIII processors very
well.

gfortran -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)


-- 

engel at itp1 dot uni-stuttgart dot de changed:

   What|Removed |Added

  GCC build triplet|i686-pc-linux-gnu   |
 GCC target triplet|i686-pc-linux-gnu   |


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