[all-commits] [llvm/llvm-project] bca131: [flang] Accept structure constructor value for pol...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Feb 14 16:00:49 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bca13174bc77e7a986bfaba6c384073b4e9fa8cf
https://github.com/llvm/llvm-project/commit/bca13174bc77e7a986bfaba6c384073b4e9fa8cf
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-02-14 (Mon, 14 Feb 2022)
Changed paths:
M flang/lib/Evaluate/tools.cpp
M flang/lib/Semantics/expression.cpp
M flang/test/Semantics/data02.f90
M flang/test/Semantics/structconst01.f90
M flang/test/Semantics/structconst02.f90
Log Message:
-----------
[flang] Accept structure constructor value for polymorphic component
Semantic analysis was emitting a bogus error message when a structure
constructor contains a monomorphic value for a (limited) polymorphic
component of a derived type. The type compatibility test was too
strict; this patch relaxes it a little to allow values that could
be assigned or passed to a variable or dummy argument with that type.
Also add some quotes to an error message that was sometimes confusing
without them, and remove a repeated space character from another.
Differential Revision: https://reviews.llvm.org/D119744
More information about the All-commits
mailing list