+++ to secure your transactions use the Bitcoin Mixer Service +++

 

Bug 85839 - [F2018] warn for obsolescent features
Summary: [F2018] warn for obsolescent features
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 8.0
: P5 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
Depends on:
Blocks: F2018
  Show dependency treegraph
 
Reported: 2018-05-18 20:18 UTC by janus
Modified: 2022-05-27 08:19 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2018-05-19 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description janus 2018-05-18 20:18:39 UTC
Fortran 2018 introduces several new obsolescences:
 * COMMON
 * EQUIVALENCE
 * BLOCK DATA
 * labelled DO statements
 * specific names for standard intrinsic functions
 * FORALL

(see also PR 40881, where the same has been done for the F03 obsolenscences)
Comment 1 Dominique d'Humieres 2018-05-19 09:46:31 UTC
Not an emergency!
Comment 2 janus 2018-05-25 06:09:41 UTC
Author: janus
Date: Fri May 25 06:09:10 2018
New Revision: 260705

URL: https://gcc.gnu.org/viewcvs?rev=260705&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/gfortran.dg/f2018_obs.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/match.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/testsuite/ChangeLog
Comment 3 janus 2018-06-09 08:06:11 UTC
(In reply to janus from comment #0)
>  * specific names for standard intrinsic functions

After r260705, only this one is still missing.
Comment 4 Jakub Jelinek 2019-05-03 09:15:39 UTC
GCC 9.1 has been released.
Comment 5 Martin Diehl 2019-06-28 23:05:54 UTC
With gfortran 9.1 I get a false positive


Fortran 2018 obsolescent feature: COMMON block at (1)

but (1) points to a submodule definition:

submodule(homogenization) homogenization_mech_none
Comment 6 Jakub Jelinek 2019-08-12 08:54:53 UTC
GCC 9.2 has been released.
Comment 7 Jakub Jelinek 2020-03-12 11:58:43 UTC
GCC 9.3.0 has been released, adjusting target milestone.
Comment 8 Richard Biener 2021-06-01 08:11:39 UTC
GCC 9.4 is being released, retargeting bugs to GCC 9.5.