Subgridmanager fails to compile with clang
Bug report
Compiling the sub grid manager with clang yields the following compiler error
FAILED: test/io/gridmanager/CMakeFiles/test_gridmanager_subgrid.dir/test_gridmanager_subgrid.cc.o
/usr/bin/clang++ -DENABLE_MPI=1 -DENABLE_SUITESPARSE=1 -DENABLE_SUPERLU=1 -DENABLE_TBB=1 -DENABLE_UG=1 -DHAVE_CONFIG_H -DMPICH_SKIP_MPICXX -DMPIPP_H -DMPI_NO_CPPBIND -DModelP -DUG_USE_NEW_DIMENSION_DEFINES -D_TBB_CPP0X -I. -I/data/src/dumux -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/data/src/dune-common -I/data/src/dune-geometry -I/data/src/dune-uggrid -I/data/src/dune-uggrid/low -I/data/src/dune-uggrid/gm -I/data/src/dune-uggrid/dom -I/data/src/dune-uggrid/np -I/data/src/dune-uggrid/ui -I/data/src/dune-uggrid/np/algebra -I/data/src/dune-uggrid/np/udm -I/data/src/dune-uggrid/parallel -I/data/src/dune-uggrid/parallel/ddd -I/data/src/dune-uggrid/parallel/ppif -I/data/src/dune-uggrid/parallel/dddif -I/data/src/dune-uggrid/parallel/util -I/data/src/dune-uggrid/parallel/ddd/include -I/data/src/dune-grid -I/data/src/dune-alugrid -I/data/src/dune-spgrid -I/data/src/dune-subgrid -I/data/src/dune-foamgrid -I/data/src/dune-istl -I/data/src/dune-localfunctions -I/usr/include/scotch -I/usr/include/suitesparse -I/usr/include/superlu -std=c++17 -fdiagnostics-color=always -fno-strict-aliasing -fstrict-overflow -fno-finite-math-only -O3 -march=native -funroll-loops -g0 -Wall -Wunused -Wmissing-include-dirs -Wcast-align -Wno-missing-braces -Wmissing-field-initializers -Wno-sign-compare -fPIE -MD -MT test/io/gridmanager/CMakeFiles/test_gridmanager_subgrid.dir/test_gridmanager_subgrid.cc.o -MF test/io/gridmanager/CMakeFiles/test_gridmanager_subgrid.dir/test_gridmanager_subgrid.cc.o.d -o test/io/gridmanager/CMakeFiles/test_gridmanager_subgrid.dir/test_gridmanager_subgrid.cc.o -c /data/src/dumux/test/io/gridmanager/test_gridmanager_subgrid.cc
In file included from /data/src/dumux/test/io/gridmanager/test_gridmanager_subgrid.cc:31:
/data/src/dumux/dumux/io/grid/gridmanager_sub.hh:235:7: error: class template partial specialization contains a template parameter that cannot be deduced; this partial specialization will never be used [-Wunusable-partial-specialization]
class GridManager<Dune::SubGrid<HostGrid::dimension,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/src/dumux/dumux/io/grid/gridmanager_sub.hh:234:16: note: non-deducible template parameter 'HostGrid'
template<class HostGrid>
^
How to reproduce it (as minimally and precisely as possible):
Compile test_gridmanager_subgrid