re PR fortran/88248 ([F18] Bogus warning about obsolescent feature: Labeled DO statement)
authorHarald Anlauf <anlauf@gmx.de>
Thu, 14 Feb 2019 20:24:54 +0000 (20:24 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Thu, 14 Feb 2019 20:24:54 +0000 (20:24 +0000)
commit14b693baa2ae60ab39944c58b5a0a898df616038
treed9516b577a7fc71d25338416126e2651f27cab37
parent26a8c34ec94a479266f641699dbc4a8b36bdfd30
re PR fortran/88248 ([F18] Bogus warning about obsolescent feature: Labeled DO statement)

2019-02-14  Harald Anlauf  <anlauf@gmx.de>

PR fortran/88248
* symbol.c: Move check for labeled DO statement from
gfc_define_st_label to gfc_reference_st_label.

PR fortran/88248
* gfortran.dg/pr88248.f90: New test.
* gfortran.dg/f2018_obs.f90: Updated test.

From-SVN: r268895
gcc/fortran/ChangeLog
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/f2018_obs.f90
gcc/testsuite/gfortran.dg/pr88248.f90 [new file with mode: 0644]