link error caused by conforming C++ type to Equatable #72826
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c++ interop
Feature: Interoperability with C++
c++ to swift
Feature → c++ interop: c++ to swift
compiler
The Swift compiler itself
conformances
Feature → protocol: protocol conformances
Equatable
Area → standard library: The `Equatable` protocol
linker error
multiple files
Flag: An issue whose reproduction requires multiple files
swift 5.10
unexpected error
Bug: Unexpected error
Description
After conforming a C++ type to Equatable, I get a link error. This requires using attached project since it seems the extension needs to be in a separate translation unit.
CompilerCrash.zip
Reproduction
where SharedThing is:
Expected behavior
No link error
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: