[Bug 207253] cad/openvsp: Fix in 11-CURRENT

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Feb 17 12:00:42 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207253

Raphael Kubo da Costa <rakuco at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim at FreeBSD.org,
                   |                            |rakuco at FreeBSD.org

--- Comment #6 from Raphael Kubo da Costa <rakuco at FreeBSD.org> ---
Looking at the build failure, it seems to be caused by src/util_code/array.h
declaring a class called array:
https://github.com/OpenVSP/OpenVSP/blob/v2_master/src/util_code/array.h, which
clashes with std::array when libc++ is used because a lot of files do 'using
namespace std'.

It's possible to work around the issue by changing the name of the class or
wrapping it around another namespace

However, I don't think this clash should happen, as -std=c++11 (or 0x etc) is
not being passed to the compiler. The __tuple header seems to be
unconditionally declaring a 'struct array' here:
https://github.com/freebsd/freebsd/blob/ea5248c/contrib/libc%2B%2B/include/__tuple#L116

Dimitry, is this working as expected from libc++'s perspective?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list