Compiler Error C2196

case value 'value' already used

A case value in a switch statement can be used only once.

The following is an example of this error:

void f()
{
    int i;
    switch( i )
    {
    case 0:
        break;
    case 0:    // error, case value '0' already used
        break;
    }
}