arocc icon indicating copy to clipboard operation
arocc copied to clipboard

Incorrect warning for static keyword on VLA parameter

Open ehaas opened this issue 3 years ago • 0 comments

void foo(int x, int y[static x]) {

}

There should be no warning, arocc warns:

./test.c:1:23: warning: 'static' useless without a constant size
void foo(int x, int y[static x]) {
                      ^

ehaas avatar Jul 28 '22 06:07 ehaas