Hello,

Parameters that have an array type (fixed-length or variable-length) are
internally converted to have a pointer type instead (this is with 4.6.)
For example:

  static int
  bar (int foo[12])
  {
    return foo[2];
  }

is turned into:

  bar (unsigned int x, int * foo)
  ...

Is there a way array dimension info could be preserved?

I though using a REFERENCE_TYPE to an ARRAY_TYPE for ‘foo’ here could do
it, but the C front-end doesn’t support references.

Thanks,
Ludo’.

Reply via email to