Check that the inherited program is really finished in pass 2. Also extended those error messages so that mere mortals might understand what it really is about. Rev: src/program.c:1.743