This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran, 4.5] PR 39414 - PROCEDURE statement double declaration bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]