Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flang] Downgrade error message to warning #108115

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Commits on Sep 10, 2024

  1. [flang] Downgrade error message to warning

    It is a non-mandatory error to reference an external procedure
    via an implicit interface declaration (EXTERNAL or PROCEDURE())
    when the external procedure has an interface that requires the
    presence of an explicit interface to be called.
    
    Until now, the compiler has issued a fatal error message from
    semantics for this situation.  But (1) there are situations,
    such as passing such an EXTERNAL as an actual argument, or
    as the target of a procedure pointer assignment, where little
    or no harm is done, (2) other compilers don't/can't detect this
    error, even when the procedure's definition is in the same source
    file, and (3) it shows up in some real applications.
    
    So downgrade this error to a stern warning.  Perhaps in the future
    the compiler could resume emission of a hard error in the cases
    where the EXTERNAL procedure is actually known to be called via
    its implicit interface.
    klausler committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    440828b View commit details
    Browse the repository at this point in the history