https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67202
Bug ID: 67202 Summary: Fortran FE should load scalar pass-by-reference intent-in arguments at the beginning of a function Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Created attachment 36178 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36178&action=edit Test case Hello. PR is follow-up of PR67170, where PRE can't hoist out an argument which is passed by reference and is intent-in. In the situation it would be beneficial to load the argument at the very beginning and transfer all references of the argument to the load. Please take a look at attached test case. Thanks, Martin