This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] dec comparisons - for review


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


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