[Bug fortran/16935] New: Segmentation fault of compiler with unsupported control items in OPEN
paulthomas2 at wanadoo dot fr
gcc-bugzilla@gcc.gnu.org
Mon Aug 9 14:15:00 GMT 2004
!G77 complains that this is an unsupported control item.
!GFORTRAN compiles OK put program gives segmentation fault
!I have not checked the other control items but strongly urge a G77 style
!error message for standard but unsupported items.
!distilled from Meissner text book example
program bug2
implicit none
character*(500) String
open( 1 , file = "str_500.txt", position = "REWIND" )
read( 1 , * ) String
close( 1 )
stop
end
str_500.txt contains
"A character string consists of zero or more characters. Even though it is made
up of individual characters, a character string is considered to be a scalar. As
with any data type, it is possible to declare an array of character strings, all
the same length. A substring is a contiguous portion of a character string that
has a starting point and an ending point within the character string. It is
possible to reference a substring of a character scalar variable or constant."
--
Summary: Segmentation fault of compiler with unsupported control
items in OPEN
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: paulthomas2 at wanadoo dot fr
CC: bdavis at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16935
More information about the Gcc-bugs
mailing list