On 2026-07-14 09:56:44 +0000, Alexy via Tinycc-devel wrote:
> #include <stdio.h>
> 
> int main()
> {
>     char t[5][0];
[...]

This is a constraint violation:

In ISO C99, 6.7.5.2 Array declarators:

  [...] If they delimit an expression (which specifies the size of an
  array), the expression shall have an integer type. If the expression
  is a constant expression, it shall have a value greater than zero.
  [...]

So this is just a missing diagnostic, not a serious bug!

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to