[Bug fortran/46884] Use of charlen after free
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 13 11:11:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46884
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-13 11:11:26 UTC ---
Author: jakub
Date: Mon Dec 13 11:11:22 2010
New Revision: 167742
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167742
Log:
PR fortran/46884
* symbol.c (gfc_new_charlen): If old_cl is non-NULL, put it
at the ns->old_cl_list spot in the chain rather than at
ns->cl_list.
* gfortran.dg/pr46884.f: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/pr46884.f
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/symbol.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list