[Xapian-tickets] [Xapian] #768: Compilation issue with with --std=gnu++17
Xapian
nobody at xapian.org
Mon Sep 10 16:19:07 BST 2018
#768: Compilation issue with with --std=gnu++17
---------------------------+-------------------
Reporter: stac47 | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version: 1.4.5
Severity: normal | Keywords:
Blocked By: | Blocking:
Operating System: All |
---------------------------+-------------------
I am trying to compile xapian with gcc (GCC) 8.2.1 with the flag
--std=gnu++17. I get the following error resulting from the fact C++17
introduced the type std::byte:
{{{
./backends/chert/chert_table.h:848:2: error: reference to ‘byte’ is
ambiguous
byte * split_p;
/remote/tools/Linux/2.6/1A/toolchain/x86_64-2.6.32-v4.0.27/include/c++/8.2.1/bits/cpp_type_traits.h:395:30:
note: candidates are: ‘enum class std::byte’
enum class byte : unsigned char;
./common/internaltypes.h:32:17: note: ‘typedef uint8_t
byte’
typedef uint8_t byte;
}}}
Of course this error is only en excerpt from a hundred occurrences.
Thanks in advance for your help.
--
Ticket URL: <https://trac.xapian.org/ticket/768>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list