[flang-commits] [flang] [flang] Move internal Fortran::ISO namespace out of user-facing ISO_F… (PR #72909)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed Nov 22 06:42:30 PST 2023


klausler wrote:

> Thanks for the fast response!
> 
> Line 172 of the updated version of `ISO_Fortran_binding.h `defines the macro `CFI_CDESC_T` using `::Fortran::ISO::cfi_internal...` This no longer works because the namespaces `Fortran` and `ISO` have been removed.
> 
> Also, existing C++ code that wraps an include of `ISO_Fortran_binding.h `with `extern "C"`will stil l run into problems because it will think that the header file contains pure C code. That is, it will not allow templates or namespaces. This has the relatively easy fix of just removing the `extern "C"` declaration, though.

Sorry that I missed that, will try again.

https://github.com/llvm/llvm-project/pull/72909


More information about the flang-commits mailing list