#224: open64 does not distinguish 1st and 2nd nesting level of SRs ------------------------------+--------------------------------------------- Reporter: utke | Owner: utke Type: defect | Status: accepted Priority: major | Milestone: scale1 Component: Open64 front end | Keywords: ------------------------------+--------------------------------------------- Comment(by utke): Note that in the attached example the local variables of foo are elevated to module variables in the output while the formal parameter is not. ========== WORKAROUND ========== So a possibe workaround is to at least pass to bar the same parameters that foo accepts and the output is semantically correct (although the syntax problem with potential name clashes is not solved) The solution is illustrated in Open64/osprey1.0/tests/TestSources/nesting_workaround.f90 It illustrates the name clash between the foo's local variable i that is being elevated to a module variable and the program's p which then conflicts with the new module variable i so we have to add the only qualifier to solve the clash -- Ticket URL: <https://trac.mcs.anl.gov/projects/openAD/ticket/224#comment:6> OpenAD <http://www.mcs.anl.gov/openad> Bug tracking for OpenAD components