Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

Possible bug: run time crash of the compiled executable

$
0
0

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

 

 

Zone: 

Thread Topic: 

Bug Report

Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>