[all-commits] [llvm/llvm-project] 374c47: [Flang] Give a more specific error message for exp...
Andre Kuhlenschmidt via All-commits
all-commits at lists.llvm.org
Fri Feb 21 13:14:38 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 374c470cd19381caef4a06f6c794703c47cf3752
https://github.com/llvm/llvm-project/commit/374c470cd19381caef4a06f6c794703c47cf3752
Author: Andre Kuhlenschmidt <andre.kuhlenschmidt at gmail.com>
Date: 2025-02-21 (Fri, 21 Feb 2025)
Changed paths:
M flang/include/flang/Parser/parse-tree.h
M flang/lib/Lower/IO.cpp
M flang/lib/Parser/io-parsers.cpp
M flang/lib/Semantics/check-io.cpp
M flang/test/Semantics/io03.f90
M flang/test/Semantics/io04.f90
M flang/test/Semantics/unsigned-errors.f90
Log Message:
-----------
[Flang] Give a more specific error message for expressions where an IO Unit is expected (#126970)
This PR fixes #125446 by specializing the error message that is
generated when an arbitrary expression is used as an IO Unit. See the
tests for specific examples, but the general gist is that if you use a
non-variable expression as the IO unit argument to a read or write, you
now get a more specific error message indicating the the expression
could have been a scalar integer expression or character variable.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list