diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index ee19e02c1..e604c1963 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -188,7 +188,7 @@ void CheckClass::constructors() if (!var->isPointer() && !(var->type() && var->type()->needInitialization != Type::True) && (func->type == Function::eCopyConstructor || func->type == Function::eOperatorEqual)) { - if (!var->typeStartToken()->isStandardType()) { + if (var->valueType()->type <= ValueType::Type::RECORD) { if (printInconclusive) inconclusive = true; else