[Bug fortran/35718] deallocating non-allocated pointer target does not fail

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 27 16:50:00 GMT 2008



------- Comment #1 from burnus at gcc dot gnu dot org  2008-03-27 16:50 -------
Confirmed. gfortran deallocates the static memory as valgrind also complains:

==3839== Invalid free() / delete / delete[]
==3839==    at 0x4C2430F: free (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==3839==    by 0x4008F2: MAIN__ (aaa.f90:12)
==3839==    by 0x4009BB: main (fmain.c:21)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-27 16:50:00
               date|                            |


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



More information about the Gcc-bugs mailing list