Unverified Commit d4fd0a79 authored by jeanPerier's avatar jeanPerier Committed by GitHub
Browse files

[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.
parent d6ae4bd6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment