[cfe-dev] Rejecting "void f(const void);"?

Eli Friedman eli.friedman at gmail.com
Fri Feb 15 06:21:25 PST 2008


On Fri, Feb 15, 2008 at 5:25 AM, Neil Booth <neil at daikokuya.co.uk> wrote:
> Eli Friedman wrote:-
>  See http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_017.html,
>  part 14.  Intent seems to be to give implementations license to reject.

Yeah... section J.2 says "A storage-class specifier or type qualifier
modifies the keyword void as a function parameter type list
(6.7.5.3)." is undefined behavior. That said, there's nothing in the
referred-to section that actually makes it illegal.  So I'd still like
to try and get some clarification.

-Eli



More information about the cfe-dev mailing list