compiler: ensure that .generate() is re-enterable