https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126890
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |tkoenig at gcc dot gnu.org
Resolution|--- |DUPLICATE
--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Current trunk outputs:
#include <stddef.h>
#ifdef __cplusplus
#include <complex>
#define __GFORTRAN_FLOAT_COMPLEX std::complex<float>
#define __GFORTRAN_DOUBLE_COMPLEX std::complex<double>
#define __GFORTRAN_LONG_DOUBLE_COMPLEX std::complex<long double>
extern "C" {
#else
#define __GFORTRAN_FLOAT_COMPLEX float _Complex
#define __GFORTRAN_DOUBLE_COMPLEX double _Complex
#define __GFORTRAN_LONG_DOUBLE_COMPLEX long double _Complex
#endif
#include <ISO_Fortran_binding.h>
void proc (const CFI_cdesc_t *str);
void subr (void (*p) (const CFI_cdesc_t *str));
#ifdef __cplusplus
}
#endif
which looks good. This was the fix for PR 122245 .
The only thing to consider is if we need to backport this.
*** This bug has been marked as a duplicate of bug 122245 ***