This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, 4.5] PR 39414 - PROCEDURE statement double declaration bug
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- 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, 10 Mar 2009 18:01:52 +0100
- Subject: Re: [Patch, Fortran, 4.5] PR 39414 - PROCEDURE statement double declaration bug
- References: <854832d40903100841y703dfc55t1974b0a760eebc2f@mail.gmail.com>
Janus,
In general, a repeated type declaration is legal, as long as it
confirms the type. We fixed this for intrinsic types when I first got
involved with gfortran - it's in one of the Loren Meissner examples,
if I recall correctly.
Thus I am not at all convinced that either of the code fragments in
the PR is invalid.
Paul
On Tue, Mar 10, 2009 at 4:41 PM, Janus Weil <janus@gcc.gnu.org> wrote:
> Hi all,
>
> here is my fix for PR39414. It's regression-tested on
> x86_64-unknown-linux-gnu. Ok for 4.5?
>
> Cheers,
> Janus
>
>
> 2009-03-10 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/39414
> * decl.c (match_procedure_decl): Fix double declaration problems with
> PROCEDURE statements.
> * symbol.c (gfc_add_type): Ditto.
>
>
> 2009-03-10 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/39414
> * proc_decl_21.f90: New.
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy