Using icpc (ICC) 19.0.2.187 20190117, when trying to compile the following code:
struct a {
~a();
};
struct b {
a c;
a d;
};
struct e {
b f[4];
};
class g {
e h{};
};
void i() { g(); }
the compiler crashes with following error message:
": internal error: ** The compiler has encountered an unexpected problem.
** Segmentation violation signal raised. **
Access violation or stack overflow. Please contact Intel Support for assistance.
icpc: error #10105: /opt/intel/compilers_and_libraries_2019.2.187/linux/bin/intel64/mcpcom: core dumped
icpc: warning #10102: unknown signal(2039514896)
icpc: error #10106: Fatal error in /opt/intel/compilers_and_libraries_2019.2.187/linux/bin/intel64/mcpcom, terminated by unknown
The provided example compiles fine with GCC, Clang and MSVC: https://godbolt.org/z/H5w7CK