Bug report
Andriy Kostyuk
kostyuk@fias.uni-frankfurt.de
Thu Nov 3 13:57:00 GMT 2011
Dear developers of GNU Fortran,
it seems I've found a bug in the compiler.
Please look at the example code in the attachement.
An elemental function ff cals another elemental function gg.
Exactly the same does the function f1.
The only difference is that ff calls gg with an array argument while
f1 makes two calls with scalar argument.
Both functions, ff and f1, work well if the optional argument b is present.
If the optional argument b is absent, f1 works well but ff results into
Segmentation fault
Here is the version of the compiler I have been using:
kostyuk@cosmic:~$ gfortran --version
GNU Fortran (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
Here is the Linux version:
kostyuk@cosmic:~$ uname -r
2.6.35-30-generic
Best regards,
Andriy Kostyuk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.f90
Type: text/x-fortran
Size: 1380 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111103/3ad0aa69/attachment.bin>
More information about the Fortran
mailing list