flang icon indicating copy to clipboard operation
flang copied to clipboard

Fix the bug where the name of ENTRY is used as an argument

Open qiaozhang-hnc opened this issue 3 years ago • 2 comments

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.

qiaozhang-hnc avatar May 27 '21 09:05 qiaozhang-hnc

@reviewers what about this one?

pawosm-arm avatar Jul 27 '22 11:07 pawosm-arm

We are using this in our downstream compiler already. @shivaramaarao Could you review and approve?

bryanpkc avatar Jul 27 '22 12:07 bryanpkc