This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 119a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-12-20
[Voted into WP at August, 2010 meeting.]
According to 11.4.5 [class.ctor] paragraph 1, onlyfunction-specifiers are permitted in the declaration of aconstructor, andconstexpr is not afunction-specifier.(See alsoissue 263, in which the resolutionof a similar concern regarding thefriend specifier did notchange 11.4.5 [class.ctor] paragraph 1 but perhaps should havedone so.)
Proposed resolution (February, 2010):
Change 11.4.5 [class.ctor] paragraph 1 as follows:
Constructors do not have names. A special declarator syntax
using an optional sequence offunction-specifiers(9.2.3 [dcl.fct.spec]) followed by the constructor's classname followed by a parameter listis used to declare or definethe constructor.The syntax uses
an optionaldecl-specifier-seq in which eachdecl-specifier is either afunction-specifier orconstexpr,
the constructor's class name, and
a parameter list
in that order. In such a declaration, optionalparentheses around the constructor class name areignored. [Example:...