undefinded behaviour in conformingmerge.hh
While building the tests, gcc warns about undefined behaviour in conformingmerge.hh. It looks like an out-of-bounds array access: grid1Local_[0] should only have indices (0,...,dim-1), but j loops from 0 to dim.
In file included from .../dune/grid-glue/test/overlappingcouplingtest.cc:23:0:
.../dune/grid-glue/merging/conformingmerge.hh: In member function ‘void Dune::GridGlue::ConformingMerge<dim, dimworld, T>::computeIntersections(const Dune::GeometryType&, const std::vector<Dune::FieldVector<_ctype, dimworld> >&, std::bitset<(1 << dim)>&, unsigned int, const Dune::GeometryType&, const std::vector<Dune::FieldVector<_ctype, dimworld> >&, std::bitset<(1 << dim)>&, unsigned int, std::vector<typename Dune::GridGlue::StandardMerge<T, dim, dim, dimworld>::RemoteSimplicialIntersection>&) [with int dim = 3; int dimworld = 3; T = double; typename Dune::GridGlue::StandardMerge<T, dim, dim, dimworld>::RemoteSimplicialIntersection = Dune::GridGlue::StandardMerge<double, 3, 3, 3>::RemoteSimplicialIntersection]’:
.../dune/grid-glue/merging/conformingmerge.hh:215:53: warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations]
newSimplicialIntersection.grid1Local_[0][j] = refElement.position(subVertices[i][j],dim);
^
.../dune/grid-glue/merging/conformingmerge.hh:214:7: note: containing loop
for (int j=0; j<dim+1; j++) {
^