ludovic.cour...@inria.fr (Ludovic Courtès) writes: > Declaring the parameter above as ‘int x[a]’ is valid C99. I fail to see > why this is insufficient for the purposes we discussed. Could you clarify?
Sorry, I hadn't realized that C99 permitted that. The standard does clearly state that in prototype scope it is treated as '*', so according to the standard f(int a, int x[static a]); is equivalent to f(int a, int x[static *]); which is not helpful. Still, you are probably right that it would be reasonable to extend gcc's support of this. Ian