Title
Incorrect restrictions on cv-qualifier-seq and ref-qualifier
Status
cd4
Section
9.5.1 [dcl.fct.def.general]
Submitter
David Krauss

Created on 2013-10-01.00:00:00 last changed 94 months ago

Messages

Date: 2014-11-15.00:00:00

[Moved to DR at the November, 2014 meeting.]

Date: 2014-02-15.00:00:00

Proposed resolution (February, 2014):

Change 9.5.1 [dcl.fct.def.general] paragraph 5 as follows:

A cv-qualifier-seq or a ref-qualifier (or both) can be part of a non-static member function declaration, non-static member function definition, or pointer to member function only (9.3.4.6 [dcl.fct]); see _N4868_.11.4.3.2 [class.this]. [Note: a cv-qualifier-seq affects the type of this in the body of a member function; see 9.3.4.3 [dcl.ref]. —end note]
Date: 2021-02-24.00:00:00

Paragraph 5 of 9.5.1 [dcl.fct.def.general] says,

A cv-qualifier-seq or a ref-qualifier (or both) can be part of a non-static member function declaration, non-static member function definition, or pointer to member function only (9.3.4.6 [dcl.fct]); see _N4868_.11.4.3.2 [class.this].

This is redundant with the specification in 9.3.4.6 [dcl.fct] paragraph 6 and is factually incorrect, since the list there contains other permissible constructs. It should be at most a note or possibly removed altogether.

History
Date User Action Args
2017-02-06 00:00:00adminsetstatus: drwp -> cd4
2015-05-25 00:00:00adminsetstatus: dr -> drwp
2015-04-13 00:00:00adminsetmessages: + msg5377
2014-11-24 00:00:00adminsetstatus: ready -> dr
2014-03-03 00:00:00adminsetmessages: + msg4831
2014-03-03 00:00:00adminsetstatus: open -> ready
2013-10-01 00:00:00admincreate