You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: