Skip to content

Conversation

egorzhdan
Copy link
Contributor

pthread_mutexattr_t should be getting its implicit default constructor instantiated by Clang. Due to a Clang bug, the constructor was being instantiated, needsImplicitDefaultConstructor was being set to false, but the constructor wasn't being added to decl->members(). This prevented Swift from correctly importing the constructor.

This relies on John's change: llvm/llvm-project#161933.

rdar://161999293

`pthread_mutexattr_t` should be getting its implicit default constructor instantiated by Clang. Due to a Clang bug, the constructor was being instantiated, `needsImplicitDefaultConstructor` was being set to `false`, but the constructor wasn't being added to `decl->members()`. This prevented Swift from correctly importing the constructor.

This relies on John's change: llvm/llvm-project#161933.

rdar://161999293
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Oct 10, 2025
@egorzhdan
Copy link
Contributor Author

swiftlang/llvm-project#11614

@swift-ci please smoke test

@egorzhdan egorzhdan merged commit 12cf75d into swiftlang:main Oct 10, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ interop Feature: Interoperability with C++

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants