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

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

Messages

Date: 2022-03-13.14:10:52

Suggested resolution:

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: 2022-03-13.00:00:00

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
2022-03-13 14:10:52adminsetmessages: + msg6764
2022-03-13 00:00:00admincreate