Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
7781 Discussions

icpc 14.0.2 crash: internal error: assertion failed at: "shared/cfe/edgcpfe/lower_il.c", line 7661

Raimar_S_
Beginner
196 Views

I am using icpc 14.0.2 on Linux, here is a minimal program to reproduce the crash:

class A
{
public:
  virtual ~A() {}
  virtual void f() = 0;
};

template<typename T>
class B : public A
{
  void f();
};

namespace {
  struct C {};
}

template<>
void B<C>::f(){}

The error message is:

testcase.cc(11): internal error: assertion failed at: "shared/cfe/edgcpfe/lower_il.c", line 7661

  class B : public A
        ^

compilation aborted for testcase.cc (code 4)

 

Note that this compiles just fine (removing the anonymous name space):

class A
{
public:
  virtual ~A() {}
  virtual void f() = 0;
};

template<typename T>
class B : public A
{
  void f();
};

struct C {};

template<>
void B<C>::f(){}

Please let me know if and how I can further assist to debug this problem.

Best regards

Raimar

0 Kudos
2 Replies
Kittur_G_Intel
Employee
196 Views

Thanks Raimar, yes this is a bug and I've escalated this issue to the developers and will update the issue when the release with a fix is out, thanks.

Regards, Kittur

Kittur_G_Intel
Employee
196 Views

Hi,

This issue is fixed in the latest 15.0 version that's out which you can download from the Intel Registration Center, thanks.

_Kittur

Reply