public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25307]  New: internal read with end=label aborts
@ 2005-12-08 10:32 jpr at csc dot fi
  2005-12-10 19:06 ` [Bug libfortran/25307] " fxcoudert at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jpr at csc dot fi @ 2005-12-08 10:32 UTC (permalink / raw)
  To: gcc-bugs

Hi!

The following program 

program test
   character(len=10) :: str
   str = '123'
   read( str, *, end=10 ) i,x
10 continue
   print*,i
end program test

aborts at runtime with somewhat unexpected  message 

gfortran -v -o file file.f90; ./file
Driving: gfortran -v -o file file.f90 -lgfortranbegin -lgfortran -lm
-shared-libgcc
Using built-in specs.
Target: i386-linux
Configured with: ../gcc/configure --prefix=/tmp/gfortran-20051205/irun
--enable-languages=c,fortran --host=i386-linux
Thread model: posix
gcc version 4.2.0 20051205 (experimental)
 /home/wrk/jpr/irun/bin/../libexec/gcc/i386-linux/4.2.0/f951 file.f90 -quiet
-dumpbase file.f90 -auxbase file -version -o /tmp/ccuEHGgN.s
GNU F95 version 4.2.0 20051205 (experimental) (i386-linux)
        compiled by GNU C version 4.0.2 (Debian 4.0.2-2).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
 as -V -Qy -o /tmp/ccqaQsjs.o /tmp/ccuEHGgN.s
GNU assembler version 2.13.90.0.18 (i386-redhat-linux) using BFD version
2.13.90.0.18 20030206
 /home/wrk/jpr/irun/bin/../libexec/gcc/i386-linux/4.2.0/collect2 --eh-frame-hdr
-m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o file /usr/lib/crt1.o
/usr/lib/crti.o /home/wrk/jpr/irun/bin/../lib/gcc/i386-linux/4.2.0/crtbegin.o
-L/home/wrk/jpr/irun/bin/../lib/gcc/i386-linux/4.2.0
-L/home/wrk/jpr/irun/bin/../lib/gcc
-L/home/wrk/jpr/irun/bin/../lib/gcc/i386-linux/4.2.0/../../.. /tmp/ccqaQsjs.o
-lgfortranbegin -lgfortran -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/home/wrk/jpr/irun/bin/../lib/gcc/i386-linux/4.2.0/crtend.o /usr/lib/crtn.o
At line 4 of file file.f90
Fortran runtime error: Success

ifort, g95, sun f90, pgf90, pathf90, xlf90 all treat the end specfier
as i would expect...

Juha


-- 
           Summary: internal read with end=label aborts
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jpr at csc dot fi


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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2006-01-01  5:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-08 10:32 [Bug fortran/25307] New: internal read with end=label aborts jpr at csc dot fi
2005-12-10 19:06 ` [Bug libfortran/25307] " fxcoudert at gcc dot gnu dot org
2005-12-10 19:31 ` fxcoudert at gcc dot gnu dot org
2005-12-10 20:21 ` jvdelisle at gcc dot gnu dot org
2005-12-10 20:29 ` fxcoudert at gcc dot gnu dot org
2005-12-17 21:40 ` jvdelisle at gcc dot gnu dot org
2005-12-22  2:32 ` jvdelisle at gcc dot gnu dot org
2005-12-22  7:06 ` pault at gcc dot gnu dot org
2005-12-23  2:02 ` jvdelisle at gcc dot gnu dot org
2005-12-23  2:56 ` jvdelisle at gcc dot gnu dot org
2005-12-23  2:59 ` jvdelisle at gcc dot gnu dot org
2005-12-23  5:54 ` jvdelisle at gcc dot gnu dot org
2005-12-26  9:10 ` pault at gcc dot gnu dot org
2005-12-29  6:18 ` pault at gcc dot gnu dot org
2006-01-01  5:30 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).