no exception triggered for division by 0

Reference Number :
550589 / DPD200136408

Problem version:
Intel® C++ compiler upto 10.1.030


Operating System :
Windows & Linux*

Problem Description :

__try {
    val = 5/0;
}
__except(1) {
    printf("Fault expected\n");
}


This should print “Fault expected”, but not printed, since the div-by-0 exception is not caught when this operation happens in __try/__except block.

Resolution Status :

This issue is fixed in Intel® C++ compiler 10.1.031 compiler.

 

 

For more complete information about compiler optimizations, see our Optimization Notice.

Comments

's picture

je ne compende pas les math commo fairr