# HG changeset patch # User Christian Kamm # Date 1240334249 -7200 # Node ID 0c8048e138673604907419a39d51c1c6192c3367 # Parent 4b0b470bb2f94327328ffc5d94412a40769b16e4 Add forgotten null check. diff -r 4b0b470bb2f9 -r 0c8048e13867 gen/functions.cpp --- a/gen/functions.cpp Tue Apr 21 18:57:29 2009 +0200 +++ b/gen/functions.cpp Tue Apr 21 19:17:29 2009 +0200 @@ -388,7 +388,7 @@ // queue declaration unless the function is abstract without body; // bodyless functions in an abstract class are considered abstract - ClassDeclaration* cd = fdecl->parent->isClassDeclaration(); + ClassDeclaration* cd = fdecl->isMember() ? fdecl->isMember()->isClassDeclaration() : NULL; bool isabstract = fdecl->isAbstract() || (cd && cd->isAbstract()); if (!isabstract || fdecl->fbody) {