Opened 11 months 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.

Change History (0)

Note: See TracTickets for help on using tickets.