This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix fortran/PR20846 "inquire(FILE=..., UNIT=...) not flagged as error"
On Tue, May 24, 2005 at 11:47:49PM +0300, Janne Blomqvist wrote:
> On Tue, May 24, 2005 at 11:28:37AM -0700, Steve Kargl wrote:
> > On Tue, May 24, 2005 at 09:02:11PM +0300, Janne Blomqvist wrote:
> > > ChangeLog:
> > > PR fortran/20846
> > >
> > > * trans-io.c (gfc_trans_inquire): Add sanity check for UNIT and
> > > FILE.
> >
> > Do you have write access to cvs?
>
> Nope.
Do you want access? Toon? Paul B? Janne has contributed
other patches.
> > ! { dg-do compile }
> > program inquire_1
> > character(len=20) :: n = 'data'
> > integer :: d = 23
> > logical a
> > inquire(file=n,unit=d,opened=a) ! { dg-error "cannot contain both FILE and UNIT" }
> > end program inquire_1
>
> Thanks, I think that one will do nicely.
If no one beats me to it, I'll bootstrap and regression test this
on i386-*-freebsd and amd64-*-freebsd, commit your patch and close
the PR this weekend.
--
Steve