Compiler Error C2313

'type1' : is caught by reference ('type2') on line number

The specified exception type is handled by a previous handler. The type for the second catch is a reference to the type of the first.

The following is an example of this error:

#include <eh.h>
class C;
void main()
{
    try
    {
        throw "ooops!";
    }
    catch( C& ) {}
    catch( C ) {}   // error
}