Title
cv-qualified void parameter types
Status
cd3
Section
9.3.4.6 [dcl.fct]
Submitter
Michiel Salters

Created on 2002-01-09.00:00:00 last changed 34 months ago

Messages

Date: 2012-02-15.00:00:00

[Voted into the WP at the February, 2012 meeting; moved to DR at the October, 2012 meeting.]

Date: 2011-08-15.00:00:00

Proposed resolution (August, 2011):

This issue is resolved by the resolution of issue 577.

Date: 2022-02-18.07:47:23

Suggested resolution:

A possible resolution would be to add (cv-qualified) before void in

The parameter list (void) is equivalent to the empty parameter list. Except for this special case, (cv-qualified) void shall not be a parameter type (though types derived from void, such as void*, can).
Date: 2022-02-18.07:47:23

9.3.4.6 [dcl.fct]/2 restricts the use of void as parameter type, but does not mention CV qualified versions. Since void f(volatile void) isn't a callable function anyway, 9.3.4.6 [dcl.fct] should also ban cv-qualified versions. (BTW, this follows C)

History
Date User Action Args
2022-02-18 07:47:23adminsetmessages: + msg6681
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2012-11-03 00:00:00adminsetstatus: dr -> drwp
2012-02-27 00:00:00adminsetmessages: + msg3809
2012-02-27 00:00:00adminsetstatus: ready -> dr
2011-09-06 00:00:00adminsetmessages: + msg3460
2011-09-06 00:00:00adminsetstatus: open -> ready
2002-01-09 00:00:00admincreate