This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR 40117: [OOP][F2008] Type-bound procedure: allow list after PROCEDURE
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- 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: Fri, 11 Jun 2010 20:45:41 -0700
- Subject: Re: [Patch, Fortran] PR 40117: [OOP][F2008] Type-bound procedure: allow list after PROCEDURE
- References: <AANLkTim25xmEtkBSS53YF3-JTbRwPrBrMjVqUYt2BtXZ@mail.gmail.com>
On Sat, Jun 12, 2010 at 04:28:02AM +0200, Janus Weil wrote:
>
> here is a simple parsing patch which adds a minor F08 extension:
> Declaring a list of type-bound procedures. In F03 each TBP had to be
> declared with a separate PROCEDURE statement. In F08 this restriction
> is gone and lists are allowed.
>
> The patch basically just takes the parsing code for the type-bound
> PROCEDURE statement and puts it inside a loop (with some adjustments).
> It also adds a standards-version check, which will reject procedure
> lists with -std=f2003 or earlier. I had to slightly modifiy one test
> case, and added two new ones: One to make sure that the parsing of
> lists works, and one to check that the rejection works.
>
> Regtested on x86_64-unknown-linux-gnu. Ok for trunk?
>
OK.
--
Steve