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


1791. Incorrect restrictions on cv-qualifier-seq and ref-qualifier

Section: 9.5.1  [dcl.fct.def.general]     Status: CD4     Submitter: David Krauss     Date: 2013-10-01

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

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.

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]