This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/45384] [OOP] double free with SELECT TYPE



------- Comment #4 from sfilippone at uniroma2 dot it  2010-08-24 10:24 -------
(In reply to comment #3)
With dump-tree-original I see this code snippet: 

        finally
          {
            if (aa.$data != 0B)
              {
                __builtin_free ((void *) aa.$data);
              }
          }

I believe this is wrong, because aa.$data is always an alias to an
independently allocated data area, hence the double free. Of course I have no
idea why this happens or how to fix it, but you already guessed that :-)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45384


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]