gcc doesn\'t seem to produce a warning with the following code. How can I get it to produce a warning?
typedef enum { REG8_A, REG8_B, REG8_C }REG
$ g++ test3.cpp -o test3 test3.cpp: In function ‘int main()’: test3.cpp:22: error: cannot convert ‘REG16’ to ‘REG8’ for argument ‘1’ to ‘void function(REG8)’