Skip to content

[rebranch][cxx-interop] Workaround a Swift compiler bug #8764

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

Conversation

bnbarham
Copy link

The swift compiler issue is fixed in swiftlang/swift#67775, but this is too recent for our hosttools builds. This works around the issue by making the constructor public.

(cherry picked from commit f7b421f)

```
<unknown>:0: error: calling a private constructor of class 'clang::StmtIterator'
swift/llvm-project/clang/include/clang/AST/StmtIterator.h:137:3: note: declared private here
  StmtIterator(const StmtIteratorBase &RHS)
  ^
```

rdar://113514872
(cherry picked from commit f7b421f)
@bnbarham bnbarham requested a review from egorzhdan May 16, 2024 00:31
@bnbarham bnbarham merged commit 23ba989 into swiftlang:stable/20240408 May 16, 2024
@bnbarham bnbarham deleted the cherry-cxx-interop-workaround branch May 16, 2024 00:31
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