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

icc 17.0.0 crashes on valid C++ code on x86_64-linux-gnu (internal error: assertion failed at: "shared/cfe/edgcpfe/interpret.c")

$
0
0

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

The code compiles successfully with -std=c++11, but crashes the compiler with -std=c++14. 

$ icc -c -std=c++11 small.cpp
$
$ g++-6.2 -c -std=c++14 small.cpp
$ clang++-3.8 -c -std=c++14 small.cpp
$
$ icc -c -std=c++14 small.cpp
small.cpp(9): internal error: assertion failed at: "shared/cfe/edgcpfe/interpret.c", line 3438

  } b (&b.v[1]);
       ^

compilation aborted for small.cpp (code 4)
$
$ cat small.cpp
struct A
{
  int v[2];
};

struct B : A
{
  constexpr B (int *p) : A () {}
} b (&b.v[1]);

$

 


Viewing all articles
Browse latest Browse all 1175

Trending Articles



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