From: Wolfgang Bangerth Date: Sat, 14 Nov 2015 12:33:07 +0000 (-0600) Subject: Work around a bug in gcc 4.6. X-Git-Tag: v8.4.0-rc2~228^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12cfbd401d0a3ee8ebb81845e9a574db198cee2d;p=dealii.git Work around a bug in gcc 4.6. --- diff --git a/tests/lac/block_linear_operator_05.cc b/tests/lac/block_linear_operator_05.cc index bb5e41ecfe..dceab47d96 100644 --- a/tests/lac/block_linear_operator_05.cc +++ b/tests/lac/block_linear_operator_05.cc @@ -44,8 +44,11 @@ int main(int argc, char *argv[]) auto op_b = linear_operator(b); auto op_b3 = linear_operator(b); - auto op_c = block_diagonal_operator<2, TrilinosWrappers::MPI::BlockVector >({{ op_a, op_a}}); - auto op_c2 = block_diagonal_operator<2, TrilinosWrappers::BlockVector >({{ op_a2, op_a2}}); + typedef LinearOperator Op_MPI; + typedef LinearOperator Op; + + auto op_c = block_diagonal_operator<2, TrilinosWrappers::MPI::BlockVector >(std::array ({{ op_a, op_a}})); + auto op_c2 = block_diagonal_operator<2, TrilinosWrappers::BlockVector >(std::array ({{ op_a2, op_a2}})); deallog << "OK" << std::endl;