We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e43ba0 commit 9d5d624Copy full SHA for 9d5d624
lib/ClangImporter/ImportDecl.cpp
@@ -2659,7 +2659,10 @@ namespace {
2659
auto semanticsKind =
2660
evaluateOrDefault(Impl.SwiftContext.evaluator,
2661
CxxRecordSemantics({decl, Impl.SwiftContext}), {});
2662
- if (semanticsKind == CxxRecordSemanticsKind::MissingLifetimeOperation) {
+ if (semanticsKind == CxxRecordSemanticsKind::MissingLifetimeOperation &&
2663
+ // Let un-specialized class templates through. We'll sort out their
2664
+ // members once they're instranciated.
2665
+ !Impl.importSymbolicCXXDecls) {
2666
Impl.addImportDiagnostic(
2667
decl,
2668
Diagnostic(diag::record_not_automatically_importable,
0 commit comments