Example:

////////////////////////////////////////////

#include<stdio.h>
int main() {
    struct asdasd x;
    printf("%d\n", sizeof(x));
}

////////////////////////////////////////////

This should fail cleanly at compile, and it does in 0.9.25 ( "unknown type
size")

In my version ("tcc version 0.9.26 (i386 Win32)") in Win7-64 it crashes.

I was hit by this, not by mispelling a struct but because my code was
trying to use a struct from malloc.h (mallinfo) that is not declared in TCC
(which is right, that's a GCC thing)

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

Reply via email to