[Patch, fortran] Fix elemental optional dummy argument handling
Mikael Morin
mikael.morin@sfr.fr
Fri May 8 13:07:00 GMT 2015
Hello,
I found a (unrelated) bug while playing with Andre's PR65894 patch.
The dummy argument can get out of sync with the actual argument when
there is an (optional) argument missing.
I plan to commit the attached fix as obvious later today (after testing).
Mikael
-------------- next part --------------
2015-05-08 Mikael Morin <mikael@gcc.gnu.org>
* trans-array.c (gfc_walk_elemental_function_args):
Don't skip the advance to the next dummy argument when skipping
absent optional args.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elemental_optional.diff
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150508/a1669b40/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elemental_optional_args_7.f90
Type: text/x-fortran
Size: 879 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150508/a1669b40/attachment-0001.bin>
More information about the Fortran
mailing list