This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] dec comparisons - for review
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Mark Eggleston <mark dot eggleston at codethink dot co dot uk>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, fortran <fortran at gcc dot gnu dot org>
- Date: Fri, 15 Nov 2019 06:34:24 -0800
- Subject: Re: [Patch, Fortran] dec comparisons - for review
- References: <3d0c58f3-d755-7880-94d0-26134e24b8b5@codethink.co.uk>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
On Fri, Nov 15, 2019 at 10:40:56AM +0000, Mark Eggleston wrote:
> This patch allows comparison of numeric values with Holleriths. This
> feature is not guarded by a compiler option as it is preferred that
> extra options should avoided, this seems reasonable as current Hollerith
> support does not have such an option.
IMHO.
Has the comparison of a numeric value and a hollerith
ever been allowed in a Fortran standard? If the answer
is 'No', then you should (1) put the comparison behind
an option, and (2) have gfortran issue an error without
the option. If this is a DEC extension, then put it
behind -fdec. If this misfeature is not a DEC extension
but allow some ancient piece of code to compile, then
put it behind -std=lagacy.
--
steve