aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaul Thomas <pault@gcc.gnu.org>2016-01-03 20:55:19 +0000
committerPaul Thomas <pault@gcc.gnu.org>2016-01-03 20:55:19 +0000
commit25ccfccdf2c35b59fdf3c1e3f88f2f3ac914bafe (patch)
tree7e1044c2bbcb08fcd4136cc187c4934f1cddeea5 /gcc
parent0e8d41ab8f5e806a7796fb088d0c93c60b3a6df3 (diff)
downloadgcc-25ccfccdf2c35b59fdf3c1e3f88f2f3ac914bafe.zip
gcc-25ccfccdf2c35b59fdf3c1e3f88f2f3ac914bafe.tar.gz
gcc-25ccfccdf2c35b59fdf3c1e3f88f2f3ac914bafe.tar.bz2
re PR fortran/65045 ([F08] ICE when using the same name for a block and a variable)
2016-01-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/65045 * gfortran.dg/pr65045.f90: New test. From-SVN: r232042
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/pr65045.f9015
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 27a03a0..91499e3d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-03 Paul Thomas <pault@gcc.gnu.org>
+
+ PR fortran/65045
+ * gfortran.dg/pr65045.f90: New test.
+
2016-01-02 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/specs/debug1.ads: Delete.
diff --git a/gcc/testsuite/gfortran.dg/pr65045.f90 b/gcc/testsuite/gfortran.dg/pr65045.f90
new file mode 100644
index 0000000..5b838d5
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/pr65045.f90
@@ -0,0 +1,15 @@
+! { dg-do compile }
+!
+! Contributed by Walt Brainerd <walt.brainerd@gmail.com>
+!
+real :: i = 9.9
+i:block
+ if (i>7.7) then ! { dg-error "is not appropriate for an expression" }
+ exit i
+ else ! { dg-error "Unexpected ELSE statement" }
+ i = 2.2 ! { dg-error "is not a variable" }
+ end if ! { dg-error "Expecting END BLOCK statement" }
+end block i ! { dg-error "Expecting END PROGRAM statement" }
+print*,i ! { dg-error "not appropriate for an expression" }
+end
+! { dg-excess-errors "Unexpected end of file" }