aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/symbol.c
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2018-05-25 08:09:10 +0200
committerJanus Weil <janus@gcc.gnu.org>2018-05-25 08:09:10 +0200
commit9143aa524cee23faf8d4f11d0a8a7b5393952406 (patch)
tree5f54dc37f3d1a928a91c54559c5d1607004b9f9b /gcc/fortran/symbol.c
parent55157d5ed6df9a8eacd0e39c12c97fe7222f1172 (diff)
downloadgcc-9143aa524cee23faf8d4f11d0a8a7b5393952406.zip
gcc-9143aa524cee23faf8d4f11d0a8a7b5393952406.tar.gz
gcc-9143aa524cee23faf8d4f11d0a8a7b5393952406.tar.bz2
re PR fortran/85839 ([F2018] warn for obsolescent features)
2018-05-25 Janus Weil <janus@gcc.gnu.org> PR fortran/85839 * match.c (gfc_match_block_data): Call gfc_notify_std to warn about an obsolescent feature in Fortran 2018. (gfc_match_equivalence): Ditto. * resolve.c (resolve_common_blocks): Ditto. (gfc_resolve_forall): Ditto. * symbol.c (gfc_define_st_label): Ditto. 2018-05-25 Janus Weil <janus@gcc.gnu.org> PR fortran/85839 * gfortran.dg/f2018_obs.f90: New test case. From-SVN: r260705
Diffstat (limited to 'gcc/fortran/symbol.c')
-rw-r--r--gcc/fortran/symbol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c
index 5538763..4f06063 100644
--- a/gcc/fortran/symbol.c
+++ b/gcc/fortran/symbol.c
@@ -2725,6 +2725,10 @@ gfc_define_st_label (gfc_st_label *lp, gfc_sl_type type, locus *label_locus)
"DO termination statement which is not END DO"
" or CONTINUE with label %d at %C", labelno))
return;
+ if (type == ST_LABEL_DO_TARGET
+ && !gfc_notify_std (GFC_STD_F2018_OBS, "Labeled DO statement "
+ "at %L", label_locus))
+ return;
break;
default: