Skip to content

[5.9] [Macros] Don't allow types to shadow freestanding macros. #67514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

DougGregor
Copy link
Member

When performing name lookup for freestanding macros (e.g., after the #), don't allow types to shadow macros from imported libraries.

Fixes rdar://110429368.

When performing name lookup for freestanding macros (e.g., after the
`#`), don't allow types to shadow macros from imported libraries.

Fixes rdar://110429368.
@DougGregor DougGregor requested a review from a team as a code owner July 25, 2023 18:47
@DougGregor
Copy link
Member Author

@swift-ci please test

The implementation was previously finding the wrong macro declaration,
leading to incorrect results recorded as the expected results.
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 450807e into swiftlang:release/5.9 Jul 26, 2023
@DougGregor DougGregor deleted the freestanding-macros-step-into-the-light-5.9 branch July 26, 2023 04:42
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