Package: src:libelfin
Version: 0.3-1
Severity: important
Tags: sid bullseye
Forwarded: https://github.com/aclements/libelfin/issues/44

fails with LLVM 10, works with LLVM 9:

$ cat x.cpp
#include <elf/elf++.hh>
int main(int argc, char *argv[]) { return 0; }

$ clang++ -std=c++11 -I/usr/include/libelfin -c x.cpp
In file included from x.cpp:1:
In file included from /usr/include/libelfin/elf/elf++.hh:9:
/usr/include/libelfin/elf/data.hh:558:22: error: cannot assign to non-static
data member within const member function 'set_binding'
info = (info & 0xF) | ((unsigned char)v << 4);
~~~~ ^
/usr/include/libelfin/elf/data.hh:556:14: note: member function
'elf::Sym<elf::Elf64, Order>::set_binding' is declared const here
void set_binding(stb v) const
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Reply via email to