From: wolf Date: Wed, 14 Sep 2005 14:32:17 +0000 (+0000) Subject: Work around a bug in some gcc versions. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=250f531302ec31d60cbb9fe5b878546f184f6c1e;p=dealii-svn.git Work around a bug in some gcc versions. git-svn-id: https://svn.dealii.org/trunk@11428 0785d39b-7218-0410-832d-ea1e28bc413d --- 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();