Cesium
Cesium copied to clipboard
Failed to parse explicit vararg declaration without other parameters
void console_read(...);
Exception
typeof(Cesium.Core.ParseException): expected { while parsing compound_statement
expected ; while parsing ;
but got OpenParen: (
Is it actually allowed, though? To me, the section 6.7.6 Declarators of the standard looks like it disallows single ...
in the parameter list.
gcc 12.2 from godbolt.org confirms this:
<source>:3:10: error: ISO C requires a named argument before '...'
3 | void foo(...);
I think we could add much better error reporting for this case, but we shouldn't actually compile this code.