[Patch] Fortran/OpenMP: Fix optional dummy procedures [PR99171]

Tobias Burnus Tobias_Burnus@mentor.com
Mon Feb 22 12:06:56 GMT 2021


Normal dummy arguments get some additional redirection if they are
OPTIONAL; however, that's not the case for dummy procedures.

That was shown by a simple 'procedure(), optional :: proc' example
in the PR. – The fix is as simple.

However, I thought it still makes sense to test all combinations of
procedure pointer (incl. c_funptr) with optional and pointer...

OK for mainline and GCC 10 (it is a 10/11 regression)?

Tobias

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omp-dummy.diff
Type: text/x-patch
Size: 12216 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210222/a18c2d5d/attachment.bin>


More information about the Gcc-patches mailing list