Title
Type "reference to cv void" outside of a declarator
Status
drwp
Section
9.3.4.3 [dcl.ref]
Submitter
Jens Maurer

Created on 2022-03-13.00:00:00 last changed 4 months ago

Messages

Date: 2023-06-15.19:56:36

Proposed resolution (approved by CWG 2023-06-15):

Change in 9.3.4.3 [dcl.ref] paragraph 1 as follows:

A declarator that specifies Forming the type “reference to cv void” is ill-formed.
Date: 2023-06-15.00:00:00

[Accepted as a DR at the June, 2023 meeting.]

9.3.4.3 [dcl.ref] paragraph 1 specifies:

A declarator that specifies the type “reference to cv void” is ill-formed.

A declarator does not contain the leading decl-specifier-seq of a declaration, so the following example is not covered by the prohibition:

  void f(void& x);
History
Date User Action Args
2023-12-19 10:15:28adminsetstatus: dr -> drwp
2023-07-16 13:00:43adminsetstatus: ready -> dr
2023-06-15 19:56:36adminsetstatus: open -> ready
2022-03-13 14:10:52adminsetmessages: + msg6764
2022-03-13 00:00:00admincreate