[all-commits] [llvm/llvm-project] 29b383: [Flang] Fix crash when a derived type with private...

Carlos Seo via All-commits all-commits at lists.llvm.org
Tue Aug 26 02:36:42 PDT 2025


  Branch: refs/heads/release/21.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 29b3836c91bcbdb4916ae7ec5079b28432290d7d
      https://github.com/llvm/llvm-project/commit/29b3836c91bcbdb4916ae7ec5079b28432290d7d
  Author: Carlos Seo <carlos.seo at linaro.org>
  Date:   2025-08-26 (Tue, 26 Aug 2025)

  Changed paths:
    M flang/include/flang/Lower/ConvertType.h
    M flang/lib/Lower/ConvertExprToHLFIR.cpp
    M flang/lib/Lower/ConvertType.cpp
    A flang/test/Lower/derived-type-private.f90

  Log Message:
  -----------
  [Flang] Fix crash when a derived type with private attribute is specified in extends (#151051)

While lowering to HLFIR, when a parent type is private, its name is
mangled, so we need to get it from the parent symbol.

Fixes #120922

(cherry picked from commit 9bb31e8f88ab49c3f983067540e553dd13fd3b42)



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