diff --git a/src/systemcmds/tests/test_matrix.cpp b/src/systemcmds/tests/test_matrix.cpp index eef8451cd3..5285591f04 100644 --- a/src/systemcmds/tests/test_matrix.cpp +++ b/src/systemcmds/tests/test_matrix.cpp @@ -624,7 +624,9 @@ bool MatrixTest::vector2Tests() ut_test(fabs(c(0) - 0) < 1e-5); ut_test(fabs(c(1) - 0) < 1e-5); - Matrix d(a); + static Matrix d(a); + // the static keywork is a workaround for an internal bug of GCC + // "internal compiler error: in trunc_int_for_mode, at explow.c:55" ut_test(fabs(d(0, 0) - 1) < 1e-5); ut_test(fabs(d(1, 0) - 0) < 1e-5);