couldn't find an existing mail about this typedef bug

commit 80bef6162aac355227242fc8b8cb4610df7cd75d adds code to tcctest.c that 
triggers the bug, giving me this error:
        tcctest.c:1774: error: too many initializers
the line:
        arrtype1 sinit20 = {2,3};

reordering works around the issue, which is why I think that tcc saves the 
array size of the first variable with an initializer to check against
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -1768,10 +1768,10 @@ struct complexinit2 cix22 = {
 };
 
 typedef int arrtype1[];
+arrtype1 sinit20 = {2,3};
 arrtype1 sinit19;
 arrtype1 sinit20;
 arrtype1 sinit19 = {1};
-arrtype1 sinit20 = {2,3};

tested with musl (shouldn't make a difference vs. glibc):
        ./configure --dwarf=5 --config-musl --debug --enable-static
        make ; make test

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

Reply via email to