Skip to content

[Flang] Irritating warning about NUMERIC_STORAGE_SIZE while not used #100376

@mjklemm

Description

@mjklemm

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions