Package: tcc
Version: 0.9.27~git20140923.9d7fb33-3
cat > bug.c <<'EOF'
typedef struct { int x; } struct_t;
typedef struct_t array_t[1];
typedef const struct_t *pointer_t;
void f(pointer_t);
void f(const array_t arg) { }
EOF
$ gcc -Wall -c bug.c
$ tcc -Wall -c bug.c
bug.c:5: error: incompatible types for redefinition of 'f'
TCC is complaining as if the "const" were missing from the function
definition (the last line of bug.c). If you remove the const from
the declaration (the third line) then tcc is happy, but gcc complains.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]