Skip to content

Commit d35c7de

Browse files
authored
Merge pull request swiftlang#73086 from apple/egorzhdan/bail-on-std-tzdb
[cxx-interop] Do not try to import `std::tzdb`
2 parents 0a2167c + c90cb4b commit d35c7de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2650,6 +2650,13 @@ namespace {
26502650
return nullptr;
26512651
}
26522652

2653+
// Bail if this is `std::tzdb`. This type causes issues in copy
2654+
// constructor instantiation.
2655+
// FIXME: https://github.com/apple/swift/issues/73037
2656+
if (decl->isInStdNamespace() && decl->getIdentifier() &&
2657+
decl->getName() == "tzdb")
2658+
return nullptr;
2659+
26532660
auto &clangSema = Impl.getClangSema();
26542661
// Make Clang define any implicit constructors it may need (copy,
26552662
// default). Make sure we only do this if the class has been fully defined

0 commit comments

Comments
 (0)