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

Access violation or stack overflow during compilation.

Thierry_D_
Beginner
450 Views

I have switched to icc version 16.0.2 (gcc version 5.0.0 compatibility), and now, I cannot compile one of one of my c+++ codes.

Compiler complains:

-------------------------------

[100%] Building CXX object CMakeFiles/test3.dir/maintest3.cpp.o
": internal error: ** The compiler has encountered an unexpected problem.
** Segmentation violation signal raised. **
Access violation or stack overflow. Please contact Intel Support for assistance.

compilation aborted for /homes/doua/tdumont/DGSage/Essai/maintest3.cpp (code 4)

--------------------------

So I contact support...

I join a minimal version of the code, suppressing as most lines as possible. Th code is attached. To compile it:

cd BuildIntel

CXX=icc cmake ..

make

With g++-5.1, it compiles perfecly:

cd Build

cmake ..

make

Thany you in advance.

0 Kudos
2 Replies
Melanie_B_Intel
Employee
450 Views

Can you show the g++ command line which you use to build the file successfully?  

And also the command line for icpc compilation? 

Thanks! --Melanie

0 Kudos
Melanie_B_Intel
Employee
450 Views

I opened DPD200407975 in our internal bugs database.  Thanks for reporting this problem. -Melanie

0 Kudos
Reply