Closed
Description
The current wording in [basic.start.main] p3 is:
The function main shall not be used within a program.
There is no forward reference for what "use" refers to and the word doesn't seem to be defined anywhere, so I'm pretty sure this is meant to mean odr-use:
A function is odr-used if it is named by a potentially-evaluated expression or conversion.
- Can we just replace "use" with "odr-use"?
- Is CWG intent clear enough for this to be non-editorial or is there more to it?
C++98 Wording
The function main shall not be used (3.2 [basic.def.odr]) within a program.
An object or non-overloaded function is used if its name appears in a potentially-evaluated expression.
Metadata
Metadata
Assignees
Labels
No labels