[fixed in 4.5] segfault when compiling malformed write statement

Bug #485749 reported by summentier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.4 (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: gcc-4.4

When I compile the following program

program main
    implicit none
    ! Syntax error here
    write(advance='no') ' '
end program main

with gcc-4.4 on Ubuntu 9.10 using the following command

gfortran main.f90

, I get a segmentation fault. Complete GCC output:

f951: internal compiler error: Segmentation fault
Please submit a full bug report, with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.

Expected behaviour: gfortran raises an error.

Environment:

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)

Revision history for this message
Matthias Klose (doko) wrote :

fixed in 4.5

Changed in gcc-4.4 (Ubuntu):
importance: Undecided → Low
status: New → Triaged
summary: - segfault when compiling malformed write statement
+ [fixed in 4.5] segfault when compiling malformed write statement
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.