https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122957
--- Comment #4 from Steve Kargl <kargl at gcc dot gnu.org> --- (In reply to Martin Köhler from comment #3) > Even if the code compiled with the -fdefault-integer-8 option has some > smell, due to fact that it is most likely legacy code, it would be nice to > allow some workaround, which is portable over the Fortran compilers. The -fdefault-* options are a workaround for legacy and programmers who do not want to properly port their code to a different precision. I doubt user-defined IO appears in legacy code. > I checked the flang-based compilers and it seems that there the integer size > in the user defined IO functions chnage with their "integer-8" flag. Thus, > to ensure the compatibility, having the user defined io working with > integer-8 would be great. gfortran's implementation is 2 decades older that flang. It's a shame that flang chose to be incompatible with gfortran. > By now at least having a proper warning/error > message that indicate this point would be helpful as well. See comment #2.
