Name resolution 2.0 is too permissive with module ribs
Open
Nobody has claimed this yet.
bug
name resolution
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 231
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 67
Description
I expected to see this happen: the code fails to compile with -frust-name-resolution-2.0 - module ribs do not allow access to super items by default.
Meta
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the two linked examples with -frust-name-resolution-2.0 and compare their behavior with the expected module-rib access rules. Review commit 65f283d and the compiler's name-resolution implementation to identify why access to super items is permitted; done means both examples fail to compile as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100