In the following code, NUMERIC_STORAGE_SIZE is not being used (and technically not visible):
program reproducer
use iso_fortran_env, only: output_unit
implicit none
end program reproducer
Flang still a warning, when compiling the file like this:
> flang-new -fdefault-real-8 -c reproducer.f90
reproducer.f90:2:9: warning: NUMERIC_STORAGE_SIZE from ISO_FORTRAN_ENV is not well-defined when default INTEGER and REAL are not consistent due to compiler options
use iso_fortran_env, only: output_unit
^^^^^^^^^^^^^^^
Should this warning be issued when NUMERIC_STORAGE_SIZE is not visible?