Topic: Defect Report: volatile void as function parameter type


Author: Michiel Salters<Michiel.Salters@cmg.nl>
Date: 10 Jan 02 02:46:30 GMT
Raw View
 [Moderator's note: this defect report has been
 forwarded to the C++ committee. -moderator.]

In article <p2E_7.8629$cD4.15700@www.newsranger.com>, Michiel Salters said
(but forgot the right subject format)

8.3.5/2 [dcl.fct] 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, 8.3.5 should also ban cv-qualified versions.
(BTW, this follows C)

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, <INSERT>(cv-qualified) </INSERT> void shall not be a
parameter type (though types derived from void, such as void*, can)."

Regards,

--
Michiel Salters
Consultant Technical Software Engineering
CMG Trade, Transport & Industry
Michiel.Salters@cmg.nl
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]