* Andreas Tille <andr...@an3as.eu>, 2015-07-03, 06:10:
 CXX      unit_tests/bin_test_all-test_main.o
In file included from ./unit_tests/gtest/gtest.h:308:0,
                from unit_tests/test_main.cc:20:
/usr/include/c++/5/sstream:335:7: error: 'struct std::basic_stringbuf<_CharT, 
_Traits, _Alloc>::__xfer_bufptrs' redeclared with different access
      struct __xfer_bufptrs
      ^
make[3]: *** [unit_tests/bin_test_all-test_main.o] Error 1

Unfortunately, the build system hides compiler flags, and they are crucial for understanding what happened here.

Apparently tests are compiled with "private" redefined as "public":

bin_test_all_CPPFLAGS = -Dprotected=public -Dprivate=public 
-DJSON_IS_AMALGAMATION=1

This breaks the <sstream> header:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65899

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150703110559.ga9...@jwilk.net

Reply via email to