Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Tamir_A_
Beginner
62 Views

Possible bug: run time crash of the compiled executable

The following code compiled with optimizations disabled and targeting 32bit architecture causes the resulting executable to crash at run time.

Interesting observation: increasing the size of an array, even by one, will not reproduce the crash.

struct S0 {
};

struct S2 : virtual S0 {
};

S2 g_1[3];

int main(int argc, char* argv[])
{

}

This code compiled with the follow command on windows: 

iclvars.bat ia32 & icl /Od file.cpp /w /link /out:file.exe

Version:

Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 16.0.3.207 Build 20160415

 

 

0 Kudos
0 Replies
Reply