[all-commits] [llvm/llvm-project] d46c63: [flang] Fix derived type compatibility checking in...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Aug 8 11:06:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d46c639ebf19eacc6bd37240981ff1b1ef497b1b
      https://github.com/llvm/llvm-project/commit/d46c639ebf19eacc6bd37240981ff1b1ef497b1b
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-08-08 (Thu, 08 Aug 2024)

  Changed paths:
    M flang/include/flang/Evaluate/type.h
    M flang/lib/Evaluate/type.cpp
    M flang/lib/Semantics/check-allocate.cpp
    M flang/test/Semantics/allocate08.f90

  Log Message:
  -----------
  [flang] Fix derived type compatibility checking in ALLOCATE (#102035)

The derived type compatibility checking for ALLOCATE statements with
SOURCE= or MOLD= was only checking for the same derived type name. That
is a necessary but not sufficient check, and it can produce bogus errors
as well as miss valid errors.

Fixes https://github.com/llvm/llvm-project/issues/101909.



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