From 250f531302ec31d60cbb9fe5b878546f184f6c1e Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 14 Sep 2005 14:32:17 +0000 Subject: [PATCH] Work around a bug in some gcc versions. git-svn-id: https://svn.dealii.org/trunk@11428 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/sparse_vanka.templates.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deal.II/lac/include/lac/sparse_vanka.templates.h b/deal.II/lac/include/lac/sparse_vanka.templates.h index 6aa6320d8b..b4be72ef01 100644 --- a/deal.II/lac/include/lac/sparse_vanka.templates.h +++ b/deal.II/lac/include/lac/sparse_vanka.templates.h @@ -184,8 +184,11 @@ SparseVanka::compute_inverse (const unsigned int row, const unsigned int global_entry = structure.operator()(local_indices[i], local_indices[j]); if (global_entry != SparsityPattern::invalid_entry) - this_inverse(i,j) = matrix->global_entry(global_entry); - }; + // the explicit use of operator() + // works around a bug in some gcc + // versions (see PR 18803) + this_inverse.operator()(i,j) = matrix->global_entry(global_entry); + } // Compute inverse this_inverse.gauss_jordan(); -- 2.39.5