Skip to content

C++ using decls that refer to member operators in a base class are not callable #69990

Closed
@egorzhdan

Description

@egorzhdan

MSVC's implementation of std::vector::iterator uses using Base::operator-;, which currently doesn't result in func -(_:std.vector.iterator,_:std.vector.iterator) being created. This operator is required for the automatic conformance to UnsafeCxxRandomAccessIterator. The lack of it prevents the conformance of std.vector to CxxRandomAccessCollection from being synthesized on Windows in #69433.

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 itselfswift 6.0unexpected behaviorBug: Unexpected behavior or incorrect output

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions