Issue 66186
Summary Decision required for CWG GitHub Issue 422 on [basic.start.main]
Labels new issue
Assignees
Reporter Eisenwave
    See https://github.com/cplusplus/CWG/issues/422.

In short, it is currently unclear what constitutes "use" of the `main` function and Clang implements this very aggressively. It is the only compiler which flags `decltype(main)`.

My suggested solution for the issue in [[basic.start.main] p3](https://eel.is/c++draft/basic.start.main#3) is
```diff
 The function main shall not be
-used
+odr-used
 within the program.
```
This would invalidate the current behavior because `decltype(main)` is not odr-use.

Is there a strong reason for LLVM to flag `decltype(main)` or is the suggested solution acceptable?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to