Dear Gert, On Wed, 03 Mar 2021 16:15:29 +0000 Matthias Klose <d...@debian.org> wrote: > The package fails to build in a test rebuild on at least amd64 with > gcc-11/g++-11, but succeeds to build with gcc-10/g++-10. The > severity of this report will be raised before the bookworm release, > so nothing has to be done for the bullseye release. > > The full build log can be found at: > http://people.debian.org/~doko/logs/20210228/filtered/gcc11/mia_2.4.7-7_unstable_gcc11.log
This is the relevant error: > /<<PKGBUILDDIR>>/mia/2d/test_segmentation.cc:67:20: error: reference to > ‘size’ is ambiguous > 67 | const float x_init[size] = {10.0, 20.0, 0.0}; > | ^~~~ The use of "using namespace std" and declaring a variable named "size" leads to problems in C++17 mode and hence GCC 11. There is ambiguity because C++17 has "std::size" in the standard library. https://sourceforge.net/p/mia/mia2/ci/master/tree/mia/2d/test_segmentation.cc#l66 https://en.cppreference.com/w/cpp/iterator/size -- Juhani