Closed
Description
Currently we defer reporting undefined names until we reach iteration limit. A better solution would be to track whether any new names were added, and if not, make one more iteration where report all errors.
Note that this will also allow a cleaner solution for #6412