internal error: 0_1204 when openmp used with try-catch
Reference Number : Q625172  Version : 12.0 update 1 & 2
Product : Intel® C++ Compiler XE 12.0 update 1 & 2  Operating
System : Windows*  Problem Description :  The below code was
reduced from a big customer project, that uses Qt. The bug is in
Intel compiler, when openmp pragma/option is used, and
exception-handling is used in a particular manner, though not in
other cases. The workaround is to use /Od , instead of /O2. Or,
do not use openmp pragma. Also, enable /EHsc since C++ exception
handling mechanism is used.  Command-line for the bug:-- icl /c
/Qopenmp /EHsc qterror.cpp  compile Error :-- internal error:
0_1204  Sometimes, during parallel compilation (using /MP), when
such compile errors are generated, the below error message also
comes in the output. icl: error #10298: problem during post
processing of parallel object compilation  Below sample code
generates the error:--  #include <iostream> using namespace std;
#include <vector>  class myclass{