Re: [Patch, FORTRAN] PR61933 Inquire on Internal Unit

2014-09-06 Thread Janne Blomqvist
On Sun, Sep 7, 2014 at 7:35 AM, Jerry DeLisle wrote: > On 06/09/14 21:08, Janne Blomqvist wrote: >> On Sun, Sep 7, 2014 at 12:51 AM, Jerry DeLisle wrote: >>> Hi, >>> >>> The attached patch adds a compile time check for negative unit numbers >>> given in >>> an INQUIRE statement. A new test case

Re: [Patch, FORTRAN] PR61933 Inquire on Internal Unit

2014-09-06 Thread Jerry DeLisle
On 06/09/14 21:08, Janne Blomqvist wrote: > On Sun, Sep 7, 2014 at 12:51 AM, Jerry DeLisle wrote: >> Hi, >> >> The attached patch adds a compile time check for negative unit numbers given >> in >> an INQUIRE statement. A new test case is provided and one updated. > > What about units opened with

Re: [Patch, FORTRAN] PR61933 Inquire on Internal Unit

2014-09-06 Thread Janne Blomqvist
On Sun, Sep 7, 2014 at 12:51 AM, Jerry DeLisle wrote: > Hi, > > The attached patch adds a compile time check for negative unit numbers given > in > an INQUIRE statement. A new test case is provided and one updated. What about units opened with newunit= ? Those have negative unit numbers. It seem

[Patch, FORTRAN] PR61933 Inquire on Internal Unit

2014-09-06 Thread Jerry DeLisle
Hi, The attached patch adds a compile time check for negative unit numbers given in an INQUIRE statement. A new test case is provided and one updated. Regression tested on x86-64. OK for trunk? 2014-09-06 Jerry DeLisle PR fortran/61933 * io.c (gfc_match_inquire): Add error