2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66044
* decl.c(gfc_match_entry): Change a gfc_internal_error() into
a gfc_error()
2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66044
* gfortran.dg/entry_21.f90: New test.
From-SVN: r223321
+2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/66044
+ * decl.c(gfc_match_entry): Change a gfc_internal_error() into
+ a gfc_error()
+
2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66043
"a contained subprogram");
break;
default:
- gfc_internal_error ("gfc_match_entry(): Bad state");
+ gfc_error ("Unexpected ENTRY statement at %C");
}
return MATCH_ERROR;
}
+2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/66044
+ * gfortran.dg/entry_21.f90: New test.
+
2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66043
--- /dev/null
+! { dg-do compile }
+! PR fortran/66044
+!
+! Original code from Gerhard Steinmetz
+! <gerhard dot steinmetz dot fortran at t-online dot de>
+subroutine p
+end subroutine p
+
+entry e ! { dg-error "Unexpected ENTRY statement" }
+end
+
+module m
+ type t
+ contains
+ entry e ! { dg-error "Unexpected ENTRY statement" }
+ end type
+end module m