This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] fixes for functions
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Cc: burnus at net-b dot de
- Date: Tue, 10 Jul 2007 19:14:24 +0200
- Subject: Re: [patch, fortran] fixes for functions
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=Ofu8rf5KqEI2q9Q52YtGcYsOucpm1TQbqiF//W/fokfuxLLfwuRjuhvvUPF90qscIai7rXgOVbqjNKKPtEwedZiOWieNcyY6TIsgPXJ1lDu4i4rzk5UD940xgoPAbYHcE271ze3UiyLkYmE5+UYkMumXSA1hLhLDHvk4Qj8cgpc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=PHbUuQXnaCzz1PvhpWsXqwkH0ZOM7mFCzKYdcpgR+9RXebyj9uWqq5fTAVjPDvFz/ywkZW0K3FcbMkxFbndSWE95hwRrcVajmKhlWWkIQWW6gAv9rKidaD7JFiO3SwTHVABmQAQVF4XCvXZed0PH//wgXUbFpJ/M90lQw7Q8gTU=
- References: <1250.134.95.66.147.1184070503.squirrel@www.webmail.uni-koeln.de>
On Tuesday 10 July 2007 14:28:23 Tobias Burnus wrote:
> > 2007-07-09 Daniel Franke <franke.daniel@gmail.com>
> >
> > * decl.c (gfc_match_suffix): Removed surplus general error that hides
> > a more specific message.
> > * resolve.c (resolve_fl_variable): Reject illegal initializiers only
> > if not already done.
> > (resolve_fl_procedure): Added check for initializers of functions.
> >
> > Regression tested on i686-pc-linux-gnu. Ok for trunk?
>
> This patch fails for me when used with statement functions:
>
> Z2(x) = x*(Alft-x)/Vg - x*(x-Alfb)/Vf
> 1
> Error: Function 'z2' at (1) cannot have an inital value
>
> Actually, I also get tons of errors from the test suite for the same
> reason.
You are right. I thought I ran bootstrap and check over night and took the
results on my screen for the most actual ones. Unfortunately, the results
shown were outdated. As mistakes accumulate lately, I take this as a hint
that I spent to much time working, not only on gfortran but in general. If
someone wants to pick up this patchlet, be my guest -- I'll take a few days
off for recreation ...
Regards
Daniel