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

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

Zhendong_Su
Beginner
774 Views

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
774 Views

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

0 Kudos
Igor_V_Intel
Employee
774 Views

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

0 Kudos
Reply