Hello,

I believe I've found a bug. It happens on 64-bit version of tcc for
Windows. No problems were found on 32-bit Windows or 64-bit Linux
(installed from apt-get).

To reproduce, run on a terminal:

REM Creates an empty file
type nul > empty.c

REM win32 tcc works normally
win32\tcc empty.c
tcc: error: undefined symbol 'main'

REM win32 tcc works normally
win32\tcc -run empty.c
tcc: error: main not defined

REM win64 tcc works normally when generating file output
win64\tcc empty.c
tcc: error: undefined symbol 'main'

REM ...but crashes with a segfault when running source code directly
win64\tcc -run empty.c


The same happens with a file containing just

#

or

#inclu


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

Reply via email to