Skip to content

[flang] Many warnings issued from a module included by a use statement after disabling types #107337

@Renaud-K

Description

@Renaud-K

If you generate the ieee_arithmetic module while disabling types, there will be warnings. This could be expected and acceptable.
flang-new -fc1 -fdisable-real-3 -fdisable-real-10 -fdisable-integer-16 ieee_arithmetic.f90 -fsyntax-only

However, if you then compile a program, with the same compiler using this module, there will be warnings again.
ieee_main.f90

use ieee_arithmetic
end

flang-new -fc1 -fdisable-real-3 -fdisable-real-10 -fdisable-integer-16 ieee_main.f90
This however is no longer acceptable since there is nothing a user can do about them.

./ieee_arithmetic.mod:317:1: warning: REAL(KIND=3) is not an enabled type for this target
  real(3),intent(in)::y
  ^^^^^^^^^^^^^^^^^^^^^
./ieee_arithmetic.mod:389:1: warning: INTEGER(KIND=16) is not an enabled type for this target
  integer(16),intent(in)::radix
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions