https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115070
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org --- Comment #9 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 58263 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58263&action=edit Patch that fixes this PR Somehow, when a null is returned from the call to gfc_trans_class_init_assign, the messing around with blocks at the end of gfc_generate_function_code loses the declaration. I tried giving the ieee calls their own block and merging it to the top of 'body'. That fixed this PR but broke a number of ieee tests in the testsuite. This fix is not very elegant but it does work and even regtests OK. I am continuing to work on it before submitting this patch. Paul