diff --git a/decl.cpp b/decl.cpp index 5ec58462..c62f0b6f 100644 --- a/decl.cpp +++ b/decl.cpp @@ -266,7 +266,8 @@ Declarator::GetFunctionInfo(DeclSpecs *ds, std::vector *funArgs) { funArgs->push_back(sym); } - funSym->type = funSym->type->ResolveUnboundVariability(Type::Varying); + if (funSym != NULL) + funSym->type = funSym->type->ResolveUnboundVariability(Type::Varying); return funSym; }