-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.c++ interopFeature: Interoperability with C++Feature: Interoperability with C++c++ to swiftFeature → c++ interop: c++ to swiftFeature → c++ interop: c++ to swiftcompilerThe Swift compiler itselfThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationmultiple modulesFlag: An issue whose reproduction requires multiple modulesFlag: An issue whose reproduction requires multiple modulesserializationArea → compiler: Serialization & deserializationArea → compiler: Serialization & deserializationswift 5.9
Description
RIght now when a Swift module A enables interoperability and imports Cxxstdlib, and Swift module B that consumes it doesn't, the compiler will fail to compile B with the following error:
<unknown>:0: error: cannot load underlying module for 'CxxStdlib'
This diagnostic should be improved, and should suggest to the user to enable C++ interoperability.
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.c++ interopFeature: Interoperability with C++Feature: Interoperability with C++c++ to swiftFeature → c++ interop: c++ to swiftFeature → c++ interop: c++ to swiftcompilerThe Swift compiler itselfThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationmultiple modulesFlag: An issue whose reproduction requires multiple modulesFlag: An issue whose reproduction requires multiple modulesserializationArea → compiler: Serialization & deserializationArea → compiler: Serialization & deserializationswift 5.9