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.
2 parents 708782d + 81c7fb0 commit 0ebe45dCopy full SHA for 0ebe45d
lib/ClangImporter/ImportDecl.cpp
@@ -2764,8 +2764,8 @@ namespace {
2764
// with complete fields, and we're not in a dependent context(this is
2765
// equivalent to the logic in CanDeclareSpecialMemberFunction in Clang's
2766
// SemaLookup.cpp).
2767
- if (!decl->isBeingDefined() && !decl->isDependentContext() &&
2768
- areRecordFieldsComplete(decl)) {
+ assert(!decl->isBeingDefined() && "can only import fully defined decls");
+ if (!decl->isDependentContext() && areRecordFieldsComplete(decl)) {
2769
if (decl->hasInheritedConstructor()) {
2770
for (auto member : decl->decls()) {
2771
if (auto usingDecl = dyn_cast<clang::UsingDecl>(member)) {
0 commit comments