http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57987
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-07-30 Ever confirmed|0 |1 --- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I suppose the old test was simply a bug: cgraph_finalize_function creates node when it does not exist and uses existing one otherwise. So I suppose the new patch is OK - the conditional ought to match condition on which generate_coarray_init is called. What we had was just latent bug hidden by the cgraph_finalize_function lazyness. If things get complex, simply calling cgraph_get_create_node on all nested functions may be better option. Honza