The function
main shall not be used within
a program
. A program that defines
main as
deleted or that declares
main to be
inline,
static, or
constexpr is ill-formed
. The function
main shall not be a coroutine (
[dcl.fct.def.coroutine])
. The
main function shall not be declared with a
linkage-specification (
[dcl.link])
. A program that declares a variable
main at global scope,
or that declares a function
main at global scope attached to a named module,
or that declares the name
main with C language linkage (in any namespace)
is ill-formed
. The name
main is
not otherwise reserved
.