================
@@ -12486,6 +12486,14 @@ void Sema::CheckMain(FunctionDecl *FD, const DeclSpec
&DS) {
: FixItHint());
FD->setInvalidDecl(true);
}
+
+ // In C++ [basic.start.main]p3, it is said a program attaching main to a
+ // named module is ill-formed.
----------------
ChuanqiXu9 wrote:
nit: generally we we'll cite it directly:
```suggestion
// [basic.start.main]p3:
//
// ....
```
https://github.com/llvm/llvm-project/pull/146635
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits