This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: INTERNAL ERROR: no match for MINUS

Tool/software: TI C/C++ Compiler

Code:
enum class Color : char {
 blue = 1 };
void test(Color color) {
 switch(color)
 case Color::blue:
 return; }
int main() {
 return 0; }

C:/ti/bin/armcl -mv7M4 -I"C:/ti/include" -g "main.cpp"
results in
>> ../main.cpp, line 4: INTERNAL ERROR: no match for MINUS

Affected versions:
18.1.2.LTS on Windows
18.9.0.STS on Windows

Any of the following actions removes the error:
Removing the -g flag,
Changing enum type to int (not short),
Changing Color::blue value to 0,
Changing enum class to simple enum,
Removing the whole switch.