[Patch, Fortran] PR 40117: [OOP][F2008] Type-bound procedure: allow list after PROCEDURE
Steve Kargl
sgk@troutmask.apl.washington.edu
Sat Jun 12 06:54:00 GMT 2010
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
More information about the Gcc-patches
mailing list