Opened 2 years ago
#276 new defect
Cannot give outermost array-param's length from earlier param
Reported by: | mlbrooks | Owned by: | |
---|---|---|---|
Priority: | trivial | Component: | cfa-cc |
Version: | 1.0 | Keywords: | |
Cc: |
Description ΒΆ
void f( int n, int a[n] );
GCC actual, CFA expected: accept
CFA actual: reject (bad "-CFA" code gen)
For context:
void f( int n, int a[][n] );
GCC actual, CFA actual and expected: accept
Which is to say, the ticket's title is technically wrong. In the buggy case, the user-specified parameter type is a pointer (with specified length, which is a legal C no-op), rather than an array.
Note: See
TracTickets for help on using
tickets.