Compiling this code with gfortran (4.3.2 and 4.3.3, Linux and Solaris) produces a segmentation fault in gfortran (internal error): write(fmt='(''STRING'')') end
Compile command: gfortran FilecontainingCode.f Message: f951: 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. It is because the unit number has been forgotten. With this code: write(*,fmt='(''STRING'')') end it works Gfortran from Mandriva 2009.0 Using built-in specs. Target: i586-manbo-linux-gnu Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release --enable-languages=c,c++,ada,fortran,objc,obj-c++,java --build=i586-manbo-linux-gnu --host=i586-manbo-linux-gnu --with-cpu=generic --with-system-zlib --enable-threads=posix --enable-shared --enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-gtk-cairo --disable-libjava-multilib --enable-ssp --disable-libssp --disable-werror Thread model: posix gcc version 4.3.2 (GCC) -- Summary: gfortran segmentation fault when a unit number is missing Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Philippe dot Poilbarbe at cls dot fr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40839