[all-commits] [llvm/llvm-project] aee849: [Flang][Semantics] Fix crash on invalid function r...

ShashwathiNavada via All-commits all-commits at lists.llvm.org
Wed Apr 29 07:12:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aee84917ea7960abfa87ba353e5ee39e3ef81850
      https://github.com/llvm/llvm-project/commit/aee84917ea7960abfa87ba353e5ee39e3ef81850
  Author: ShashwathiNavada <shashwathinavada at gmail.com>
  Date:   2026-04-29 (Wed, 29 Apr 2026)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/resolve128.f90

  Log Message:
  -----------
  [Flang][Semantics] Fix crash on invalid function result declaration (#194648)

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

When the function result symbol is encountered while the compiler is
already completing the function result type, flang could recursively
re-enter _CompleteFunctionResultType()_ and crash on invalid code.

Instead of crashing on conflicting declarations, flang now reports an
“already declared” error and stops further recursion.



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