Skip to content

[cxx-import] a Swift module that imports 'CxxStdlib' and forces the client to enable interop produces unclear diagnostic #65832

Closed
@hyp

Description

@hyp

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.c++ interopFeature: Interoperability with C++c++ to swiftFeature → c++ interop: c++ to swiftcompilerThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of Implementationmultiple modulesFlag: An issue whose reproduction requires multiple modulesserializationArea → compiler: Serialization & deserializationswift 5.9

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions