diff --git a/test/localgeodesicfefunctiontest.cc b/test/localgeodesicfefunctiontest.cc
index 1016ae59861065073271b52015dcbbfbc7ca9f71..f558b96cf1fe998f002e522418ab67850a417ad9 100644
--- a/test/localgeodesicfefunctiontest.cc
+++ b/test/localgeodesicfefunctiontest.cc
@@ -261,7 +261,7 @@ void testUnitVector2d()
     for (int i=0; i<numIndices; i++, ++index) {
         
         for (int j=0; j<domainDim+1; j++) {
-            Dune::array<double,2> w = {testPoints[index[j]][0], testPoints[index[j]][1]};
+            Dune::array<double,2> w = {{testPoints[index[j]][0], testPoints[index[j]][1]}};
             corners[j] = UnitVector<2>(w);
         }
 
@@ -305,7 +305,7 @@ void testUnitVector3d()
     for (int i=0; i<numIndices; i++, ++index) {
         
         for (int j=0; j<domainDim+1; j++) {
-            Dune::array<double,3> w = {testPoints[index[j]][0], testPoints[index[j]][1], testPoints[index[j]][2]};
+            Dune::array<double,3> w = {{testPoints[index[j]][0], testPoints[index[j]][1], testPoints[index[j]][2]}};
             corners[j] = UnitVector<3>(w);
         }