From 3b8a3aa4ba4fb17be682e301b898a32f538b1716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 6 May 2018 09:52:04 +0200 Subject: [PATCH] Fixed crashes in daca --- lib/checkclass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index a581df4a8..c44b2ee79 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -280,7 +280,7 @@ static bool isNonCopyable(const Scope *scope, bool *unknown) bool u = false; // check if there is base class that is not copyable for (const Type::BaseInfo &baseInfo : scope->definedType->derivedFrom) { - if (!baseInfo.type) { + if (!baseInfo.type || !baseInfo.type->classScope) { u = true; continue; }