Hello,
On the following (invalid) C program, tcc goes into an unbounded recursion, and
crashes when it exhausts the space allowed for the stack. I tried to make a
valid C program with the same property, which would be a more interesting bug
report, but I couldn't find one.
Pascal
________
$ cat cr.i
union u {
union u { };
};
$ gcc -c cr.i
cr.i:2:9: error: nested redefinition of 'union u'
union u { };
^
cr.i:2:14: warning: declaration does not declare anything
union u { };
^
$ clang -c cr.i
cr.i:2:9: error: nested redefinition of 'u'
union u { };
^
cr.i:1:7: note: previous definition is here
union u {
^
1 error generated.
$ ./tcc -c cr.i
Segmentation fault
$
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel