PR fortran/44371
* gfortran.dg/error_stop_1.f08: New test.
* gfortran.dg/error_stop_2.f08: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160134
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR fortran/44371
+ * gfortran.dg/error_stop_1.f08: New test.
+ * gfortran.dg/error_stop_2.f08: New test.
+
2010-06-01 Jason Merrill <jason@redhat.com>
DR 990
--- /dev/null
+! { dg-do run }
+program stopper
+ real, dimension(5,5,5) :: i
+ error stop size(i) ! { dg-shouldfail "ERROR STOP 125" }
+end program stopper
--- /dev/null
+! { dg-do compile }
+! PR44371 STOP parsing rejects valid code.
+ real, dimension(5,5,5) :: i
+ character(1) c, y
+ y = 'y'
+ read(y,*) c
+ if (c=='x') stop size(i); if (c=='X') stop
+
+ if (c=='y') stop size(i) if (c=='Y') stop ! { dg-error "Syntax error in STOP" }
+ end