Created on 2014-02-03.00:00:00 last changed 94 months ago
[Moved to DR at the November, 2014 meeting.]
Proposed Resolution (July, 2014):
Change 11.4.5 [class.ctor] paragraph 1 as follows:
Constructors do not have names.AIn a declaration of a constructor,usesthe declarator is a function declarator (9.3.4.6 [dcl.fct]) of the form...
Change 11.4.7 [class.dtor] paragraph 1 as follows:
AIn a declaration of a destructor,usesthe declarator is a function declarator (9.3.4.6 [dcl.fct]) of the form...
The description of the required syntax for declaring a destructor in 11.4.7 [class.dtor] paragraph 1 says,
A declaration of a destructor uses a function declarator (9.3.4.6 [dcl.fct]) of the form
ptr-declarator ( parameter-declaration-clause ) exception-specificationopt attribute-specifier-seqopt
where the ptr-declarator...
A declaration such as
(~S())
arguably “uses” a declarator of the required form, since the cited wording does not forbid placing a declarator of that form inside parentheses. (Similar considerations apply to the syntax of constructors in 11.4.5 [class.ctor] paragraph 1.) There is implementation divergence on this point. The wording should be clarified as to whether parentheses surrounding a declarator of the required form are permitted or not.
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-02-06 00:00:00 | admin | set | status: drwp -> cd4 |
2015-05-25 00:00:00 | admin | set | status: dr -> drwp |
2015-04-13 00:00:00 | admin | set | messages: + msg5398 |
2014-11-24 00:00:00 | admin | set | status: tentatively ready -> dr |
2014-10-13 00:00:00 | admin | set | messages: + msg5141 |
2014-10-13 00:00:00 | admin | set | status: open -> tentatively ready |
2014-02-03 00:00:00 | admin | create |