[all-commits] [llvm/llvm-project] 034bab: [flang] Diagnose invalid initializations
Peter Klausler via All-commits
all-commits at lists.llvm.org
Sat Jan 28 17:00:49 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 034bab4cc83d86cfb334bada488b88bf761a1e71
https://github.com/llvm/llvm-project/commit/034bab4cc83d86cfb334bada488b88bf761a1e71
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2023-01-28 (Sat, 28 Jan 2023)
Changed paths:
M flang/lib/Semantics/resolve-names.cpp
M flang/test/Semantics/init01.f90
Log Message:
-----------
[flang] Diagnose invalid initializations
f18 current ignores attempts to initialize (with =expr) things
that are not objects, or allows meaningless initializations of
things that have mistakenly been promoted to be objects.
Fix by refusing to promote to objects names that have any
attributes that cannot be applied to objects, and then catch
data initializations of symbols that are not objects.
Differential Revision: https://reviews.llvm.org/D142766
More information about the All-commits
mailing list