Title
Clarify "use" of main
Status
drwp
Section
6.9.3.1 [basic.start.main]
Submitter
Jan Schultke

Created on 2023-10-12.00:00:00 last changed 4 months ago

Messages

Date: 2023-12-16.00:18:01

Proposed resolution (approved by CWG 2023-12-15):

Change in 6.9.3.1 [basic.start.main] paragraph 3 as follows:

The function main shall not be used within a program named by an expression. ...
Date: 2023-12-02.13:35:39

CWG 2023-12-01

CWG favored to ban any mention of main.

Date: 2024-03-15.00:00:00

[Accepted as a DR at the March, 2024 meeting.]

Subclause 6.9.3.1 [basic.start.main] paragraph 3 specifies:

The function main shall not be used within a program. ...

It is unclear what "use" means. N3214 excluded this appearance from the clarifications of "use" that were turned into "odr-use". For example, it is unclear whether decltype(main) is allowed or not.

History
Date User Action Args
2024-07-20 13:52:34adminsetstatus: dr -> drwp
2024-04-05 21:43:46adminsetstatus: ready -> dr
2024-03-20 14:10:31adminsetstatus: tentatively ready -> ready
2023-12-16 00:18:01adminsetstatus: review -> tentatively ready
2023-12-02 13:35:39adminsetmessages: + msg7532
2023-12-02 13:35:39adminsetstatus: open -> review
2023-10-18 19:38:14adminsetmessages: + msg7464
2023-10-12 00:00:00admincreate