https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92533
Bug ID: 92533 Summary: [F2018] Permit module names in access-stmt (public::/private::) Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Fortran 2018 now permits: module A use B private :: B Namely, R827 access-stmt is access-spec[ [ :: ]access-id-list] C870 (R828) Each access-name shall be the name of a module, variable, procedure, derived type, named constant, or namelist group. Fortran 2008 had: R524 access-stmt is access-spec[ [ :: ]access-id -list] C563(R525) Each use-name shall be the name of a named variable, procedure, derived type, named constant, or namelist group. Currently, the code gets rejected with: Error: PRIVATE attribute applied to MODULE … or Error: PUBLIC attribute applied to MODULE …