Skip to content

[cxx-interop] Name lookup failures in C++20 mode on Linux #65710

@egorzhdan

Description

@egorzhdan

Running test/Interop/Cxx/concepts/method-requires.swift on Linux exposes a name lookup issue:

test/Interop/Cxx/concepts/method-requires.swift:5:9: error: cannot find 'MyStruct' in scope
var s = MyStruct()
        ^~~~~~~~

This is only reproducible when -Xcc -std=gnu++20 is passed.

Metadata

Metadata

Assignees

Labels

LinuxPlatform: LinuxbugA 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 itselfname lookupArea → compiler → type checker: Name lookupswift 5.9unexpected errorBug: Unexpected error

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions