[Bug fortran/98433] double free detected in tcache 2, after merge of structures

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 23 22:43:11 GMT 2020


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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org
           Priority|P3                          |P4

--- Comment #1 from kargl at gcc dot gnu.org ---

The issue goes away if you replace this line:

x3 = merge(x1, x2, .false.)

with the likely correct line

x3%v = merge(x1%v, x2%v, .false.)


More information about the Gcc-bugs mailing list