Skip to content

[ASTVerifier] Workaround for issue with imported C++ templates. #70342

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

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

hborla
Copy link
Member

@hborla hborla commented Dec 9, 2023

A recent ASTVerifier change exposed an issue where imported C++ template declarations can contain type parameters with no generic environment.

This workaround is for #70328

…es where

types contain type parameters without a generic environment.
@hborla
Copy link
Member Author

hborla commented Dec 9, 2023

@swift-ci please smoke test

abort();
// FIXME: Workaround for invalid AST for imported C++ templates.
if (!var->hasClangNode()) {
// If we are performing pack iteration, variables have to carry the
Copy link
Member

Choose a reason for hiding this comment

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

Should we remove the mention of pack iteration here?

@mikeash mikeash merged commit e052833 into swiftlang:main Dec 9, 2023
@hborla hborla deleted the verifier-workaround branch December 9, 2023 01:34
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.

3 participants