gcc's error description for missing MACRO arguments is wrong.

2021-11-04 Thread Roy Qu via Gcc
Version: GCC 11.2 (msys2 mingw-w64 X86_64) When a macro have more than one arguments, and u call it with no argument, gcc will compliant with " only 1 given" instead of " 0 given" Demo code: #define TEST(x,y) test(x,y) int main() { int x=TEST(); }: Error message: F:/test.cpp:4:20: error: macro "

gcc can't process some utf-8 characters

2021-01-13 Thread Roy Qu via Gcc
I use "gcc -finput-charset=utf-8 -fexec-charset=gb2312" to compile utf-8 encoding source files under windows. Most of the time it works well, but when the source file contains some characters such as "—", gcc will fail and the error message is: "[Error] converting to execution character set: Ille