aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/parse.c
diff options
context:
space:
mode:
authorSteven G. Kargl <kargl@gcc.gnu.org>2015-05-18 21:16:05 +0000
committerSteven G. Kargl <kargl@gcc.gnu.org>2015-05-18 21:16:05 +0000
commit46b6b3542d8c47e285e4e606f889411e4739a886 (patch)
tree9969334b4ef6757fb7abbcd430db19b32f475a7a /gcc/fortran/parse.c
parent589ff4d209359aefc52f4986848540a4f97e085a (diff)
downloadgcc-46b6b3542d8c47e285e4e606f889411e4739a886.zip
gcc-46b6b3542d8c47e285e4e606f889411e4739a886.tar.gz
gcc-46b6b3542d8c47e285e4e606f889411e4739a886.tar.bz2
re PR fortran/66040 (ICE on misplaced sequence in function)
2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/66040 * parse.c(verify_st_order): Replace a gfc_internal_error with your generic gfc_error. 2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/66040 * gfortran.dg/misplaced_statement.f90: New test. From-SVN: r223318
Diffstat (limited to 'gcc/fortran/parse.c')
-rw-r--r--gcc/fortran/parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c
index 30e4eab..3135d9a 100644
--- a/gcc/fortran/parse.c
+++ b/gcc/fortran/parse.c
@@ -2425,8 +2425,7 @@ verify_st_order (st_state *p, gfc_statement st, bool silent)
break;
default:
- gfc_internal_error ("Unexpected %s statement in verify_st_order() at %C",
- gfc_ascii_statement (st));
+ return false;
}
/* All is well, record the statement in case we need it next time. */