This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR 44584: [4.6 Regression] Invalid memory access with gfortran.dg/typebound_proc_15.f03
- From: Tobias Burnus <burnus at net-b dot de>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 03 Aug 2010 11:26:19 +0200
- Subject: Re: [Patch, Fortran] PR 44584: [4.6 Regression] Invalid memory access with gfortran.dg/typebound_proc_15.f03
- References: <AANLkTim0SFxtT1pR+MwXNGVL8WoGAN+2-p4NCg95=qQi@mail.gmail.com>
On 08/03/2010 10:59 AM, Janus Weil wrote:
> the attached patch fixes some error recovery problems on
> typebound_proc_15 and 16 in the testsuite. When compiled with
> -std=2003, they would yield valgrind errors and ICEs. The hunk in
> class.c fixes PR 44584, while the one in resolve.c fixes PR 45161.
> After applying the fix, two other test cases showed additional error
> messages (correctly).
>
> The attached patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?
OK. Thanks for the patch!
Tobias
> 2010-08-03 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/44584
> PR fortran/45161
> * class.c (add_procs_to_declared_vtab1): Don't add erroneous procedures.
> * resolve.c (resolve_tb_generic_targets): Check for errors.
>
>
> 2010-08-03 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/44584
> PR fortran/45161
> * gfortran.dg/typebound_call_9.f03: Modified.
> * gfortran.dg/typebound_generic_1.f03: Modified.