================ @@ -964,7 +964,7 @@ def err_main_global_variable : def warn_main_redefined : Warning<"variable named 'main' with external linkage " "has undefined behavior">, InGroup<Main>; def ext_main_used : Extension< - "ISO C++ does not allow 'main' to be used by a program">, InGroup<Main>; + "expressions that refer to 'main' are an extension">, InGroup<Main>; ---------------- cor3ntin wrote:
no, it's not. `main` is named by an expression (which is unevaluated) https://github.com/llvm/llvm-project/pull/96168 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits