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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to