You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Reject VLA declarators with * outside function definitions
- Reject type qualifiers and storage class specifiers in array
declarators outside function prototypes
According to the C standard (C99/C11):
- Variable length array declarators with * are only valid in function
parameter declarations within function definitions (not declarations)
- Type qualifiers (like restrict, const, volatile) in array declarators
are only valid in function parameter declarations
- Storage class specifiers (like static) in array declarators are only
valid in function parameter declarations within function prototypes or
definitions
These constructs are not valid in:
- File scope variable declarations
- Block scope variable declarations
- Any array declarator in non-parameter contexts
Fixes: #132
0 commit comments