Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7644 Discussions

icc 17.0.0 crashes on valid C code at -O2 and -O3 on x86_64-linux-gnu (internal error: 0_76)

Zhendong_Su
Beginner
227 Views

Compiler version and platform: 

Intel(R) C Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.0.098 Build 20160721

$ icc -Os -c small.c
$ 
$ icc -O2 -c small.c
": internal error: 0_76

compilation aborted for small.c (code 4)
$ 
$ cat small.c
char a, b;

void f ()
{
  for (; a; a++)
    {
      int i; 
      b |= i;
    }
}
$ 

 

0 Kudos
2 Replies
Judith_W_Intel
Employee
227 Views

 

Thanks for the small reproducer. I can reproduce it with our latest development compiler and I submitted this in our internal bugs database as DPD200415523.

Zhendong_Su
Beginner
227 Views

Thank you, Judith. 

Reply