Issue 10984 - Better diagnostic for static function frame access error

http://d.puremagic.com/issues/show_bug.cgi?id=10984