Clang compiler error after commit e7112f70
I get the following compiler error with clang (6.0.0 default on Ubuntu LTS Bionic) after the commit e7112f70, when compiling the alugrid tests
[5/8] Building CXX object dune/alugrid/test/CMakeFiles/test-alugrid.dir/test-alugrid.cc.o
FAILED: dune/alugrid/test/CMakeFiles/test-alugrid.dir/test-alugrid.cc.o
/usr/bin/clang++ -DENABLE_GMP=1 -DENABLE_MPI=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../ -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/home/timok/dumux-dune-master/dune-common -I/home/timok/dumux-dune-master/dune-uggrid -I/home/timok/dumux-dune-master/dune-uggrid/low -I/home/timok/dumux-dune-master/dune-uggrid/gm -I/home/timok/dumux-dune-master/dune-uggrid/dom -I/home/timok/dumux-dune-master/dune-uggrid/np -I/home/timok/dumux-dune-master/dune-uggrid/ui -I/home/timok/dumux-dune-master/dune-uggrid/np/algebra -I/home/timok/dumux-dune-master/dune-uggrid/np/udm -I/home/timok/dumux-dune-master/dune-uggrid/parallel -I/home/timok/dumux-dune-master/dune-uggrid/parallel/ddd -I/home/timok/dumux-dune-master/dune-uggrid/parallel/ppif -I/home/timok/dumux-dune-master/dune-uggrid/parallel/dddif -I/home/timok/dumux-dune-master/dune-uggrid/parallel/ddd/include -I/home/timok/dumux-dune-master/dune-geometry -I/home/timok/dumux-dune-master/dune-grid -I/usr/include/scotch -std=c++17 -fdiagnostics-color=always -fno-strict-aliasing -fstrict-overflow -fno-finite-math-only -DNDEBUG=1 -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 dune/alugrid/test/CMakeFiles/test-alugrid.dir/test-alugrid.cc.o -MF dune/alugrid/test/CMakeFiles/test-alugrid.dir/test-alugrid.cc.o.d -o dune/alugrid/test/CMakeFiles/test-alugrid.dir/test-alugrid.cc.o -c ../dune/alugrid/test/test-alugrid.cc
In file included from ../dune/alugrid/test/test-alugrid.cc:38:
../dune/alugrid/test/checkintersectionit.hh:6:2: warning: "Using overloaded checkintersectionit.hh because of manifold normal checks not being fully discussed yet! See MR !320 in dune-grid!" [-W#warnings]
#warning "Using overloaded checkintersectionit.hh because of manifold normal checks not being fully discussed yet! See MR !320 in dune-grid!"
^
../dune/alugrid/test/test-alugrid.cc:129:15: warning: unused variable 'id' [-Wunused-variable]
const int id = macroView_.macroId( element );
^
In file included from ../dune/alugrid/test/test-alugrid.cc:28:
In file included from ../dune/alugrid/dgf.hh:12:
In file included from ../dune/alugrid/grid.hh:16:
In file included from ../dune/alugrid/3d/alugrid.hh:8:
../dune/alugrid/3d/indexsets.hh:404:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({8,12,6,1}),AT({-1,4,4,1}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})}):
^
../dune/alugrid/3d/indexsets.hh:405:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({8,8,1,0}), AT({-1,4,3,0}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})})
^
../dune/alugrid/3d/indexsets.hh:408:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({4,4,1,0}),AT({-1,4,4,1}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})}):
^
../dune/alugrid/3d/indexsets.hh:409:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({4,3,0,0}), AT({-1,4,3,0}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})})
^
../dune/alugrid/3d/indexsets.hh:415:75: error: cannot compile this aggregate expression yet
const std::array<int, 4> nEntitiesFactor = ( (elType == hexa) ? AT({1, 3 , 3, 1}) : AT({1, 2, 2, 1}) );
^
../dune/alugrid/3d/indexsets.hh:415:95: error: cannot compile this aggregate expression yet
const std::array<int, 4> nEntitiesFactor = ( (elType == hexa) ? AT({1, 3 , 3, 1}) : AT({1, 2, 2, 1}) );
^
../dune/alugrid/3d/indexsets.hh:404:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({8,12,6,1}),AT({-1,4,4,1}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})}):
^
../dune/alugrid/3d/indexsets.hh:405:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({8,8,1,0}), AT({-1,4,3,0}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})})
^
../dune/alugrid/3d/indexsets.hh:408:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({4,4,1,0}),AT({-1,4,4,1}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})}):
^
../dune/alugrid/3d/indexsets.hh:409:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({4,3,0,0}), AT({-1,4,3,0}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})})
^
../dune/alugrid/3d/indexsets.hh:415:75: error: cannot compile this aggregate expression yet
const std::array<int, 4> nEntitiesFactor = ( (elType == hexa) ? AT({1, 3 , 3, 1}) : AT({1, 2, 2, 1}) );
^
../dune/alugrid/3d/indexsets.hh:415:95: error: cannot compile this aggregate expression yet
const std::array<int, 4> nEntitiesFactor = ( (elType == hexa) ? AT({1, 3 , 3, 1}) : AT({1, 2, 2, 1}) );
^
../dune/alugrid/3d/indexsets.hh:404:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({8,12,6,1}),AT({-1,4,4,1}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})}):
^
../dune/alugrid/3d/indexsets.hh:405:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({8,8,1,0}), AT({-1,4,3,0}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})})
^
../dune/alugrid/3d/indexsets.hh:408:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({4,4,1,0}),AT({-1,4,4,1}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})}):
^
../dune/alugrid/3d/indexsets.hh:409:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({4,3,0,0}), AT({-1,4,3,0}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})})
^
../dune/alugrid/3d/indexsets.hh:415:75: error: cannot compile this aggregate expression yet
const std::array<int, 4> nEntitiesFactor = ( (elType == hexa) ? AT({1, 3 , 3, 1}) : AT({1, 2, 2, 1}) );
^
../dune/alugrid/3d/indexsets.hh:415:95: error: cannot compile this aggregate expression yet
const std::array<int, 4> nEntitiesFactor = ( (elType == hexa) ? AT({1, 3 , 3, 1}) : AT({1, 2, 2, 1}) );
^
../dune/alugrid/3d/indexsets.hh:404:75: error: cannot compile this aggregate expression yet
std::array<AT,4>({AT({8,12,6,1}),AT({-1,4,4,1}), AT({-1,-1,2,1}), AT({-1,-1,-1,1})}):
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
[6/8] Building CXX object dune/alugrid/test/CMakeFiles/test-backup-restore.dir/test-backup-restore.cc.o
ninja: build stopped: subcommand failed.
All dune modules are on the current master. Clang version:
$clang++ --version
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Replacing parenthesis with braces seems to work.
Edited by Timo Koch