This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] F2008 - implement pointer function assignment
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: FX <fxcoudert at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 27 Aug 2015 18:23:55 +0200
- Subject: Re: [Patch, fortran] F2008 - implement pointer function assignment
- Authentication-results: sourceware.org; auth=none
- References: <CAGkQGiKErpkGU_nSZH1Z1s9SCekBWWSGTpOiKRXaA8PytjK=4g at mail dot gmail dot com> <B33324B9-1F57-4ACD-ADAA-BED55DB2344B at gmail dot com>
Dear FX and Mikael,
Please hold off on reviewing the patch until I say so. Some rather
trivial looking tidying up before submission has introduced a dozen or
so regressions :-(
Cheers
Paul
On 27 August 2015 at 16:54, FX <fxcoudert@gmail.com> wrote:
> Hi Paul,
>
> Iâll get to reviewing the patch tonight or tomorrowâ
>
> I think it shouldnât be too hard to get the ambiguity lifted. We already can do it for array assignment vs. statement functions, so maybe we could get a hint from that?
>
> touille /tmp $ cat a.f90
> integer :: f(2) = 0
> integer :: x = 1
> f(x) = x
> x = 2
> print *, f(x)
> end
> touille /tmp $ cat b.f90
> integer :: f
> integer :: x = 1
> f(x) = x
> x = 2
> print *, f(x)
> end
> touille /tmp $ gfortran a.f90 && ./a.out
> 0
> touille /tmp $ gfortran b.f90 && ./a.out
> 2
>
>
>
> FX
--
Outside of a dog, a book is a man's best friend. Inside of a dog it's
too dark to read.
Groucho Marx