Permit inherit_program() to compile from a different function.