Compilatore C++ Intel®

(c++11) failed to compile class with private explicitly-defaulted destructor

Hi, trying to compile following code:

class Foo{
private:
    //explicitly-defaulted destructor
    ~Foo() = default;
public:
    int x;
    void release(){
        delete this;
    }
};

void PrivateDestructor(){
    auto foo = new Foo();
    foo->release();
}

I get this error: (8): error : assertion failed at: "shared/cfe/edgcpfe/symbol_tbl.c", line 10293

I'm using Intel® C++ Composer XE 2015 for Visual Studio 2013 Update1

(c++11) issues with using pointer to local function as template argument

Hi,

Trying to compile the following code:

#include <iostream>
using namespace std;


template<void (*F)()> void SetCallback(){
	F();
}

static void Foo() {
	struct stub_t {
		static void cb(){
			cout << "Foo::stub_t::cb()" << endl;
		}
	};
	SetCallback<&stub_t::cb>();
}

void TemplateInstantiation() {
	Foo();
}

I get this error: "(18): error : a template argument may not reference a non-external entity".

Problem to define structure in header

Hello everybody,

I have a monolithic and big  toto.cpp code to split into a clean

toto.hpp, toto_mod.cpp, main_toto.cpp.

When I tried to compile , after spliting, I had the following error :

------------------------------------------------------------------------------------------------------------------------------------------------

 

xopintrin.h and fma4intrin.h linker error

I'm getting a long range of udefined identifier errors:

/usr/lib/gcc/x86_64-linux-gnu/4.9/include/xopintrin.h(444): error: identifier "__builtin_ia32_vpcomleud" is undefined
    return (__m128i) __builtin_ia32_vpcomleud ((__v4si)__A, (__v4si)__B);

All the errors are related to either xopintrin.h or fma4intrin.h and all are of the pattern "__builtin_ia32_XXXXX" is undefined

gcc4.9, gcc4.8 and clang3.4 compiles the codebase just fine. icpc also works on a simple HelloWorld test and some basic sin/log ops.

Intel Composer XE's C++ compiler does not integrate with Visual studio 2010

We installed Intel Composer XE suites that included Fortran and C++ compiler and both are supposed to integrate with our Visual studio 2010. However, only Fortran compiler shows up in Visual studio and not C++. We tried to installed separately with C++ package only but it still doesn't show up. What happened and how do we get it to work on Visual Studio 2010?

Thanks

Iscriversi a Compilatore C++ Intel®