2007-12-09 Tobias Burnus <burnus@net-b.de>
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Dec 2007 12:58:25 +0000 (12:58 +0000)
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Dec 2007 12:58:25 +0000 (12:58 +0000)
        PR fortran/34404
        * io/list_read.c (parse_real): Remove superfluous "goto bad;".

2007-12-09  H.J. Lu  <hjl@lucon.org>
             Tobias Burnus  <burnus@net-b.de>

        PR fortran/34404
        * gfortran.dg/read_2.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130723 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/read_2.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/list_read.c

index 657b101..958ede0 100644 (file)
@@ -1,3 +1,9 @@
+2007-12-09  H.J. Lu  <hjl@lucon.org>
+           Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/34404
+       * gfortran.dg/read_2.f90: New.
+
 2007-12-09  Richard Sandiford  <rsandifo@nildram.co.uk>
 
        * lib/target-supports.exp (check_effective_target_tls_native):
diff --git a/gcc/testsuite/gfortran.dg/read_2.f90 b/gcc/testsuite/gfortran.dg/read_2.f90
new file mode 100644 (file)
index 0000000..d12dcef
--- /dev/null
@@ -0,0 +1,12 @@
+! { dg-do run }
+!
+! PR fortran/34404
+!
+! Contributed by Joost VandeVondele.
+!
+implicit none
+complex :: x
+character(len=80) :: t="(1.0E-7,4.0E-3)"
+read(t,*) x
+if (real(x) /= 1.0e-7 .or. aimag(x)/=4.0e-3) call abort()
+END
index 8886338..f80da8d 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-09  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/34404
+       * io/list_read.c (parse_real): Remove superfluous "goto bad;".
+
 2007-12-08  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/34319
index c212489..9ac5609 100644 (file)
@@ -1148,7 +1148,6 @@ parse_real (st_parameter_dt *dtp, void *buffer, int length)
        goto bad;
     }
 
-    goto bad;
   push_char (dtp, c);
 
   for (;;)