Ensure that the compiler does not emit duplicate errors at slightly different source positions. Reviewed-by: mcimadamore