Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Zhendong_Su
Beginner
185 Views

icc 17.0.1 crashes on valid C++ code on x86_64-linux-gnu (Segmentation violation signal raised)

Compiler version and platform: 

Intel(R) C Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.1.132 Build 20161005 

$ g++ -c small.cpp
$ clang++ -c small.cpp
$ 
$ icc -c small.cpp
": 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 small.cpp (code 4)
$ 
$ cat small.cpp
struct S
{
  S () {}
  S (const S &) {}
};

S foo ()
{
  return ({ S (); });
}
$ 

 

0 Kudos
2 Replies
Igor_V_Intel
Employee
185 Views

I reproduced it and escalated(DPD200416558). Note that it doesn't crash with *.c extension.

Igor_V_Intel
Employee
185 Views

Note that same issue was already reported earlier (DPD200556289).

Reply