Skip to content
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

[clang][ObjectiveC] Fix Parsing the :: Optional Scope Specifier (#119908) #9782

Open
wants to merge 1 commit into
base: swift/release/6.1
Choose a base branch
from

Conversation

qiongsiwu
Copy link

The parser hangs when processing types/variables prefixed by :: as an optional scope specifier. For example,

- (instancetype)init:(::A *) foo;

The parser should not hang, and it should emit an error. This PR implements the error check.

rdar://140885078
(cherry picked from commit 1418018)

…vm#119908)

The parser hangs when processing types/variables prefixed by `::` as an
optional scope specifier. For example,
```
- (instancetype)init:(::A *) foo;
```

The parser should not hang, and it should emit an error. This PR
implements the error check.

rdar://140885078
(cherry picked from commit 1418018)
@qiongsiwu qiongsiwu requested a review from a team as a code owner December 20, 2024 19:12
@qiongsiwu
Copy link
Author

@swift-ci Please smoke test

1 similar comment
@qiongsiwu
Copy link
Author

@swift-ci Please smoke test

@qiongsiwu
Copy link
Author

@swift-ci Please smoke test macOS platform

@qiongsiwu
Copy link
Author

@swift-ci Please smoke test Linux platform

@qiongsiwu
Copy link
Author

@swift-ci Please smoke test

@qiongsiwu
Copy link
Author

@swift-ci please test

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