https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97046

--- Comment #4 from Gilles Gouaillardet <gilles.gouaillardet at gmail dot com> 
---
I crafted the reproducer based on a previous one that has already been merged,
and using a libc subroutine was not an issue back then.

https://gcc.gnu.org/git?p=gcc.git;a=blob;f=gcc/testsuite/gfortran.dg/ISO_Fortran_binding_14.f90;h=388c5438252d49342f6bd357850062697fafb7b4;hb=980f185ce3ba6d532530ce0f23bfb6e30320fd8a


But I get your point, and you can

SUBROUTINE dummyc(x0) BIND(C, name="dummyc")

and then in dummyc.c

#include "ISO_Fortran_binding.h"

void dummyc (CFI_cdesc_t * x){
}



This does not change the fact that the test fails with GNU compilers though.

Reply via email to