Skip to content

Conversation

@tmjbios
Copy link

@tmjbios tmjbios commented Jan 23, 2026

This patch disables a test of the old access-spec functionality.

A recent flang PR enforces PUBLIC and PRIVATE accessibility as defined starting in F2018, and passed initially as paper J3/13-327r3; the description is from "Whats New In Fortran 2018" by John Reid:

If a module A uses module B, the default accessibility for entities
it accesses from B is that of A.  Specifying another accessibility
for each entity is awkward and error prone. It is now possible
for the name of a module to be included in the list of names of entities
made public or private on a public or private statement.
This sets the default for all entities accessed from that module.

In the F2023 standard, this is clause 8.6.1(1).

Related Flang PR: llvm/llvm-project#177596

This patch disables a test which is the old access-spec functionality.

A recent flang patch enforces PUBLIC and PRIVATE accessibility as defined
starting in F2018, and passed initially as paper J3/13-327r3;
the description is from "Whats New In Fortran 2018" by John Reid:

    If a module A uses module B, the default accessibility for entities
    it accesses from B is that of A.  Specifying another accessibility
    for each entity is awkward and error prone. It is now possible
    for the name of a module to be included in the list of names of entities
    made public or private on a public or private statement.
    This sets the default for all entities accessed from that module.

In the F2023 standard, this is clause 8.6.1(1).
Copy link
Contributor

@tarunprabhu tarunprabhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@tmjbios
Copy link
Author

tmjbios commented Jan 23, 2026

I don't have merge permissions yet, so merge this whenever you can please; Flang PR 177596 will go in sometime.

@tarunprabhu
Copy link
Contributor

I'll keep an eye on #177596. I'll merge this when that is approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants