Message ID | d96e44ae-1bd5-6690-cb68-e9768ea8839b@charter.net |
---|---|
State | New |
Headers | show |
diff --git a/libgfortran/io/inquire.c b/libgfortran/io/inquire.c index 2bb518b6..7751b8df 100644 --- a/libgfortran/io/inquire.c +++ b/libgfortran/io/inquire.c @@ -41,7 +41,9 @@ inquire_via_unit (st_parameter_inquire *iqp, gfc_unit * u) const char *p; GFC_INTEGER_4 cf = iqp->common.flags; - if (iqp->common.unit == GFC_INTERNAL_UNIT || iqp->common.unit == GFC_INTERNAL_UNIT4) + if (iqp->common.unit == GFC_INTERNAL_UNIT || + iqp->common.unit == GFC_INTERNAL_UNIT4 || + u->internal_unit_kind != 0) generate_error (&iqp->common, LIBERROR_INQUIRE_INTERNAL_UNIT, NULL);