Date: Sun, 26 Oct 2014 03:28:38 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 194603] New: Error when using std::function in libc++ and clang with c++11 Message-ID: <bug-194603-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194603 Bug ID: 194603 Summary: Error when using std::function in libc++ and clang with c++11 Product: Ports Tree Version: Latest Hardware: amd64 OS: Any Status: Needs Triage Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: enriquefynn@gmail.com Created attachment 148655 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=148655&action=edit bug test clang++-devel (clang 3.6) and clang++3.5, when compiling a simple code, that uses std::function, with the C++11 standard (-std=c++11) it crashes with an error in libc++ (208080): Error: /usr/include/c++/v1/tuple:320:11: error: rvalue reference to type 'void (*)(int)' cannot bind to lvalue of type 'void (*)(int)' : value(__t.get()) The code can be found in the attachment. -- 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-194603-13>