[cfe-dev] Rejecting "void f(const void);"?
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
(18.104.22.168)." 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.
More information about the cfe-dev