This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2024-11-11
[Applied to WP at the February, 2014 meeting.]
Should it be permitted for main to have a deduced return type?
(See also issue 1676.)
Proposed resolution (November, 2013):
Change 6.9.3.1 [basic.start.main] paragraph 2 as follows:
An implementation shall not predefine the main function. This function shall not be overloaded. It shall have a declared return type of type int, but otherwise its type is implementation-defined.
All implementationsAn implementation shall allow both
a function of () returning int and
a function of (int, pointer to pointer to char) returning int
as the type...