collecting errors and detect self initializing declarations