[flang-commits] [clang] [flang] [flang][Driver] Let the linker fail on multiple definitions of main() (PR #73124)

Daniel Chen via flang-commits flang-commits at lists.llvm.org
Tue Dec 19 08:28:43 PST 2023


DanielCChen wrote:

The test cases actually have C main indeed and call to Fortran procedures as opposed to what I thought (the other way around). Adding `-fno-fortran-main` fixed all of them!
May be I missed it when reading through the comments of this PR, why there is a definition of `main()` being generated on the Fortran side when the Fortran sources are procedures or modules?


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


More information about the flang-commits mailing list