Skip to content

clang-cl should accept __declspec(allocator) #37839

@StephanTLavavej

Description

@StephanTLavavej
Bugzilla Link 38491
Resolution FIXED
Resolved on Aug 12, 2019 06:50
Version trunk
OS Windows NT
Blocks #14079 #41819
CC @amykhuang,@CaseyCarter,@zmodem,@nico,@rnk

Extended Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions