It appears that `#include <stdio.h>` implicitly causes `<stddef.h>` to be
included.
I haven't tracked down how this happens.

I'm using the latest version of tinycc (commit 3e8f1da9, 2025-11-17),
built from source on Ubuntu x86_64 24.04.3.

This program compiles without error. (gcc and clang correctly diagnose the
errors.)

#include <stdio.h>
int main(void) {
    ptrdiff_t p;           // This should be rejected
    wchar_t w;             // This should be rejected
    struct s { int m; };
    offsetof(struct s, m); // This should be rejected
}
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to