[flang-commits] [flang] [Flang] Extra check for character length in pointer allocation (PR #95145)
Carlos Seo via flang-commits
flang-commits at lists.llvm.org
Thu Jun 13 08:53:58 PDT 2024
================
@@ -495,23 +498,24 @@ bool AllocationCheckerHelper::RunChecks(SemanticsContext &context) {
"Allocatable object in ALLOCATE must be type compatible with type-spec"_err_en_US);
return false;
}
+ if (!HaveSameAssumedTypeParameters(*type_, *allocateInfo_.typeSpec)) {
+ // C935
----------------
ceseo wrote:
Ack
https://github.com/llvm/llvm-project/pull/95145
More information about the flang-commits
mailing list