function/procedure definition error reporting