https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68560
Mikael Morin <mikael at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36902|0 |1 is obsolete| | --- Comment #17 from Mikael Morin <mikael at gcc dot gnu.org> --- Created attachment 36937 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36937&action=edit Updated patch This patch is just an update, it doesn't work really better than the first one. I start to understand better this 'ignore_optional' stuff. In the library, there are several variants of the procedures, with and without optional arguments. The correct one is picked during resolution (in iresolve.c). So, depending on the one that has been picked, the arguments have to be passed or ignored. The case of 'kind' is special, because it is always used (if present) in the specific procedure name, and should never be passed, even if it was present.