https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- (In reply to anlauf from comment #4) --- > > Indeed, the unit is defined as default integer, which for gfortran is > > kind=4. The option -fdefault-integer=8 is an extension falling outside the > > Fortran Standards so the test case is in a sense invalid. I will change > > this to an ENHANCEMENT and not really a bug. I think we could outright > > reject it as invalid. > > The standard does no longer restrict unit or iostat to be a default integer. > > Nowadays, there is a requirement for iostat to have a decimal exponent range > of at least four, but this is certainly the case for integer(8). > > We might need to audit the argument checks for (IO)STAT type variables. I will follow up on at least looking at it.