Compiling any source file that includes <string> with clang 3.8 and -std=c++11 -stdlib=libc++ results in a compile error.
While this is a minor bug in Debian (as it doesn't ship 3.8 yet), xenial does, and that's a major problem as it makes libc++ useless.
clang: warning: argument unused during compilation: '-stdlib=libc++'
In file included from test.cpp:1:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
/usr/include/c++/v1/string:1938:44: error: 'basic_string<_CharT, _Traits, _Allocator>' is missing exception specification 'noexcept(is_nothrow_copy_constructible<allocator_type>::value)'
basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a) ^
/usr/include/c++/v1/string:1326:76: note: previous declaration is here
__attribute__ ((__visibility__("hidden"), __always_inline__)) explicit basic_string(const allocator_type& __a) ^
1 error generated.
This is mirroring Debian bug #808086 https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 808086
Compiling any source file that includes <string> with clang 3.8 and -std=c++11 -stdlib=libc++ results in a compile error.
While this is a minor bug in Debian (as it doesn't ship 3.8 yet), xenial does, and that's a major problem as it makes libc++ useless.
clang: warning: argument unused during compilation: '-stdlib=libc++' c++/v1/ iostream: 38: c++/v1/ ios:216: c++/v1/ __locale: 15: c++/v1/ string: 1938:44: error: 'basic_ string< _CharT, _Traits, _Allocator>' is missing exception specification 'noexcept( is_nothrow_ copy_constructi ble<allocator_ type>:: value)' _CharT, _Traits, _Allocator> ::basic_ string( const allocator_type& __a)
^ c++/v1/ string: 1326:76: note: previous declaration is here _("hidden" ), __always_inline__)) explicit basic_string(const allocator_type& __a)
^
In file included from test.cpp:1:
In file included from /usr/include/
In file included from /usr/include/
In file included from /usr/include/
/usr/include/
basic_string<
/usr/include/
__attribute__ ((__visibility_
1 error generated.