flang
flang copied to clipboard
Fix the bug where the name of ENTRY is used as an argument
Flang doesn’t catch and handle the syntax error that the name of an entry point is used as an argument when a result clause is present, ultimately causing a segmentation fault in flang2. This patch fixes the issue by catching and reporting the syntax error described above. It then restores the right state.
@reviewers what about this one?
We are using this in our downstream compiler already. @shivaramaarao Could you review and approve?