report errors in name resolution, close #49