I use gfortran on cygwin.

% wget
http://quatramaran.ens.fr/~coudert/gfortran/gfortran-4.3-Cygwin-i686.tar.bz2
% tar fjx gfortran-4.3-Cygwin-i686.tar.bz2 -C /


I get a segmentation fault when compiling program contains a simple write
statement.

% cat zerolabel.f95
write(*,0)

% /usr/local/gfortran/bin/gfortran.exe -v zerolabel.f95
Driving: /usr/local/gfortran/bin/gfortran -v zerolabel.f95 -lgfortranbegin
-lgfortran
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ../gcc43/configure --prefix=/usr/local/gfortran
--enable-languages=c,fortran --disable-bootstrap --enable-threads=posix
--enable-sjlj-exceptions --enable-version-specific-runtime-libs --enable-nls
--disable-libmudflap --disable-shared --disable-win32-registry
--with-system-zlib --enable-checking=release --enable-werror
--without-included-gettext --without-x --enable-libgomp : (reconfigured)
../gcc43/configure --prefix=/usr/local/gfortran --enable-languages=c,fortran
--disable-bootstrap --enable-threads=posix --enable-sjlj-exceptions
--enable-version-specific-runtime-libs --enable-nls --disable-libmudflap
--disable-shared --disable-win32-registry --with-system-zlib
--enable-checking=release --enable-werror --without-included-gettext
--without-x --enable-libgomp
Thread model: posix
gcc version 4.3.0 20071005 (experimental) [trunk revision 127783] (GCC)
COLLECT_GCC_OPTIONS='-v' '-mtune=generic'
 /usr/local/gfortran/libexec/gcc/i686-pc-cygwin/4.3.0/f951.exe zerolabel.f95
-quiet -dumpbase zerolabel.f95 -mtune=generic -auxbase zerolabel -version
-fintrinsic-modules-path
/usr/local/gfortran/lib/gcc/i686-pc-cygwin/4.3.0/finclude -o /tmp/ccbbRPye.s
GNU F95 (GCC) version 4.3.0 20071005 (experimental) [trunk revision 127783]
(i686-pc-cygwin)
        compiled by GNU C version 3.4.4 (cygming special, gdc 0.12, using dmd
0.125), GMP version 4.2.1, MPFR version 2.2.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
zerolabel.f95:0: 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.


-- 
           Summary: ICE: Segmentation fault occurs by "write(*,0)" statement
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fujimura at giga dot it dot okayama-u dot ac dot jp
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


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

Reply via email to