- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The compiler crashes for me when trying to compile the following program:
#include <array> void test_invert_solve(std::array< std::array<double,3>, 3 > A, std::array<double,3> x, std::array<double,3> b) { for (std::size_t i=0; i<3; i++) for (std::size_t j=0; j<3; j++) b -= A* x ; for (auto be : b) {} } int main() { }
The error message looks like this:
-*- mode: compilation; default-directory: "~/Projekte/EXA-DUNE/patches/dune-common/dune/common/test/" -*- Compilation started at Tue Jun 14 18:47:34 set -ex; CXX=/usr/local/bin/icpc-2017; $CXX --version; $CXX -std=c++14 -O3 -o fmatrixtest.o -c fmatrixtest.cc + CXX=/usr/local/bin/icpc-2017 + /usr/local/bin/icpc-2017 --version icpc (ICC) 17.0.0 20160517 Copyright (C) 1985-2016 Intel Corporation. All rights reserved. + /usr/local/bin/icpc-2017 -std=c++14 -O3 -o fmatrixtest.o -c fmatrixtest.cc ": 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 fmatrixtest.cc (code 4) Compilation exited abnormally with code 4 at Tue Jun 14 18:47:34
This happens with "icpc (ICC) 16.0.1 20151021" too.
Operating system is Debian 8.5 "jessie", host compiler is "g++ (Debian 4.9.2-10) 4.9.2" in case that matters.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jorrit,
Thanks for reporting this issue. I am able to reproduce this problem and I have escalated this to compiler engineering. Looks like the crash just happens in O3 optimization but not for O2.
Regards
Anoop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This issue is fixed in 17.0 compiler which is available at Intel Registration Center.
Thanks and Regards
Anoop

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page