Summary: | devel/libc++ + lang/gcc: #error <atomic> is not implemented | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Jan Beich <jbeich> |
Component: | Individual Port(s) | Assignee: | Dimitry Andric <dim> |
Status: | Closed Overcome By Events | ||
Severity: | Affects Only Me | CC: | dim, gerald |
Priority: | --- | Keywords: | needs-patch |
Version: | Latest | Flags: | jbeich:
maintainer-feedback?
(dim) |
Hardware: | Any | ||
OS: | Any | ||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215192 |
Description
Jan Beich
2016-12-08 07:03:21 UTC
libc++ in 10.x base fails like comment 0 but also has the following bug: $ cat >a.cc #include <algorithm> int main() { return 0; } $ g++49 -nostdinc++ -isystem /usr/include/c++/v1 a.cc In file included from /usr/include/c++/v1/algorithm:627:0, from a.cc:1: /usr/include/c++/v1/memory:3768:37: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11 explicit shared_ptr(_Yp* __p); ^ /usr/include/c++/v1/memory:3775:37: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11 shared_ptr(_Yp* __p, _Dp __d); ^ /usr/include/c++/v1/memory:3782:49: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11 shared_ptr(_Yp* __p, _Dp __d, _Alloc __a); ^ /usr/include/c++/v1/memory:3814:37: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11 shared_ptr(auto_ptr<_Yp> __r); ^ /usr/include/c++/v1/memory:3843:83: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11 typename enable_if<!is_lvalue_reference<_Dp>::value, __nat>::type = __nat()); ^ /usr/include/c++/v1/memory:3852:82: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11 typename enable_if<is_lvalue_reference<_Dp>::value, __nat>::type = __nat()); ^ Ah, -std=c++11 is no longer required on FreeBSD 10.3 which is going to be the new oldest supported release since 2017-01-01. |