Bug#984353: surf-alggeo: ftbfs with GCC-11

Torrance, Douglas dtorrance at piedmont.edu
Mon Oct 11 21:15:17 BST 2021


Control: tags -1 patch

On Wed, 03 Mar 2021 16:17:45 +0000 Matthias Klose <doko at debian.org> wrote:
> ../../../yaccsrc/Script.cc: In static member function ‘static void Script::clearScreen()’:
> ../../../yaccsrc/Script.cc:910:23: error: reference to ‘byte’ is ambiguous
>   910 |         *intensity = (byte)(-print_background_data);
>       |                       ^~~~
> In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
>                  from /usr/include/c++/11/bits/char_traits.h:39,

This is due to the introduction of std::byte in C++17, which is default in GCC 11.  One band-aid fix would be to explicitly drop back to C++14 -- see the attached patch.

In the long term, it would probably be good to drop all the various instances of "using namespace std".

Doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Compile-with-C-14-standard-to-avoid-byte-v.-std-byte.patch
Type: text/x-diff
Size: 642 bytes
Desc: 0001-Compile-with-C-14-standard-to-avoid-byte-v.-std-byte.patch
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20211011/6b3b334c/attachment-0001.patch>


More information about the debian-science-maintainers mailing list