This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 110b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2023-01-15


882. Defining main as deleted

Section: 6.9.3.1  [basic.start.main]     Status: CD2     Submitter: Steve Adamczyk     Date: 27 April, 2009

It should be stated in 6.9.3.1 [basic.start.main] that it a program that defines main as deleted is ill-formed.

Proposed resolution (July, 2009):

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

...A program that declares main to be inline, static, or constexpr, or that defines main as deleted, is ill-formed...