https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92482
Bug ID: 92482
Summary: Possibly wrong error diagnostic
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: jrfsousa at gmail dot com
Target Milestone: ---
Created attachment 47225
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47225&action=edit
Code demonstrating problems.
What seems to me a spurious error is flagged by gfortran 10.0.0 20191106:
Error: Character argument ‘this’ at (1) must be length 1 because procedure
‘strg_print_0’ is BIND(C)
Gfortran 9.1.0 also issues a warning and the code generated raises a
segmentation fault:
Warning: ‘.this’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
I may be missing the something in the standard but I see no clause demanding
this behavior and it is used on C.12.14 Mapping of MPI interfaces to Fortran.
Thank you very much.
Best regards,
José Rui