This patch replaces the hard-wired -1 of patch
https://gcc.gnu.org/ml/fortran/2015-01/msg00046.html by the later-added
#define.
Committed as obvious as Rev. 220135.
Tobias
Index: gcc/fortran/ChangeLog
===================================================================
--- gcc/fortran/ChangeLog (Revision 220134)
+++ gcc/fortran/ChangeLog (Arbeitskopie)
@@ -1,3 +1,7 @@
+2015-01-26 Tobias Burnus <bur...@net-b.de>
+
+ * io.c (gfc_match_inquire): Replace "-1" by a defined constant.
+
2015-01-26 Janus Weil <ja...@gcc.gnu.org>
PR fortran/64230
Index: gcc/fortran/io.c
===================================================================
--- gcc/fortran/io.c (Revision 220134)
+++ gcc/fortran/io.c (Arbeitskopie)
@@ -4000,7 +4000,7 @@ gfc_match_inquire (void)
if (inquire->unit != NULL && inquire->unit->expr_type == EXPR_CONSTANT
&& inquire->unit->ts.type == BT_INTEGER
- && mpz_get_si (inquire->unit->value.integer) == -1)
+ && mpz_get_si (inquire->unit->value.integer) == GFC_INTERNAL_UNIT)
{
gfc_error ("UNIT number in INQUIRE statement at %L can not be -1", &loc);
goto cleanup;