| Subject: | Re: [patch, fortran] PR40008 F2008: Add NEWUNIT= for OPEN statement |
|---|---|
| From: | Tobias Burnus |
| Date: | Sun, 07 Jun 2009 10:52:38 +0200 |
Jerry DeLisle wrote:
> Regression tested on x86-64-linux-gnu.
> OK for trunk?
OK. Thanks for the patch.
+ && mpz_sgn (fp->unit->value.integer) < 0)
+ gfc_error ("UNIT number in CLOSE statement at %L must be positive",
+ gfc_error ("UNIT number in statement at %L must be positive",
I'm wondering whether is should be "must be nonnegative"? The reason is
that 0 is not uncommon for stderr. The check is OK, however.
"Nonnegative" also matches the Fortran standard: "a file-unit-number
whose value is nonnegative or equal to one of the named constants INPUT
UNIT, OUTPUT UNIT, or ERROR UNIT of the ISO FORTRAN ENV module
(13.8.2)." (F2003, 9.4). Fortran 2008 just added (in 9.5.1): "...or a
NEWUNIT value".
Tobias
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] New pass to partition single function into multiple (resubmission), Revital1 Eres |
|---|---|
| Next by Date: | Re: [patch, libfortran] [4.4/4.5 Regression] changed BACKSPACE behaviour at end of file., Tobias Burnus |
| Previous by Thread: | Re: [patch, fortran] PR40008 F2008: Add NEWUNIT= for OPEN statement, Jerry DeLisle |
| Next by Thread: | [Patch,Fortran,Committed] PR29962 - add simplifier for dot_product, matmul, transpose (F2003), Tobias Burnus |
| Indexes: | [Date] [Thread] [Top] [All Lists] |