On Fri, Sep 29, 2017 at 11:15:47AM +0200, Janus Weil wrote:
> Hi Steve,
> 
> > As aside effect, the patch removes a questionable GNU Fortran
> > extension that allowed arguments to IAND, IOR, and IEOR to have
> > different kind type parameters.  The behavior of this extension
> > was not documented.
> 
> I don't really like that part. We were using the nice and convenient
> mechanism of gfc_notify_std here, which allows the developer to choose
> via the -std flag whether to strictly adhere to a chosen Fortran
> standard or to allow GNU extensions etc. You're taking away that
> flexibility and replacing it by an unconditional error. I don't
> actually think that's a good idea.
> 
> In general one can argue about whether or not it's a good idea to use
> non-std extensions. But I think gfortran should rather leave the
> choice to its users, whether they want to use 'dirty and covenient'
> code or have very strict checking. We have nice mechanisms for this,
> and I do think we should keep them.
> 

It is undefined behavior.  I withdraw the patch.

-- 
Steve
20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
20161221 https://www.youtube.com/watch?v=IbCHE-hONow

Reply via email to