This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] PR 40881: warn for obsolescent features


2009/8/1 Robert Dewar <dewar@adacore.com>:
> Janus Weil wrote:
>> the Fortran 90 standard lists nine "obsolescent" f77 features, which
>> continue to be supported in f90, but may be deleted in the future.
>> Therefore their usage is discouraged by the standard. Currently, we
>> only warn about two of them (arithmetic if and assumed length
>> character functions). This patch adds warnings for four more:
>
> I assume that these warnings can be controlled as a group? It is
> not clear you want to warn unconditionally for such usage.

The warnings are present for -std=f95 and above (i.e.
f95/f2003/f2008), while -std=legacy turns them off.
Of course this -std=... flags also controls many other stuff, and one
might think about adding and extra -Wobsolete flag in the future, but
this is not yet included in my patch.


> And if anyone thinks these features might actually be removed, they are
> deluding themselves. Think back to the attempt to remove the ALTER
> verb in COBOL-90. A major company threatened to sue the members of
> the standards committee individually, and they backed down :-)

I personally would not have any problem with them getting deleted, but
this is another question.

I just think gfortran should give the same signals to its users as the
Fortran standard does, namely that these features are
obsolete/redundant and can/should be replaced by other features.

Cheers,
Janus


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]