Compiler version and platform:
Intel(R) C Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.1.132 Build 20161005
$ g++ -c small.cpp $ clang++ -c small.cpp $ $ icc -c small.cpp": internal error: ** The compiler has encountered an unexpected problem. ** Segmentation violation signal raised. ** Access violation or stack overflow. Please contact Intel Support for assistance. compilation aborted for small.cpp (code 4) $ $ cat small.cpp struct S { S () {} S (const S &) {} }; S foo () { return ({ S (); }); } $