error: 'basic_string<_CharT, _Traits, _Allocator>' is missing exception specification

Bug #1610168 reported by Giuseppe D'Angelo on 2016-08-05
This bug affects 13 people
Affects Status Importance Assigned to Milestone
libc++ (Ubuntu)

Bug Description

This is mirroring Debian 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++'
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.

affects: libc++ (Ubuntu) → ubuntu
affects: ubuntu → libc++ (Ubuntu)
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libc++ (Ubuntu):
status: New → Confirmed
Tony Lewis (tonyelewis) wrote :

This problem's still active in 16.10 (Yakkety).

Discussion of this issue on Stack Overflow:

One commenter ("peppe") argues this bug is worse on Ubuntu than on Debian because the broken version only ships as experimental in Debian.


VestniK (vestnik) wrote :

I've added patch to solve this issue to the list of debian/patches rebuild the package and checked that this issue is fixed. Debdiff file is attached.

The attachment "proposed patch to the deb package in xenial" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers