[Bug fortran/83567] Parametrized derived types: Segmentation fault when assigning a function return value

pault at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Dec 24 16:15:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83567

--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> ---
Created attachment 42962
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42962&action=edit
A partial fix for the PR

The attached patch clears the ICE and yields the correct result. However, there
is still a memory leak because the automatically allocated parameterized
component 'foo' of 'w' is not freed before the call to addw.

I'll complete the fix, as soon as my tree is cleared of the fix for another PR
that I am working on.

Cheers

Paul


More information about the Gcc-bugs mailing list