This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR55984 [4.8 Regression] [OOP] ICE: gfc_trans_code(): Bad statement code & PR56047 [4.8 Regression]
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>
- Date: Sun, 27 Jan 2013 00:15:14 +0100
- Subject: Re: [Patch, fortran] PR55984 [4.8 Regression] [OOP] ICE: gfc_trans_code(): Bad statement code & PR56047 [4.8 Regression]
- References: <CAGkQGiKJU1pzvO8kz7HxJYYnvvGZNsX4sfpj6pDYLGxLCwODVg@mail.gmail.com>
Hi Paul,
> This patch builds on Janus's suggestion in the PR. The ChangeLog
> explains it all.
>
> Bootstrapped and regtested on x86_64/FC17 - OK for trunk?
looks good to me. Thanks a bunch!
Cheers,
Janus
> 2013-01-26 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/55789
> PR fortran/56047
> * gfortran.h : Add associate_var to symbol_attr.
> * resolve.c (resolve_assoc_var): Set associate_var attribute.
> If the target class_ok is set, set it for the associate
> variable.
> * check.c (allocatable_check): Associate variables should not
> have the allocatable attribute even if their symbols do.
> * class.c (gfc_build_class_symbol): Symbols with associate_var
> set will always have a good class container.
>
> 2013-01-26 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/55789
> * gfortran.dg/associate_14.f90: New test.
>
> PR fortran/56047
> * gfortran.dg/associate_13.f90: New test.