Fixed crashes in daca

This commit is contained in:
Daniel Marjamäki 2018-05-06 09:52:04 +02:00
parent 8c2a5c9813
commit 3b8a3aa4ba
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}