codee-com/open-catalog

[Fortran] preprocessor of NAG compiler has limits

Open

#90 建立於 2025年6月30日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Fortran (12 fork)auto 404
Fortrangood first issuenew check

倉庫指標

Star
 (105 star)
PR 合併指標
 (PR 指標待抓取)

描述

Some Fortran codebases actively uses #include preprocessor statements. Usually, it compiles nicely, however, preprocessor of NAG compiler has the following limits:

Item Limits
Maximum INCLUDE file nesting 20
Maximum number of INCLUDE file references per compilation 2047

Then, one needs to adjust codebase to avoid this limitations.

It would be nice to check number of #include preprocessor statements and give warnings if their number exceeds NAG limits.

NAG compiler limits: https://support.nag.com/nagware/np/r72_doc/manual/compiler_2_7.html#LIMITS

貢獻者指南