Crash with -Wreorder

Crash with -Wreorder


On Linux the following code causes:

(0): internal error: backend signals

compilation aborted for intel_crash.cpp (code 4)

---------------- The Code

// Compile with

// icpc intel_crash.cpp -o intel_crash -Wreorder

struct ObjectBase

{

ObjectBase(int) { }

};

struct Object : virtual public ObjectBase

{

Object(int) : ObjectBase(0) { }

};

struct A : public Object

{

A() : ObjectBase(0), Object(0) { }

};

int main()

{

return 0;

}

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

System notes: Intel C++ for Linux 10.1.018, OpenSUSE 10.3, gcc 4.2.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.