mjklemm wrote: > That example is different because you used `program` in the fortran source. > The use case here is applications which implement `main` in C then call into > fortran code
Do you have a link line for ifort? It seems that your example fails with ifort, but indeed works with gfortran. The simple reason is that gfortran emits a main function into the translation unit if it has a program unit. If it does not, the main function is not generated. https://github.com/llvm/llvm-project/pull/73124 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits