This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR fortran/37992 ICE while resolving charlen for rejected statements
- From: Tobias Burnus <burnus at net-b dot de>
- To: Mikael Morin <mikael dot morin at tele2 dot fr>
- Cc: gfortran <fortran at gcc dot gnu dot org>, correctifs gcc <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 16 Nov 2008 20:20:16 +0100
- Subject: Re: [Patch, Fortran] PR fortran/37992 ICE while resolving charlen for rejected statements
- References: <4911E55C.8080601@tele2.fr>
Mikael Morin wrote:
> regression tested on x86_64-unknown-linux-gnu.
>
OK. Thanks for the patch and sorry for the late review.
Tobias
> 2008-11-05 Mikael Morin <mikael.morin@tele2.fr>
>
> PR fortran/37992
> * gfortran.h (gfc_namespace): Added member old_cl_list, backup of cl_list.
> (gfc_free_charlen): Added prototype.
> * symbol.c (gfc_free_charlen): New function.
> (gfc_free_namespace): Use gfc_free_charlen.
> * parse.c (next_statement): Backup gfc_current_ns->cl_list.
> (reject_statement): Restore gfc_current_ns->cl_list.
> Free cl_list's elements before dropping them.
>
>
> 2008-11-05 Mikael Morin <mikael.morin@tele2.fr>
>
> PR fortran/37992
> * gfotran.dg/charlen_free_1.f90: New test.
>
>