[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
   byte * split_p;

 note: candidates are: ‘enum class std::byte’
    enum class byte : unsigned char;

 ./common/internaltypes.h:32:17: note:                 ‘typedef uint8_t
  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/>

More information about the Xapian-tickets mailing list