Date: Sun, 22 Jan 2017 19:26:25 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216054] graphics/openshadinglanguage: fails to build with libc++ 4.0 Message-ID: <bug-216054-13-RImGg0euZb@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-216054-13@https.bugs.freebsd.org/bugzilla/> References: <bug-216054-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216054 --- Comment #3 from Dimitry Andric <dim@FreeBSD.org> --- (In reply to Jan Beich (mail not working) from comment #1) > libc++ 4.0 is just broken with old compilers. One workaround would be to > build against devel/libc++ which tracks old version. >=20 > $ cat a.cc > #include <string> >=20 > int main() { return 0; } >=20 > $ clang++34 a.cc > In file included from a.cc:1: > In file included from /usr/include/c++/v1/string:470: > In file included from /usr/include/c++/v1/string_view:171: > In file included from /usr/include/c++/v1/__string:56: > In file included from /usr/include/c++/v1/algorithm:637: > /usr/include/c++/v1/type_traits:2075:14: error: expected class name > : public decltype((_VSTD::__is_assignable_test<_Tp, _Arg>(0))) {}; > ^ > /usr/include/c++/v1/__config:747:25: note: expanded from macro 'decltype' > # define decltype(__x) __typeof__(__x) > ^ > 1 error generated. Hm, yes that is pretty unfortunate. Not that you can guarantee forwards compatibility forever, of course, but in this case it falls over a C++11 construct, while in C++98 (or GNU++98) mode. It looks like before libc++ r276599, there was a fallback mode for _LIBCPP_HAS_NO_RVALUE_REFERENCES, but that disappeared. Eric, how tricky w= ould it be to put that back? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216054-13-RImGg0euZb>