This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR fortran/34162: Internal procedure as actual argument
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Daniel Kraft <d at domob dot eu>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 3 Sep 2010 11:10:27 -0700
- Subject: Re: [Patch, Fortran] PR fortran/34162: Internal procedure as actual argument
- References: <4C80D03B.8020409@domob.eu>
On Fri, Sep 3, 2010 at 3:38 AM, Daniel Kraft <d@domob.eu> wrote:
> Hi,
>
> the attached patch implements the Fortran 2008 feature of internal
> procedures as actual arguments. ?Since the middle-end already supports this
> natively, all that had to be done was update the resolve.c check
> accordingly.
>
> I tried to add a challenging test-case, and it seems to work just like a
> charm. ?This feature is hopefully quite useful, at least myself I would have
> liked to use it already some times.
>
> Currently regtesting on GNU/Linux-x86-32. ?Ok for trunk if no regressions?
>
> Yours,
> Daniel
>
> --
> http://www.pro-vegan.info/
> --
> Done: ?Arc-Bar-Cav-Kni-Ran-Rog-Sam-Tou-Val-Wiz
> To go: Hea-Mon-Pri
>
> 2010-09-03 ?Daniel Kraft ?<d@domob.eu>
>
> ? ? ? ?PR fortran/34162
> ? ? ? ?* resolve.c (resolve_actual_arglist): Allow internal procedure
> ? ? ? ?as actual argument with Fortran 2008.
>
> 2010-09-03 ?Daniel Kraft ?<d@domob.eu>
>
> ? ? ? ?PR fortran/34162
> ? ? ? ?* gfortran.dg/internal_dummy_1.f03: Renamed from .f90, add
> -std=f2003.
> ? ? ? ?* gfortran.dg/internal_dummy_2.f08: New test.
> ? ? ? ?* gfortran.dg/internal_dummy_3.f08: New test.
> ? ? ? ?* gfortran.dg/internal_dummy_4.f08: New test.
>
This may have caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45525
H.J.