Article ID: 120967
Article Last Modified on 7/5/2005
/* Compile options needed: /GX
*/
#include <stdio.h>
void main(void)
{
int i = 0;
try
{
switch ( i )
try
{
case 0:
throw i;
}
catch( int )
{
/* Should be caught here but isn't */
printf( "Passed.\n" );
}
}
catch (...)
{
/* Is caught here incorrectly */
printf( "Failed.\n" );
}
}
Additional query words: kbVC400bug 9.00 10.00 10.10 10.20 exception handling
Keywords: kbbug kbnoupdate kbcpponly kbcode kbcompiler KB120967