Re: [C PATCH] C: Error message for incorrect use of static in array declarations

2024-06-24 Thread Marek Polacek
On Sun, Jun 23, 2024 at 08:42:36PM +0200, Martin Uecker wrote: > > This adds an explicit error message for [static] and [static*]  > (the same as clang has) instead of the generic "error: expected > expression before ']' token", which is not entirely accurate. > For function definitions the subseq

[C PATCH] C: Error message for incorrect use of static in array declarations

2024-06-23 Thread Martin Uecker
This adds an explicit error message for [static] and [static*]  (the same as clang has) instead of the generic "error: expected expression before ']' token", which is not entirely accurate. For function definitions the subsequent error "[*] can not be used outside function prototype scope" is the