https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99751
--- Comment #8 from Jan Hubicka <hubicka at gcc dot gnu.org> --- So we wrongly identify nodirectescape in store_to_c this is due to early exit in analyze_call that does not account for const call possibly returning its parameter. (An early confusion in EAF tracking logic before I settled up on the fact that returns are not escapes for local PTA). I am looking into fix. It is odd that this did not show earlier.