arocc icon indicating copy to clipboard operation
arocc copied to clipboard

`static` keyword not allowed in array parameters for K&R style function definition

Open ehaas opened this issue 3 years ago • 0 comments

The following is not accepted but should be:

void foo(x)
    int x[static 5];
{

}
./test.c:2:10: error: 'static' used outside of function parameters
    int x[static 5];
         ^

ehaas avatar Jul 28 '22 06:07 ehaas