I have the following crash inside of Angelscript, in asCCompiler::MatchArgument:
Seems like GetBehaviour is returning null because the parameter it's matching there (with paramNum as index) is a funcdef. Perhaps it should just get a null check? The code that seems to trigger it is this:
array<cvar_type> cfuncParams = { cvar_type::String };
AddFunction("give_item", cfuncParams, GiveItemCFunc);
Tested on the latest SVN version.