Closed klausler closed 4 years ago
Testing against f90_correct shows that there's still some bugs to fix in this code, so updates are coming. I'll comment again when all tests are passing. Also, I need to figure out how to emit ENTRY
points in module files.
Ok, the tests are greatly extended to cover additional cases, and they pass; so do all of the cases in the PGI Fortran suite. And I've figured out how I think ENTRY
should interact with module files.
Checks the constraints and the feasible "shalls" in 15.6.2.6 for
ENTRY
statements, their dummy arguments, and their results.Symbols for the entry points are created in the parent scope of the containing subprogram, and point to the scope of the containing subprogram. Symbols for
ENTRY
results, when functions, are within the scope of the containing subprogram.This PR checks semantics only; it doesn't do anything to represent sharing of dummy arguments, storage association of function results, &c.