https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90093
Bug ID: 90093 Summary: Extended C interop: optional argument incorrectly identified as PRESENT Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: Bader at lrz dot de Target Milestone: --- Created attachment 46166 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46166&action=edit UNIX archive with test case The attached test code can be compiled with gcc -c optional_02_pos.c gfortran optional_02_pos.f90 optional_02_pos.o and produces the output FAIL 2 T T T The cause of this is that the call of the procedure from C with NULL as first argument is incorrectly treated. This appears to be a regression of the most recent fixes for the C descriptor.