From 18b63c03994b8b33cb98b25f301c9dd58507d7f6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 30 Jan 2020 09:38:49 -0700 Subject: [PATCH] Avoid an internal compiler error in gcc 7.4.0. --- include/deal.II/matrix_free/matrix_free.templates.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/deal.II/matrix_free/matrix_free.templates.h b/include/deal.II/matrix_free/matrix_free.templates.h index 63494acee6..3d744688b9 100644 --- a/include/deal.II/matrix_free/matrix_free.templates.h +++ b/include/deal.II/matrix_free/matrix_free.templates.h @@ -1794,9 +1794,14 @@ MatrixFree::initialize_indices( const unsigned int v, const bool ext, const bool flag) { - AssertIndexRange(face_info.faces[f].cells_interior[v], - n_macro_cells_before * - VectorizedArrayType::n_array_elements); + Assert( + face_info.faces[f].cells_interior[v] < + n_macro_cells_before * + VectorizedArrayType::n_array_elements, + ExcIndexRange(face_info.faces[f].cells_interior[v], + 0, + n_macro_cells_before * + VectorizedArrayType::n_array_elements)); if (flag || (di.index_storage_variants [ext ? internal::MatrixFreeFunctions::DoFInfo:: -- 2.39.5