This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: host association question


Hi,

marco restelli wrote:
> On 11/20/06, Dominique Dhumieres <dominiq@lps.ens.fr> wrote:
>> With gcc version 4.3.0 20061118, your second test gives:
>> bad_func_1.f90:9.19:
>> function internal_f
>>                   1
>> Error: Expected formal argument list in function definition at (1)
>> bad_func_1.f90:10.22:
gfortran is right, for functions the parentheses are mandatory:

R1224 function-stmt is
   [ prefix ] FUNCTION function-name ( [ dummy-arg-name-list ] ) [ suffix ]

> I did not realize mine is included in "early versions of gfortran".
Well, gfortran 4.0.x - broken, don't use.
gfortran 4.1.x rather mature compiler, but still some rough edges
gfortran 4.2 and 4.3: Many rough edges removed.


I have now taken the example of the first email, added "()" and added it
as not-working example to PR 29916.
http://gcc.gnu.org/ml/fortran/2006-11/msg00520.html

I think we agree(d) that this is a bug in gfortran.

Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]