[all-commits] [llvm/llvm-project] d4fd0a: [flang] Fix symbol on module subroutine name with ...
jeanPerier via All-commits
all-commits at lists.llvm.org
Thu Sep 28 09:00:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d4fd0a792f602d32261ce85d55a7d8f295ee42a8
https://github.com/llvm/llvm-project/commit/d4fd0a792f602d32261ce85d55a7d8f295ee42a8
Author: jeanPerier <jperier at nvidia.com>
Date: 2023-09-28 (Thu, 28 Sep 2023)
Changed paths:
M flang/lib/Semantics/resolve-names.cpp
M flang/test/Semantics/symbol28.f90
Log Message:
-----------
[flang] Fix symbol on module subroutine name with same name as generic (#67678)
When a MODULE SUBROUTINE or MODULE FUNCTION is implemented in the same
scope as its interface and appears in a generic with the same name, the
parse::Name of the implementation was not correctly reset and remained
the SubprogramNameDetails symbol after semantics, causing a crash in
lowering that picks up the procedure symbols on the parser names.
Reset the parser::Name symbol before the new symbol is created.
More information about the All-commits
mailing list