[llvm-bugs] [Bug 38491] New: clang-cl should accept __declspec(allocator)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 8 15:00:23 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38491

            Bug ID: 38491
           Summary: clang-cl should accept __declspec(allocator)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sfinae at hotmail.com
                CC: llvm-bugs at lists.llvm.org

C:\Temp>type allocator.cpp
#include <stdlib.h>

__declspec(allocator) void * meow(size_t n) {
    return malloc(n);
}

C:\Temp>cl /EHsc /nologo /W4 /c allocator.cpp
allocator.cpp

C:\Temp>clang-cl -m32 /EHsc /nologo /W4 /c allocator.cpp
allocator.cpp(3,12):  warning: __declspec attribute 'allocator' is not
supported [-Wignored-attributes]
__declspec(allocator) void * meow(size_t n) {
           ^
1 warning generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180808/6461639a/attachment.html>


More information about the llvm-bugs mailing list