IBNLearner_inl.h:434:13: error: expected nested-name-specifier before 'enum'
hello,
v1.8.0 build fails on debian 11 with gcc 10:
-- The C compiler identification is GNU 10.2.1
[ 59s] -- The CXX compiler identification is GNU 10.2.1
[ 59s] -- Detecting C compiler ABI info
[ 59s] -- Detecting C compiler ABI info - done
[ 59s] -- Check for working C compiler: /usr/bin/cc - skipped
[ 59s] -- Detecting C compile features
[ 59s] -- Detecting C compile features - done
[ 59s] -- Detecting CXX compiler ABI info
[ 59s] -- Detecting CXX compiler ABI info - done
[ 59s] -- Check for working CXX compiler: /usr/bin/c++ - skipped
61%] Building CXX object src/CMakeFiles/agrum.dir/agrum/BN/learning/BNLearnUtils/IBNLearner.cpp.o
[ 538s] cd /usr/src/packages/BUILD/builddir/src && /usr/bin/c++ -Dagrum_EXPORTS -I/usr/src/packages/BUILD/src -I/usr/src/packages/BUILD/builddir -I/usr/src/packages/BUILD/src/testunits/cxxtest-3.10-1 -I/usr/src/packages/BUILD/src/testunits/gumtest -I/usr/src/packages/BUILD/src/testunits/cxxtest -I/usr/src/packages/BUILD/src/testunits -fopenmp -DGUM_FOR_SWIG -Wall -pedantic -g -O1 -ffile-prefix-map=/usr/src/packages/BUILD=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fopenmp -pthread -DGUM_THREADS_USE_STL=1 -DGUM_THREADS=threadsSTL -g -O1 -ffile-prefix-map=/usr/src/packages/BUILD=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++2a -o CMakeFiles/agrum.dir/agrum/BN/learning/BNLearnUtils/IBNLearner.cpp.o -c /usr/src/packages/BUILD/src/agrum/BN/learning/BNLearnUtils/IBNLearner.cpp
[ 544s] In file included from /usr/src/packages/BUILD/src/agrum/BN/learning/BNLearnUtils/IBNLearner.h:1217,
[ 544s] from /usr/src/packages/BUILD/src/agrum/BN/learning/BNLearnUtils/BNLearnerListener.cpp:41:
[ 544s] /usr/src/packages/BUILD/src/agrum/BN/learning/BNLearnUtils/IBNLearner_inl.h: In member function 'gum::learning::PriorType gum::learning::IBNLearner::getPriorType_() const':
[ 544s] /usr/src/packages/BUILD/src/agrum/BN/learning/BNLearnUtils/IBNLearner_inl.h:434:13: error: expected nested-name-specifier before 'enum'
[ 544s] 434 | using enum gum::learning::IBNLearner::BNLearnerPriorType;
[ 544s] | ^~~~
[ 544s] /usr/src/packages/BUILD/src/agrum/BN/learning/BNLearnUtils/IBNLearner_inl.h:435:12: error: 'NO_prior' was not declared in this scope
[ 544s] 435 | case NO_prior: return PriorType::NoPriorType;
[ 544s] | ^~~~~~~~
[ 544s] /usr/src/packages/BUILD/src/agrum/BN/learning/BNLearnUtils/IBNLearner_inl.h:436:12: error: 'SMOOTHING' was not declared in this scope
[ 544s] 436 | case SMOOTHING: return PriorType::SmoothingPriorType;
[ 544s] | ^~~~~~~~~
[ 544s] /usr/src/packages/BUILD/src/agrum/BN/learning/BNLearnUtils/IBNLearner_inl.h:437:12: error: 'DIRICHLET_FROM_DATABASE' was not declared in this scope
[ 544s] 437 | case DIRICHLET_FROM_DATABASE:
[ 544s] | ^~~~~~~~~~~~~~~~~~~~~~~
[ 544s] /usr/src/packages/BUILD/src/agrum/BN/learning/BNLearnUtils/IBNLearner_inl.h:438:12: error: 'DIRICHLET_FROM_BAYESNET' was not declared in this scope
[ 544s] 438 | case DIRICHLET_FROM_BAYESNET: return PriorType::DirichletPriorType;
[ 544s] | ^~~~~~~~~~~~~~~~~~~~~~~
[ 544s] /usr/src/packages/BUILD/src/agrum/BN/learning/BNLearnUtils/IBNLearner_inl.h:439:12: error: 'BDEU' was not declared in this scope
[ 544s] 439 | case BDEU: return PriorType::BDeuPriorType;
[ 544s] | ^~~~
full log here: https://build.opensuse.org/public/build/science:openturns/Debian_11/x86_64/agrum/_log
Edited by Julien Schueller