Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7833 Discussions

Possible bug: run time crash of the compiled executable

Tamir_A_
Beginner
191 Views

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