[LLVMbugs] [Bug 13696] New: "Deleted functions" not supported
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Aug 25 00:27:47 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13696
Bug #: 13696
Summary: "Deleted functions" not supported
Product: clang
Version: 3.1
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: wfunction at hotmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
libcxx's source code (include/__functional_base) has this code:
template <class _Tp> void ref(const _Tp&&) = delete;
template <class _Tp> void cref(const _Tp&&) = delete;
However, when compiling it on Clang 3.1, you get:
In file included from libcxx\include\cstdlib:85:
In file included from libcxx\include/support/win32/locale_win32.h:18:
In file included from libcxx\include\memory:597:
libcxx\include\__functional_base:420:52: error: expected '{'
template <class _Tp> void ref(const _Tp&&) = delete;
^
libcxx\include\__functional_base:421:53: error: expected '{'
template <class _Tp> void cref(const _Tp&&) = delete;
^
The status page says "Deleted functions" are supported since 2.9, so this seems
like a bug.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list